/* ========================================
   STYLES-XM.CSS
   Application XM-5000 — Styles complets
   Synchronisé avec presentation-gamme-xm.html
   ======================================== */

/* ========================================
   1. RESET & BASE
   ======================================== */
:root {
    --red:        #E60012;
    --red-dark:   #c4000f;
    --dark:       #1a1a1a;
    --grey:       #64748b;
    --grey-light: #f8f9fa;
    --border:     #e2e8f0;
    --shadow:     0 4px 20px rgba(0,0,0,0.08);
    --shadow-red: 0 10px 30px rgba(230,0,18,0.15);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: var(--dark);
    line-height: 1.6;
    padding-top: 70px;
}

a { text-decoration: none; color: inherit; }

ul { list-style: none; padding: 0; }

img { max-width: 100%; height: auto; display: block; }

/* Utilitaires */
.text-highlight   { color: var(--red); }
.click-cursor     { cursor: pointer; }
.text-call-to-action {
    margin-top: 12px;
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   2. HEADER & NAVIGATION
   ======================================== */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img     { height: 40px; width: auto; }
.logo-full    { display: block; }
.logo-compact { display: none; }

.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link:hover  { background: #fff5f5; color: var(--red); }
.nav-link.active { background: var(--red); color: #fff; }

/* ========================================
   3. CONTENEURS & SECTIONS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--grey);
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   4. HERO — VIDÉO + KPI
   ======================================== */
.hero-video-xm {
    padding: 60px 30px 80px;
    background: linear-gradient(160deg, #f8f9fa 0%, #ffffff 60%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-xm::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230,0,18,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title-xl {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.hero-tagline-xl {
    font-size: 1.4rem;
    color: var(--grey);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Lecteur vidéo */
.video-showcase-main {
    max-width: 900px;
    margin: 0 auto 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0,0,0,0.18);
}

.video-showcase-main video {
    width: 100%;
    height: auto;
    display: block;
}

/* KPI badges */
.kpi-badges-hero {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.kpi-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 110px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.kpi-badge:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
}

.kpi-badge.precision   { border-top: 3px solid var(--red); }
.kpi-badge.repeatability { border-top: 3px solid #3b82f6; }
.kpi-badge.simplicity  { border-top: 3px solid #10b981; }

.kpi-icon  { font-size: 1.7rem; }
.kpi-label { font-size: 0.72rem; color: var(--grey); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }
.kpi-value { font-size: 1.15rem; font-weight: 800; color: var(--dark); text-align: center; }

/* Boutons hero */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-hero.primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230,0,18,0.35);
}

.btn-hero.primary:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(230,0,18,0.45);
}

.btn-hero.secondary {
    background: #fff;
    color: var(--red);
    border-color: var(--red);
}

.btn-hero.secondary:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-3px);
}

/* ========================================
   5. SECTION GAMME FAMILY (3 CARTES)
   ======================================== */
.metrology-family-section {
    padding: 80px 30px;
    background: #fff;
}

.family-grid,
.family-grid-xm {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.family-card,
.family-card-xm {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.family-card:hover,
.family-card-xm:hover {
    border-color: var(--red);
    transform: translateY(-8px);
    box-shadow: var(--shadow-red);
}

.family-card.highlight,
.family-card-xm.highlight {
    border-color: var(--red);
    background: #fff5f5;
}

/* Badge "Série actuelle" */
.family-badge,
.family-badge-xm {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.family-card img,
.family-card-xm img {
    max-width: 180px;
    margin: 16px auto 20px;
    height: auto;
}

/* Vignette vidéo dans les family-cards */
.family-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 16px;
    background: #000;
}

.family-video-poster {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1a1a;
    display: block;
    transition: opacity 0.3s ease;
}

.family-card-xm:hover .family-video-poster {
    opacity: 0.75;
}

.family-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(230, 0, 18, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    padding-left: 4px;
    transition: transform 0.25s ease, background 0.25s ease;
    pointer-events: none;
}

.family-card-xm:hover .family-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--red);
}

.family-card h3,
.family-card-xm h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.family-range {
    font-size: 0.95rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 10px;
}

.family-description {
    font-size: 0.9rem;
    color: var(--grey);
    margin-bottom: 16px;
    line-height: 1.6;
}

.family-features li {
    font-size: 0.9rem;
    color: #475569;
    padding: 5px 0;
    text-align: left;
}

/* ========================================
   6. STORYTELLING (GÉNÈSE XM)
   ======================================== */
.storytelling-section {
    padding: 80px 30px;
    background: var(--grey-light);
}

.story-timeline {
    max-width: 860px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-card {
    background: #fff;
    border-left: 5px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.story-card:hover {
    border-left-color: var(--red);
    transform: translateX(6px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.story-card.highlight {
    border-left-color: var(--red);
    background: #fff5f5;
}

.story-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--grey-light);
}

.story-icon.problem    { background: #fee2e2; }
.story-icon.need       { background: #dbeafe; }
.story-icon.solution   { background: #dcfce7; }
.story-icon.result     { background: #d1fae5; }

.story-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.story-content p {
    color: var(--grey);
    line-height: 1.7;
}

/* Témoignage */
.testimonial-box {
    max-width: 860px;
    margin: 40px auto 0;
    background: #fff;
    border-left: 5px solid var(--red);
    border-radius: 12px;
    padding: 30px 36px;
    box-shadow: var(--shadow);
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 14px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

/* ========================================
   7. COMPARAISON XM vs CLASSIQUE
   ======================================== */
.comparison-section {
    padding: 80px 30px;
    background: #fff;
}

.comparison-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 50px;
}

.comparison-col {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.comparison-col.classic { border-top: 4px solid #dc2626; }
.comparison-col.xm      { border-top: 4px solid #10b981; }

.comparison-col:hover {
    box-shadow: var(--shadow-red);
    transform: translateY(-4px);
}

.comparison-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.comparison-col h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.comparison-item {
    background: var(--grey-light);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
}

.comparison-item.highlight {
    background: #f0fdf4;
    border-left: 3px solid #10b981;
}

.comparison-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.comparison-item ul { padding-left: 0; }

.comparison-item li {
    padding: 5px 0 5px 18px;
    position: relative;
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.5;
}

.comparison-item li::before {
    content: '•';
    position: absolute; left: 0;
    color: var(--grey);
}

.comparison-col.xm .comparison-item li::before { color: #10b981; }

/* Flèche de transformation */
.transformation-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 40px;
}

.arrow-circle {
    width: 60px; height: 60px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.arrow-icon { font-size: 1.6rem; color: #fff; font-style: normal; }

.arrow-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 100px;
}

/* KPI rappel dans la comparaison */
.kpi-reminder {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.kpi-badge-inline {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.kpi-badge-inline.precision    { background: var(--red); }
.kpi-badge-inline.repeatability { background: #3b82f6; }

/* ========================================
   8. PILIERS XM-5000 (3 CARTES)
   ======================================== */
.pillars-section-xm {
    padding: 80px 30px;
    background: var(--grey-light);
}

.pillars-grid-xm {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.pillar-card-xm {
    background: #fff;
    border-radius: 16px;
    padding: 36px 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.pillar-card-xm:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-red);
}

.pillar-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.pillar-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.pillar-card-xm h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--dark);
}

.pillar-description {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.pillar-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.pillar-features li {
    color: #475569;
    font-size: 0.9rem;
    padding: 4px 0;
}

.kpi-reminder-pillar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.kpi-badge-small {
    background: var(--grey-light);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
}

/* ========================================
   9. PRINCIPE DE MESURE (DUAL OPTIC)
   ======================================== */
.measurement-principle-section {
    padding: 80px 30px;
    background: #fff;
}

.tech-schema {
    text-align: center;
    margin: 40px 0;
    background: var(--grey-light);
    border-radius: 16px;
    padding: 40px;
    border: 2px solid var(--border);
}

.schema-image {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.camera-grid-xm {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.camera-card-xm {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.camera-card-xm:hover {
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
}

.camera-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.camera-card-xm h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.camera-card-xm p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Avantages encart */
.advantages-box {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 14px;
    padding: 32px;
    margin-top: 40px;
}

.advantages-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark);
}

.advantages-box ul { display: flex; flex-direction: column; gap: 10px; }

.advantages-box li {
    padding-left: 24px;
    position: relative;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.advantages-box li::before {
    content: '✓';
    position: absolute; left: 0;
    color: #10b981;
    font-weight: 800;
}

/* ========================================
   10. APPLICATIONS (8 TUILES — REVEAL)
   ======================================== */
.applications-section-xm {
    padding: 80px 30px;
    background: var(--grey-light);
}

.applications-grid-reveal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.app-reveal-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-reveal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.app-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-reveal-card:hover .app-image {
    transform: scale(1.08);
}

.app-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 20px 18px;
    color: #fff;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.app-reveal-card:hover .app-overlay {
    transform: translateY(0);
}

.app-overlay h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.app-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* ========================================
   11. LOGICIEL (6 TUILES — ZOOM)
   ======================================== */
.software-section-xm {
    padding: 80px 30px;
    background: #fff;
}

.software-grid-zoom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.software-card-zoom {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 18px 18px 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.software-card-zoom:hover {
    border-color: var(--red);
    transform: scale(1.06);
    box-shadow: 0 16px 40px rgba(230,0,18,0.2);
    z-index: 10;
}

.software-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    transition: transform 0.35s ease;
}

.software-card-zoom:hover .software-image {
    transform: scale(1.04);
}

.software-card-zoom h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--dark);
    transition: color 0.3s;
}

.software-card-zoom:hover h4 { color: var(--red); }

.software-card-zoom p {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.5;
}

/* ========================================
   12. CONFIGURATIONS (2 MODÈLES)
   ======================================== */
.configs-section-xm {
    padding: 80px 30px;
    background: var(--grey-light);
}

.configs-grid-xm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 50px auto 0;
}

.config-card-xm {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all 0.3s ease;
    position: relative;
}

.config-card-xm:hover {
    border-color: var(--red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-red);
}

.config-badge-xm {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.config-badge-xm.grand     { background: var(--red); }
.config-badge-xm.precision { background: #3b82f6; }

.config-card-xm h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.config-volume {
    font-size: 1.1rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 14px;
}

.config-description {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.config-specs-xm {
    display: none;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.spec-row:last-child { border-bottom: none; }

.spec-label { color: var(--grey); font-weight: 500; }
.spec-value { font-weight: 700; color: var(--dark); }

/* ========================================
   13. CTA FINAL
   ======================================== */
.cta-section-xm {
    padding: 80px 30px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.cta-description {
    font-size: 1.15rem;
    opacity: 0.93;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-xm {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-xm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-cta-xm.primary {
    background: #fff;
    color: var(--red);
}

.btn-cta-xm.primary:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-cta-xm.secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.btn-cta-xm.secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    transform: translateY(-3px);
}

/* btn-cta-xm on light (white) background */
.xm-showcase .btn-cta-xm.primary,
.xm-cta-row .btn-cta-xm.primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.xm-showcase .btn-cta-xm.primary:hover,
.xm-cta-row .btn-cta-xm.primary:hover {
    background: #c0000f;
    border-color: #c0000f;
}

.xm-showcase .btn-cta-xm.secondary,
.xm-cta-row .btn-cta-xm.secondary {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.xm-showcase .btn-cta-xm.secondary:hover,
.xm-cta-row .btn-cta-xm.secondary:hover {
    background: #fff0f0;
    transform: translateY(-3px);
}

/* ========================================
   14. FOOTER
   ======================================== */
.main-footer {
    background: var(--dark);
    color: #fff;
    padding: 50px 30px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo-image {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo-image img { height: 36px; width: auto; }

.footer-logo-image h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.logo-dot { color: var(--red); }

.footer-logo p { color: #94a3b8; line-height: 1.7; font-size: 0.95rem; }

.footer-links h4,
.footer-contact h4 {
    color: var(--red);
    margin-bottom: 14px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    margin: 7px 0;
    font-size: 0.9rem;
    transition: color 0.25s;
}

.footer-links a:hover { color: #fff; }

.footer-contact p { color: #94a3b8; line-height: 1.8; font-size: 0.9rem; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 24px;
    color: #94a3b8;
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   15. LIGHTBOX IMAGE
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    text-align: center;
    cursor: default;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 24px; right: 40px;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.25s;
}

.lightbox-close:hover { color: var(--red); }

.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ========================================
   16. LIGHTBOX VIDÉO
   ======================================== */
.video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.96);
    cursor: pointer;
}

.video-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-lightbox-content {
    max-width: 90%;
    position: relative;
    cursor: default;
    text-align: center;
}

.video-lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.video-lightbox-close {
    position: absolute;
    top: -50px; right: 0;
    color: #fff;
    font-size: 44px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color 0.25s;
}

.video-lightbox-close:hover { color: var(--red); }

.video-lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 16px;
}

/* ========================================
   17. ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animated,
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   18. RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
    .applications-grid-reveal {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .transformation-arrow {
        flex-direction: row;
        justify-content: center;
        padding-top: 0;
    }
}

@media (max-width: 900px) {
    .family-grid,
    .family-grid-xm { grid-template-columns: 1fr; }

    .pillars-grid-xm { grid-template-columns: 1fr; }

    .software-grid-zoom { grid-template-columns: repeat(2, 1fr); }

    .camera-grid-xm { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }

    .hero-title-xl  { font-size: 2.4rem; }
    .hero-tagline-xl { font-size: 1.1rem; }

    .section-title { font-size: 1.9rem; }

    .kpi-badges-hero { gap: 12px; }
    .kpi-badge { padding: 14px 18px; min-width: 110px; }

    .hero-cta-buttons { flex-direction: column; align-items: center; }

    .configs-grid-xm { grid-template-columns: 1fr; }

    .cta-title { font-size: 1.9rem; }

    .main-nav { gap: 4px; }
    .nav-link { font-size: 0.82rem; padding: 6px 10px; }

    .story-card { flex-direction: column; gap: 16px; }

    .software-grid-zoom { grid-template-columns: 1fr; }

    .applications-grid-reveal { grid-template-columns: 1fr; }
    .app-reveal-card { height: 240px; }

    .logo-full    { display: none; }
    .logo-compact { display: block; }
}

@media (max-width: 480px) {
    .hero-title-xl { font-size: 1.9rem; }
    .section-title { font-size: 1.6rem; }
    .btn-hero, .btn-cta-xm { padding: 14px 24px; font-size: 0.95rem; }
    .container { padding: 0 18px; }
}

/* ========================================
   19. UTILITAIRES FIGURES / CONCEPT
   ======================================== */
.concept-figure  { margin: 0; border: none; background: none; }
.concept-image   { display: block; max-width: 100%; height: auto; }
.concept-image--medium { max-width: 260px; height: auto; margin: 0 auto; }
.concept-caption { display: none; }

/* ========================================
   20. HERO GÉNÉRIQUE (index-xm.html)
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    padding: 100px 30px 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(230,0,18,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero-logo img,
.hero-logo .concept-image {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--grey);
    margin-bottom: 15px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* btn-hero sans modificateur (index) */
a.btn-hero:not(.primary):not(.secondary),
button.btn-hero:not(.primary):not(.secondary) {
    background: var(--red);
    color: #fff;
    padding: 18px 40px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(230,0,18,0.3);
    animation: fadeInUp 0.8s ease 0.8s both;
}

a.btn-hero:not(.primary):not(.secondary):hover,
button.btn-hero:not(.primary):not(.secondary):hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230,0,18,0.4);
}

/* ========================================
   21. SECTION WHY XM (wm-section / figures)
   ======================================== */
.wm-section {
    padding: 80px 30px;
    background: #fff;
}

.figures-grid,
.figures-grid-fixed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.figure-card {
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.figure-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230,0,18,0.1);
}

.figure-icon   { font-size: 3rem; margin-bottom: 15px; }
.figure-number { font-size: 3rem; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.figure-label  { font-size: 1rem; color: var(--grey); line-height: 1.4; }

/* ========================================
   22. PILIERS SECTION INDEX (classes sans -xm)
   ======================================== */
.pillars-section {
    padding: 80px 30px;
    background: #f8f9fa;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pillar-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.pillar-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.pillar-list {
    list-style: none;
    padding: 0;
}

.pillar-list li {
    color: #475569;
    font-size: 1.05rem;
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.5;
}

.pillar-list li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--red);
    font-weight: bold;
    font-size: 1.3rem;
}

/* ========================================
   23. CTA SECTION GÉNÉRIQUE (partagée)
   ======================================== */
.cta-section {
    padding: 80px 30px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-content { max-width: 700px; margin: 0 auto; }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    color: var(--red);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-cta:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-cta.primary  { background: #fff; color: var(--red); }
.btn-cta.secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.btn-cta.secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

.btn-arrow { font-style: normal; }

/* ========================================
   24. HERO PRESENTATION KEYENCE
   ======================================== */
.hero-presentation {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 120px 30px 60px;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    background: radial-gradient(circle at center, #E60012 0%, transparent 70%);
    pointer-events: none;
}

.hero-content-center {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-showcase { margin-bottom: 30px; }

.logo-tagline {
    font-size: 1.5rem;
    color: var(--red);
    font-weight: 600;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--grey);
    line-height: 1.8;
}

/* ========================================
   25. TIMELINE HISTORIQUE
   ======================================== */
.history-section {
    padding: 80px 30px;
    background: #fff;
}

.timeline {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px; height: 20px;
    background: var(--red);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px var(--border);
    z-index: 2;
}

.timeline-item.highlight .timeline-dot {
    width: 24px; height: 24px;
    box-shadow: 0 0 0 6px #ffe5e5;
}

.timeline-content {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    width: calc(100% - 60px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--red);
    box-shadow: 0 5px 20px rgba(230,0,18,0.1);
}

.timeline-item.highlight .timeline-content {
    border-color: var(--red);
    background: #fff5f5;
}

.timeline-year {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.7;
}

/* ========================================
   26. KEY STATS (fond sombre)
   ======================================== */
.key-stats {
    padding: 80px 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
}

.section-title.light { color: #fff; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(230,0,18,0.1);
    border-color: var(--red);
    transform: translateY(-5px);
}

.stat-icon   { font-size: 3rem; margin-bottom: 15px; opacity: 0.9; }
.stat-number { font-size: 3.5rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 5px; }
.stat-unit   { font-size: 1.5rem; color: var(--red); font-weight: 600; margin-bottom: 15px; }
.stat-label  { font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.4; }

/* ========================================
   27. AVANTAGES KEYENCE (3 PILIERS MODÈLE)
   ======================================== */
.advantages-section {
    padding: 80px 30px;
    background: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
}

.advantage-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230,0,18,0.1);
}

.advantage-card.highlight {
    background: #fff5f5;
    border-color: var(--red);
}

.advantage-badge {
    position: absolute;
    top: -15px; right: 30px;
    background: var(--red);
    color: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.advantage-icon  { font-size: 3.5rem; margin-bottom: 20px; }
.advantage-title { font-size: 1.8rem; color: var(--dark); margin-bottom: 15px; }

.advantage-description {
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 20px;
}

.advantage-list {
    list-style: none;
    padding: 0;
}

.advantage-list li {
    color: #475569;
    font-size: 0.95rem;
    padding: 8px 0;
}

/* ========================================
   28. VALEURS KEYENCE
   ======================================== */
.values-section {
    padding: 80px 30px;
    background: #f8f9fa;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.value-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230,0,18,0.1);
}

.value-icon  { font-size: 2.8rem; margin-bottom: 14px; }
.value-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }

.value-description {
    color: var(--grey);
    line-height: 1.6;
    font-size: 0.88rem;
}

/* ========================================
   29. HERO SERVICE KEYENCE
   ======================================== */
.hero-service {
    padding: 100px 30px 80px;
    background: linear-gradient(160deg, #f8f9fa 0%, #ffffff 60%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title-service {
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-logo-inline {
    height: 56px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.hero-tagline-large {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   30. GRILLE SERVICES (6 ENGAGEMENTS)
   ======================================== */
.services-section {
    padding: 80px 30px;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.service-card {
    background: var(--grey-light);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-card:hover {
    border-color: var(--red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-red);
    background: #fff5f5;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 12px 0 10px;
}

.service-icon   { font-size: 2.6rem; margin-bottom: 10px; }

.service-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}

.service-detail {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.6;
}

/* ========================================
   31. RESPONSIVE ADDITIONS
   ======================================== */
@media (max-width: 1024px) {
    /* Timeline : on abandonne le zigzag et on aligne tout à gauche */
    .timeline::before { left: 30px; }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-dot { left: 30px; }
}

@media (max-width: 900px) {
    .figures-grid,
    .figures-grid-fixed  { grid-template-columns: repeat(2, 1fr); }

    .pillars-grid        { grid-template-columns: 1fr; }
    .advantages-grid     { grid-template-columns: 1fr; }
    .services-grid       { grid-template-columns: repeat(2, 1fr); }
    .values-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title         { font-size: 2.5rem; }
    .hero-title-service { font-size: 2rem; }
    .section-title      { font-size: 2rem; }

    .services-grid      { grid-template-columns: 1fr; }

    .figure-number      { font-size: 2rem; }

    .cta-buttons        { flex-direction: column; align-items: center; }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 55px;
    }
    .timeline::before { left: 20px; }
    .timeline-dot     { left: 20px; }
}

@media (max-width: 480px) {
    .hero-title       { font-size: 2rem; }
    .section-title    { font-size: 1.8rem; }
    .timeline-content { padding: 18px; }
    .btn-cta          { padding: 14px 24px; font-size: 0.95rem; }
    .values-grid      { grid-template-columns: 1fr; }
}

/* ========================================
   §32 — CONCEPT XM STORYTELLING (Genèse)
   ======================================== */

/* Hero product image (remplace la vidéo) */
.hero-product-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
}

/* Section clients cibles */
.target-section {
    padding: 80px 0;
    background: white;
}

.target-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 780px;
    margin: 0 auto 50px;
    line-height: 1.75;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.target-card {
    text-align: center;
    padding: 32px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border-top: 4px solid var(--red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.target-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.target-icon { font-size: 3rem; margin-bottom: 14px; }

.target-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.target-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* Section concept (fond gris) */
.concept-section {
    padding: 80px 0;
    background: #f4f4f4;
}

/* Story steps (narrative verticale) */
.concept-story {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 50px;
    position: relative;
}

/* Ligne verticale reliant les étapes */
.concept-story::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--red), #f97316, #eab308, #10b981);
    border-radius: 3px;
    z-index: 0;
}

.story-step {
    display: flex;
    gap: 30px;
    padding: 36px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 28px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    margin-left: 20px;
}

.story-step .story-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.story-icon.impasse { background: #fee2e2; }
.story-icon.bras    { background: #fef3c7; }
.story-icon.xm-sol  { background: #dcfce7; }

.story-step .story-content { flex: 1; min-width: 0; }

.story-step .story-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.4;
}

.story-step .story-content > p {
    font-size: 0.98rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Split 2 colonnes benchmark */
.benchmark-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.benchmark-col {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 22px;
}

.benchmark-col.traditional { border-top: 4px solid #6b7280; }
.benchmark-col.cmm          { border-top: 4px solid var(--red); }

.benchmark-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.benchmark-images-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.benchmark-img-small {
    width: 80px;
    height: 68px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e5e7eb;
}

.benchmark-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benchmark-col li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}

.benchmark-col li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

.benchmark-col li.ok::before { content: '✓'; color: #10b981; }

.benchmark-conclusion {
    background: #1a1a1a;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    border-left: 4px solid var(--red);
}

/* Bras articulé — grille problèmes */
.arm-images-row {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.arm-img {
    width: 120px;
    height: 100px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 6px;
    border: 1px solid #e5e7eb;
}

.arm-problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0;
}

.arm-problem-item {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    border-radius: 8px;
    padding: 16px;
}

.arm-problem-item h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #c2410c;
    margin-bottom: 6px;
}

.arm-problem-item p {
    font-size: 0.83rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Solution XM — encart sombre */
.xm-solution-highlight {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border-radius: 16px;
    padding: 32px;
    margin-top: 20px;
}

.xm-solution-highlight h4 {
    font-size: 1.15rem;
    color: var(--red);
    margin-bottom: 18px;
    font-weight: 700;
}

.xm-advantages-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.xm-advantages-list li {
    font-size: 0.92rem;
    padding: 10px 12px 10px 34px;
    position: relative;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    line-height: 1.5;
}

.xm-advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

/* config-img dans les cards config */
.config-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin: 16px 0;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
}

/* Responsive §32 */
@media (max-width: 1100px) {
    .target-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .benchmark-split      { grid-template-columns: 1fr; }
    .arm-problems-grid    { grid-template-columns: 1fr; }
    .xm-advantages-list   { grid-template-columns: 1fr; }
    .concept-story::before { left: 20px; }
    .story-step { margin-left: 0; padding: 24px; }
}

@media (max-width: 600px) {
    .target-grid { grid-template-columns: 1fr; }
    .story-step  { flex-direction: column; gap: 16px; }
    .benchmark-images-row .benchmark-img-small { width: 64px; height: 56px; }
    .arm-img { width: 90px; height: 80px; }
}

/* ========================================
   §33 — CONCEPT COMPACT + DUAL OPTIC REFONDU
   ======================================== */

/* Conteneur compact des étapes */
.concept-story-compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
    position: relative;
    padding-left: 4px;
}

/* Ligne verticale à gauche */
.concept-story-compact::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--red), #f97316, #eab308, #10b981);
    border-radius: 3px;
    z-index: 0;
}

.story-step-compact {
    background: white;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    padding: 22px 24px;
    margin-left: 18px;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.25s ease;
}

.story-step-compact:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.11);
}

.story-step-compact.highlight {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

/* En-tête de chaque étape (icône + titre côte à côte) */
.story-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.story-step-header .story-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.story-step-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

/* ── Nouveau layout étapes 3 & 4 : haut image+texte / bas pilules ── */
.step-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.step-top-img {
    width: 140px;
    flex-shrink: 0;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.step-top p {
    flex: 1;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
}

.step-pills {
    width: 100%;
    box-sizing: border-box;
}

.step-pills .pros-cons-label {
    margin-bottom: 8px;
}

.step-pills .step-mini-list {
    width: 100%;
}

.step-pills .step-mini-list li {
    box-sizing: border-box;
    width: 100%;
}

/* Corps de l'étape : image + texte */
.story-step-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-col { flex: 1; min-width: 0; width: 100%; }

.step-col p {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.65;
    margin-bottom: 14px;
}

.images-col {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    max-width: 220px;
}

.step-img {
    width: 198px;
    height: 168px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e5e7eb;
}

.step-img-wide {
    width: 140px;
    height: 80px;
}

.step-img-large {
    width: 120%;
    height: auto;
}

.step-img-solo {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Badge verdict */
.step-verdict {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
}

.step-verdict.ko {
    background: #fee2e2;
    color: #b91c1c;
}

/* Grille 2 colonnes ok/ko */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 12px 0 6px;
    width: 100%;
}

.pros-cons-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.pros-cons-label.ok { color: #166534; }
.pros-cons-label.ko { color: #991b1b; }

/* Mini listes ✅/❌ dans les étapes concept — style bulles */
.step-mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
}

.step-mini-list li {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.84rem;
    line-height: 1.4;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}

.step-mini-list li:last-child {
    margin-bottom: 0;
}

.step-mini-list.ok li {
    background: #dcfce7;
    color: #166534;
}

.step-mini-list.ko li {
    background: #fee2e2;
    color: #991b1b;
}

/* Étape 4 pleine largeur (legacy) */
.step4-full { display: block; }
.step-col-full { width: 100%; }

.step4-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
}

.step4-tags-col { flex-shrink: 0; }

/* ── Étapes 3 & 4 côte à côte ── */
.steps-row-34 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 0;
}

.step-connector-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 10px;
    padding: 8px 10px;
    flex-shrink: 0;
}

.connector-verdict {
    background: #1a1020;
    color: #fff;
    border-left: 3px solid var(--red);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.75rem;
    line-height: 1.5;
    max-width: 160px;
    text-align: center;
}

.connector-verdict strong {
    display: block;
    color: var(--red);
    font-size: 0.72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.connector-verdict em {
    font-style: italic;
    color: rgba(255,255,255,.85);
}

.connector-arrow-icon {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

@media (max-width: 900px) {
    .steps-row-34 {
        grid-template-columns: 1fr;
    }
    .step-connector-arrow {
        padding: 4px 0;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100%;
        gap: 8px;
    }
    .connector-verdict {
        max-width: 260px;
    }
    .connector-arrow-icon {
        transform: rotate(90deg);
        font-size: 1.8rem;
    }
}

/* ── Dual Optic hierarchy ── */
/* Principes 3 caméras : moins mis en avant */
.dual-optic-secondary {
    opacity: 0.85;
    transform: scale(0.97);
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid #e5e7eb;
}

.dual-optic-secondary .camera-card-xm {
    box-shadow: none;
    background: #fff;
    border: 1px solid #ececec;
    padding: 14px 16px;
}

.dual-optic-secondary .schema-image { width: 100%; height: auto; }

/* Bénéfices "Ce que cette architecture change" : mis en avant */
.dual-optic-primary {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 28px 32px;
    margin-top: 6px;
}

.dual-optic-primary h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 18px;
}

.dual-optic-primary .dual-advantages-list li {
    font-size: 0.97rem;
    padding: 9px 16px;
    background: #dcfce7;
    border-radius: 20px;
    margin-bottom: 8px;
    color: #166534;
    list-style: none;
    border-left: 4px solid #22c55e;
}

.xm-tags-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Tags XM (étape 4) */
.xm-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.xm-tag {
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ---- DUAL OPTIC LAYOUT ---- */

/* Layout principal : image gauche + 3 cartes droite */
.dual-optic-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin: 40px 0 32px;
}

.dual-optic-main-img .schema-image {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.dual-optic-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dual-optic-cards .camera-card-xm {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
}

.dual-optic-cards .camera-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.dual-optic-cards .camera-card-xm h4 {
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.dual-optic-cards .camera-card-xm p {
    font-size: 0.80rem;
    line-height: 1.4;
    margin: 0;
    color: #555;
}

/* Caption sous les images */
.schema-caption {
    text-align: center;
    font-size: 0.82rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

/* Partie angles + avantages */
.dual-optic-angles {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: center;
    background: #f4f4f4;
    border-radius: 16px;
    padding: 28px;
}

.angles-img-col .schema-image {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.angles-text-col h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.dual-advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dual-advantages-list li {
    font-size: 0.92rem;
    color: #444;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #10b981;
    line-height: 1.5;
}

/* Responsive §33 */
@media (max-width: 900px) {
    .dual-optic-layout       { grid-template-columns: 1fr; }
    .dual-optic-angles       { grid-template-columns: 1fr; }
    .story-step-body         { flex-direction: column; }
    .images-col              { max-width: 100%; flex-direction: row; }
    .concept-story-compact::before { left: 16px; }
    .story-step-compact      { margin-left: 12px; }
}

@media (max-width: 600px) {
    .story-step-header h3    { font-size: 0.98rem; }
    .xm-tags-row             { gap: 6px; }
    .xm-tag                  { font-size: 0.78rem; padding: 4px 10px; }
}

/* ========================================
   §34. INDEX — HERO DARK + XM SHOWCASE
   ======================================== */

/* Hero sombre (Section KEYENCE brand) */
.hero-dark {
    background: linear-gradient(150deg, #0f1117 0%, #1a1020 40%, #12131a 100%);
    min-height: 100vh;
}
.hero-dark::before {
    background: radial-gradient(ellipse at 70% 40%, rgba(230,0,18,.18) 0%, transparent 60%);
}
.hero-dark .hero-title {
    color: #ffffff;
}

/* Showcase XM (Section produit 2 colonnes) */
.xm-showcase {
    padding: 90px 30px;
    background: #ffffff;
}

.xm-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.xm-product-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.xm-product-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 14px;
    line-height: 1.15;
}

.xm-product-subtitle {
    font-size: 1.2rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 6px;
}

.xm-product-tagline {
    font-size: 1.05rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 36px;
}

/* KPI grid 2×2 inside showcase */
.xm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.xm-kpi-grid .figure-card {
    padding: 22px 18px;
}

.xm-kpi-grid .figure-icon { font-size: 2rem; margin-bottom: 8px; }
.xm-kpi-grid .figure-number { font-size: 2rem; margin-bottom: 6px; }
.xm-kpi-grid .figure-label { font-size: .88rem; }

/* CTA row dans showcase */
.xm-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Image produit */
.xm-product-img-col img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.10));
}

/* Responsive showcase */
@media (max-width: 960px) {
    .xm-showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .xm-product-img-col { order: -1; }
    .xm-product-title   { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .xm-product-title   { font-size: 1.8rem; }
    .xm-kpi-grid        { gap: 10px; }
}

/* Carousel container */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}

/* Carousel inner */
.carousel {
    display: flex;
    flex-wrap: nowrap;
    animation: slideshow 12s ease-in-out infinite;
}

/* Carousel items */
.carousel-item {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation for slideshow */
@keyframes slideshow {
    0% {
        transform: translateX(0);
    }
    30% {
        transform: translateX(0);
    }
    35% {
        transform: translateX(-100%);
    }
    65% {
        transform: translateX(-100%);
    }
    70% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(-200%);
    }
}

/* ========================================
   FORMATION CARD – PREMIUM / CODA BADGE
   ======================================== */
.service-card--formation {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.service-card--formation .service-detail {
    flex: 1;
}

.service-card--formation:hover {
    border-color: #00968A;
    background: #f0faf9;
    box-shadow: 0 12px 40px rgba(0, 150, 138, 0.18);
}

.formation-card-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.formation-premium-pill {
    position: absolute;
    top: -2px;
    right: 0;
    background: #FFD600;
    color: #333;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.5;
}

.formation-coda-badge-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ========================================
   MODAL FORMATION CODA
   ======================================== */
.formation-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.formation-modal-overlay.is-open {
    display: flex;
}

.formation-modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    padding: 0 0 24px;
}

.formation-modal-close {
    position: sticky;
    top: 10px;
    float: right;
    margin: 10px 14px 0 0;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 10;
    transition: background 0.2s;
}
.formation-modal-close:hover { background: #e2e8f0; }

/* Header */
.fm-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
    padding: 20px 28px;
    border-bottom: 2px solid #e2e8f0;
}

.fm-logo-img {
    width: 138px;
    height: auto;
    display: block;
}

.fm-header-right { flex: 1; }

.fm-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fm-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fm-day-badge {
    background: #00968A;
    color: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    text-align: center;
    line-height: 1.2;
    flex-shrink: 0;
}
.fm-day-num { display: block; font-size: 1.3rem; font-weight: 900; }
.fm-day-txt { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.fm-partner {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 6px;
}

/* Sections */
.fm-section {
    padding: 14px 28px;
}

.fm-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.fm-band {
    background: #f0faf9;
    border-left: 4px solid #00968A;
    padding: 8px 28px;
    margin: 4px 0;
}

.fm-band-sm {
    padding: 6px 16px;
}

.fm-band-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #00968A;
    margin: 0;
    letter-spacing: 0.05em;
}

.fm-list {
    list-style: disc;
    padding-left: 18px;
    margin: 6px 0;
}

.fm-list li {
    font-size: 0.88rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 4px;
}

.fm-list-sm li { font-size: 0.83rem; }

.fm-highlight-teal { color: #00968A; }
.fm-highlight-pink { color: #e91e8c; }

/* Bénéfices row with QR */
.fm-benefices-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.fm-benefices-list { flex: 1; }

.fm-qr-zone {
    flex-shrink: 0;
    text-align: center;
    width: 100px;
}
.fm-qr-label {
    font-size: 0.72rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 6px;
}
.fm-qr-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Two columns */
.fm-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 4px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.fm-modalities, .fm-qualiopi {
    padding: 0 0 12px;
}
.fm-modalities { border-right: 1px solid #e2e8f0; }
.fm-modalities .fm-list, .fm-qualiopi .fm-list {
    padding: 8px 16px 0;
}
.fm-footnote {
    font-size: 0.7rem;
    color: #888;
    padding: 4px 16px 0;
    line-height: 1.4;
    font-style: italic;
}

/* Quote */
.fm-quote-block {
    background: #2d2d2d;
    color: #fff;
    text-align: center;
    padding: 18px 28px;
    margin: 16px 0 0;
}
.fm-quote {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 4px;
    text-transform: uppercase;
}
.fm-quote-sub {
    font-size: 0.82rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Contact */
.fm-contact {
    text-align: center;
    font-size: 0.88rem;
    color: #333;
    padding: 16px 28px 0;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .fm-header { flex-direction: column; gap: 10px; }
    .fm-benefices-row { flex-direction: column; }
    .fm-qr-zone { display: none; }
    .fm-two-col { grid-template-columns: 1fr; }
    .fm-modalities { border-right: none; border-bottom: 1px solid #e2e8f0; }
}
