/* ==========================================================================
   DRAGON - Page d'accueil (refonte DRA-450)
   ==========================================================================

   Prefixe `mk2-` : evite toute collision avec homepage.css, charge sur les
   memes pages.

   /!\ Charge UNIQUEMENT par index.php (voir includes/header.php). Ne pas
   fusionner dans homepage.css : celui-ci sert aussi sap-bw.php, sap-abap.php,
   contact.php et faq.php, qui n'utilisent aucune de ces classes.
   ========================================================================== */

/* Palette : bleu #3CB2E1, orange #F2971C, marine #10263a en appui. */

/* --- Héros : la salle des machines -------------------------------------- */
.mk2-hero {
    position: relative;
    background: #0b2233;
    padding: 5rem 1.5rem 5.5rem;
    overflow: hidden;
    color: #fff;
}
/* Quadrillage « plan technique » : deux trames très légères, estompées vers
   le bas pour laisser respirer le diagramme. */
.mk2-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(60,178,225,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60,178,225,0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
}
/* Halo bleu derrière le diagramme. */
.mk2-hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -12%;
    width: 48vw;
    height: 48vw;
    background: radial-gradient(circle, rgba(60,178,225,0.14) 0%, transparent 62%);
    pointer-events: none;
}

.mk2-hero-inner {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 1fr);
    gap: 3rem;
    align-items: center;
    z-index: 1;
}
@media (max-width: 860px) {
    .mk2-hero-inner { grid-template-columns: 1fr; }
}

.mk2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(60,178,225,0.45);
    border-radius: 999px;
    color: #8ed4f0;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
/* Point « live » qui pulse : la page est vivante dès la première seconde. */
.mk2-eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #F2971C;
    animation: mk2-pulse 2s ease-in-out infinite;
}
@keyframes mk2-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242,151,28,0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(242,151,28,0); }
}

.mk2-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 1.2rem;
    color: #fff;
    text-wrap: balance;
}
/* `display:block` plutot qu'un <br> dans le texte : le saut de ligne reste
   une decision de mise en page, et la traduction n'a pas a transporter de
   balise. Les 2 mots du titre sont ainsi toujours l'un sous l'autre. */
.mk2-hero h1 em {
    display: block;
    font-style: normal;
    color: #3CB2E1;
}
.mk2-hero-lead {
    color: rgba(255,255,255,0.88);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 34rem;
}

.mk2-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.mk2-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.mk2-btn:hover { transform: translateY(-2px); }
.mk2-btn-primary {
    background: #F2971C;
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(242,151,28,0.55);
}
.mk2-btn-primary:hover { background: #d27d0a; }
.mk2-btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.mk2-btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* Le diagramme de lignage : SVG pur, points animés en SMIL (aucun JS). */
.mk2-diagram {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}
.mk2-diagram .mk2-flow {
    fill: none;
    stroke: rgba(60,178,225,0.55);
    stroke-width: 1.6;
    stroke-dasharray: 5 7;
    animation: mk2-dash 1.4s linear infinite;
}
@keyframes mk2-dash { to { stroke-dashoffset: -12; } }
.mk2-diagram .mk2-node {
    fill: rgba(255,255,255,0.05);
    stroke: rgba(60,178,225,0.6);
    stroke-width: 1.4;
}
.mk2-diagram .mk2-node--tf {
    fill: rgba(242,151,28,0.10);
    stroke: #F2971C;
}
.mk2-diagram text {
    font-family: inherit;
    font-size: 12px;
    fill: #d7ecf7;
    font-weight: 600;
}
.mk2-diagram .mk2-node-type {
    font-size: 9px;
    fill: rgba(215,236,247,0.55);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Carrousel du héros : une animation par outil ------------------------ */
/* 4 slides (Dataflow / Analytics / Catalyst / Agent Bridge) qui réutilisent
   les composants des tuiles bento. Rotation auto (JS en bas de page),
   points cliquables pour naviguer, pause au survol. Sans JS, la slide 1
   (classe .on posée dans le HTML) reste affichée seule. */
.mk2-carousel { position: relative; }
.mk2-carousel-track {
    position: relative;
    /* La hauteur du cadre est celle du diagramme SVG (560x400) : toutes les
       slides partagent ce gabarit. */
    aspect-ratio: 560 / 400;
}
.mk2-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s 0.45s;
    pointer-events: none;
}
.mk2-slide.on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: auto;
}
/* Les cartes claires des tuiles, agrandies pour le héros : le scale évite
   de redéfinir toutes les tailles de police internes. */
.mk2-slide-inner { margin: auto; }
.mk2-slide-inner--q { width: 72%; transform: scale(1.22); }
.mk2-slide-inner--c { width: 94%; transform: scale(1.04); }
.mk2-slide-inner--t { width: 80%; }
.mk2-slide .mk2-term {
    font-size: 0.92rem;
    border: 1px solid rgba(60,178,225,0.35);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
/* Navigation : points + nom de l'outil affiché. */
.mk2-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.3rem;
}
.mk2-dot {
    width: 9px; height: 9px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}
.mk2-dot:hover { background: rgba(255,255,255,0.55); }
.mk2-dot.on { width: 26px; background: #F2971C; }
.mk2-carousel-label {
    margin-left: 0.6rem;
    min-width: 8rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8ed4f0;
}

/* --- Bandeau défilant : versions et cibles supportées -------------------- */
.mk2-ticker {
    background: #10263a;
    border-top: 1px solid rgba(60,178,225,0.25);
    border-bottom: 1px solid rgba(60,178,225,0.25);
    overflow: hidden;
    padding: 0.85rem 0;
}
.mk2-ticker-track {
    display: flex;
    gap: 2.75rem;
    width: max-content;
    /* 32s conviendrait a des libelles courts (« Snowflake »). Depuis DRA-461 le
       bandeau porte des fonctionnalites entieres : la piste est ~3x plus large,
       il faut la duree correspondante pour rester lisible au defilement. */
    animation: mk2-ticker 95s linear infinite;
}
.mk2-ticker:hover .mk2-ticker-track { animation-play-state: paused; }
@keyframes mk2-ticker { to { transform: translateX(-50%); } }
.mk2-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 2.75rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.mk2-ticker-item::after {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #F2971C;
}

/* --- Sections génériques ------------------------------------------------- */
.mk2-section { padding: 5rem 1.5rem; }
.mk2-section-alt { background: #f6f9fb; }
.mk2-container { max-width: 1150px; margin: 0 auto; }
.mk2-section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.mk2-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #10263a;
    margin: 0 0 0.9rem;
    text-wrap: balance;
}
.mk2-section-head p { color: #5a7186; font-size: 1.05rem; line-height: 1.65; margin: 0; }

/* --- Bento : quatre outils, quatre tuiles inégales ----------------------- */
/* La taille des tuiles hiérarchise l'offre au lieu de tout mettre au même
   niveau : Dataflow (produit d'appel) domine, Agent Bridge a son terminal. */
.mk2-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* row-gap généreux : les onglets des tuiles dépassent de ~1.4rem
       au-dessus des cartes, il leur faut de l'air. */
    row-gap: 2.75rem;
    column-gap: 1.4rem;
}
.mk2-tile {
    position: relative;
    background: #fff;
    border: 1px solid #e3ecf2;
    border-radius: 16px;
    padding: 1.9rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    /* visible et non hidden : l'onglet .mk2-tag dépasse du bord supérieur. */
    overflow: visible;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
}
.mk2-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px -18px rgba(16,42,67,0.4);
    border-color: #bfe0f0;
}
.mk2-tile--lg  { grid-column: span 4; }
.mk2-tile--sm  { grid-column: span 2; }
.mk2-tile--md  { grid-column: span 3; }
@media (max-width: 860px) {
    .mk2-tile--lg, .mk2-tile--sm, .mk2-tile--md { grid-column: span 6; }
}

/* Badge de catégorie : onglet de dossier accroché au bord supérieur de la
   tuile, comme une chemise de dossier — bleu pour BW, orange pour ABAP.
   (Les tuiles sont en overflow: visible pour laisser dépasser l'onglet ;
   la capture Dataflow porte son propre arrondi bas pour compenser.) */
.mk2-tag {
    position: absolute;
    top: -1.38rem;
    left: 1.4rem;
    padding: 0.3rem 1.05rem;
    background: #fff;
    border: 1px solid #e3ecf2;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2892c1;
}
.mk2-tile--abap .mk2-tag { color: #d27d0a; }
.mk2-tile h3 { font-size: 1.25rem; font-weight: 800; color: #10263a; margin: 0; }
.mk2-tile p  { color: #5a7186; line-height: 1.6; margin: 0; font-size: 0.95rem; }
/* `margin-top:auto` pousse le lien en bas de tuile, la ou il ferme le bloc.
   Exception : la tuile Dataflow, dont la capture vient APRES le lien dans le
   flux visuel (voir la regle qui suit). */
.mk2-tile-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2892c1;
    font-weight: 600;
    font-size: 0.93rem;
    transition: gap 0.15s ease;
}
.mk2-tile:hover .mk2-tile-link { gap: 0.75rem; }
.mk2-tile--abap .mk2-tile-link { color: #d27d0a; }

/* Capture d'écran de la tuile Dataflow (la même que sur landing.php) :
   recadrée en CSS sur le graphe de lignage UNIQUEMENT (le panneau « Mapping »
   à droite de la capture sort du champ). Réglages du cadrage :
   - width 137%  → coupe le panneau droit (~27 % de la largeur d'origine) ;
   - translateY  → descend/remonte la fenêtre sur la hauteur de la capture.

   /!\ La capture precede le lien, comme le visuel des 3 autres tuiles. C'est
   donc ELLE qui absorbe l'espace libre (`margin-top:auto`) et le lien qui la
   suit, et non l'inverse. Elle ne longe plus le bas de la carte : cadre
   ferme sur les 4 cotes et arrondi uniforme. */
.mk2-tile--lg .mk2-tile-link { margin-top: 0; }
.mk2-tile-shot {
    margin: auto -1.05rem 0;
    border: 1px solid #e3ecf2;
    border-radius: 10px;
    box-shadow: 0 12px 30px -14px rgba(16,42,67,0.35);
    overflow: hidden;
    aspect-ratio: 16 / 6;
}
.mk2-tile-shot img {
    display: block;
    width: 137%;
    max-width: none; /* neutralise le max-width:100% du reset Tailwind */
    height: auto;
    transform: translateY(-26%);
    transition: transform 0.35s ease;
}
.mk2-tile:hover .mk2-tile-shot img { transform: translateY(-26%) scale(1.03); }

/* Miniature « Structure de la requête » de la tuile Analytics : reprise en
   pur CSS de l'écran réel (4 quadrants Axes libres / Colonnes / Lignes /
   Aperçu, puces triangulaires vertes, indicateurs bleus, table d'aperçu aux
   en-têtes teintés). flex: 1 pour remplir la hauteur imposée par la tuile
   Dataflow voisine. */
.mk2-query {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 0.4rem;
    border: 1px solid #e3ecf2;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    font-size: 0.67rem;
    line-height: 1.35;
    color: #33475b;
    box-shadow: 0 8px 22px -16px rgba(16,42,67,0.35);
}
.mk2-query-head {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid #e3ecf2;
    font-size: 0.74rem;
    font-weight: 700;
    color: #10263a;
}
.mk2-query-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    grid-auto-rows: 1fr;
}
.mk2-query-pane { min-width: 0; overflow: hidden; border-bottom: 1px solid #eef4f8; }
.mk2-query-pane:nth-child(odd) { border-right: 1px solid #eef4f8; }
.mk2-query-pane:nth-last-child(-n+2) { border-bottom: none; }
.mk2-query-cap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    background: #f6f9fb;
    border-bottom: 1px solid #eef4f8;
    font-size: 0.64rem;
    font-weight: 700;
    color: #10263a;
}
.mk2-query-cap::before { content: '☰'; font-size: 0.6rem; color: #8aa2b5; }
.mk2-query-pane--cols .mk2-query-cap::before { content: '▦'; }
.mk2-query-pane--prev .mk2-query-cap::before { content: '◎'; }
.mk2-query-pane ul {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}
.mk2-query-pane li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
}
.mk2-query-pane li::before {
    content: '';
    flex-shrink: 0;
    width: 7px; height: 7px;
    /* Triangle vert des caractéristiques, comme dans l'application. */
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: #2fa36b;
}
/* Les colonnes sont des ratios/indicateurs : carré bleu, pas triangle. */
.mk2-query-pane--cols li::before {
    clip-path: none;
    border-radius: 2px;
    background: #3CB2E1;
}
/* Mini-table d'aperçu : en-têtes teintés bleu/lavande comme l'écran réel. */
.mk2-query-tbl {
    width: calc(100% - 1rem);
    margin: 0.35rem 0.5rem 0.5rem;
    border-collapse: collapse;
    font-size: 0.58rem;
    table-layout: fixed;
}
.mk2-query-tbl th {
    padding: 0.22rem 0.25rem;
    border: 1px solid #e3ecf2;
    font-weight: 700;
    color: #10263a;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk2-query-tbl th:first-child { background: #f1f5f9; }
.mk2-query-tbl th.t-blue { background: #dbeafe; }
.mk2-query-tbl th.t-purl { background: #ece9fb; }
.mk2-query-tbl td { height: 0.85rem; border: 1px solid #eef4f8; }
.mk2-query-tbl td:first-child { background: #f8fafc; }
/* Scène de conversion de la tuile Catalyst : une routine BW à gauche, le
   notebook généré dans la techno cible à droite (les 4 cibles en onglets),
   reliés par un flux animé — le même langage visuel que le héros. */
.mk2-cat {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1.25fr;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.4rem;
}
@media (max-width: 480px) {
    .mk2-cat { grid-template-columns: 1fr; }
    .mk2-cat-link svg { transform: rotate(90deg); }
}
.mk2-cat-src, .mk2-cat-nb {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e3ecf2;
    border-radius: 10px;
    background: #fbfdfe;
    overflow: hidden;
    box-shadow: 0 8px 22px -16px rgba(16,42,67,0.35);
}
.mk2-cat-head {
    padding: 0.3rem 0.6rem;
    background: #f6f9fb;
    border-bottom: 1px solid #eef4f8;
    font-size: 0.62rem;
    font-weight: 700;
    color: #10263a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk2-cat-code {
    flex: 1;
    margin: 0;
    padding: 0.5rem 0.6rem;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.6rem;
    line-height: 1.7;
    color: #33475b;
    white-space: pre;
    overflow: hidden;
}
.mk2-cat-code .kw2  { color: #2892c1; font-weight: 600; }
.mk2-cat-code .str2 { color: #d27d0a; }
.mk2-cat-code .cmt2 { color: #8aa2b5; }
/* Le connecteur : un rail discret, une pointe pleine, et un point de donnée
   qui circule (SMIL) — même langage que le diagramme du héros. */
.mk2-cat-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.mk2-cat-link .rail {
    fill: none;
    stroke: rgba(242,151,28,0.38);
    stroke-width: 2;
    stroke-linecap: round;
}
.mk2-cat-link .tip { fill: #F2971C; }
.mk2-cat-link em {
    font-style: normal;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d27d0a;
}
/* Les 4 cibles cloud en onglets : la cible active est orange. */
.mk2-cat-tabs {
    display: flex;
    gap: 0.2rem;
    padding: 0.3rem 0.45rem;
    background: #f6f9fb;
    border-bottom: 1px solid #eef4f8;
    overflow: hidden;
}
.mk2-cat-tabs span {
    font-size: 0.56rem;
    font-weight: 700;
    color: #5a7186;
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}
.mk2-cat-tabs .on { background: #F2971C; color: #fff; }
.mk2-cat-out {
    padding: 0.32rem 0.6rem;
    border-top: 1px solid #eef4f8;
    background: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    color: #2fa36b;
}

/* Terminal de la tuile Agent Bridge : de l'ABAP qui s'écrit tout seul. */
.mk2-term {
    background: #0b2233;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.75;
    color: #d7ecf7;
    margin-top: 0.4rem;
    overflow: hidden;
}
.mk2-term-dots { display: flex; gap: 5px; margin-bottom: 0.7rem; }
.mk2-term-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.mk2-term-dots i:first-child { background: #F2971C; }
.mk2-term .kw  { color: #3CB2E1; }
.mk2-term .str { color: #F2971C; }
.mk2-term .cmt { color: rgba(215,236,247,0.45); }
.mk2-term-typing {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: bottom;
    max-width: 100%;
    border-right: 2px solid #F2971C;
    animation: mk2-typing 5s steps(41, end) infinite,
               mk2-caret 0.8s step-end infinite;
}
@keyframes mk2-typing {
    0%       { width: 0; }
    60%, 92% { width: 41ch; }
    100%     { width: 41ch; }
}
@keyframes mk2-caret { 50% { border-color: transparent; } }

/* --- Le parcours en trois temps : rail horizontal ------------------------ */
.mk2-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
/* Le rail relie les 3 blocs : il dit qu'ils appartiennent a une meme offre.
   /!\ Mais PAS de compteur : ces 3 blocs sont des besoins INDEPENDANTS, et
   un client peut n'avoir que le troisieme. Une numerotation ferait croire a
   un parcours impose. La pastille porte donc une icone thematique, pas un
   rang. Rail masque en colonne, ou il ne relierait plus rien. */
.mk2-steps::before {
    content: '';
    position: absolute;
    top: 1.35rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #bfe0f0 0 10px, transparent 10px 18px);
}
@media (max-width: 860px) { .mk2-steps::before { display: none; } }
.mk2-step { position: relative; text-align: center; padding-top: 0.4rem; }
/* /!\ Fond OPAQUE et z-index : la pastille doit masquer le rail qui passe
   derriere elle. Une couleur translucide le laisserait transparaitre au
   milieu de l'icone. Les 2 teintes sont les rgba() d'origine aplaties sur le
   fond #f6f9fb de la section. */
.mk2-step-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem; height: 2.7rem;
    border-radius: 50%;
    background: #e8f4fb;
    color: #2892c1;
    box-shadow: 0 0 0 6px #f6f9fb;
    margin-bottom: 1.1rem;
}
.mk2-step:last-child .mk2-step-icon {
    background: #fdf0dc;
    color: #d27d0a;
}
.mk2-step h3 { font-size: 1.1rem; font-weight: 700; color: #10263a; margin: 0 0 0.5rem; }
.mk2-step p  { color: #5a7186; line-height: 1.6; font-size: 0.94rem; margin: 0 0 0.75rem; }
.mk2-step-products { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; }
.mk2-step-products span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2892c1;
    background: rgba(60,178,225,0.1);
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
}
.mk2-step:last-child .mk2-step-products span { color: #d27d0a; background: rgba(242,151,28,0.12); }

/* --- « Ce que vous n'aurez pas à faire » : les tâches rayées -------------- */
/* Chaque contrainte habituelle est présentée comme une tâche déjà cochée et
   rayée — jamais à mettre au planning. Grille 2x2 : titre et explication
   sont empilés dans la carte, l'alignement reste net quelle que soit la
   longueur du titre. */
.mk2-nope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
    max-width: 900px;
    margin: 0 auto;
}
.mk2-nope-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e3ecf2;
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mk2-nope-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px -18px rgba(16,42,67,0.35);
    border-color: #f5d3a3;
}
/* La case cochée : la tâche est déjà réglée. */
.mk2-nope-check {
    flex-shrink: 0;
    width: 1.55rem; height: 1.55rem;
    margin-top: 0.1rem;
    border-radius: 6px;
    background: #F2971C;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* L'animation ne démarre pas au chargement : c'est la classe .mk2-inview,
   posée par l'IntersectionObserver quand la section entre à l'écran, qui la
   déclenche — et elle se rejoue à chaque retour sur la section. */
.mk2-nope-check svg { transform: scale(0); }
.mk2-inview .mk2-nope-check svg { animation: mk2-pop 0.3s ease-out forwards; }
@keyframes mk2-pop { to { transform: scale(1); } }
.mk2-nope-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #10263a;
    margin: 0 0 0.35rem;
}
/* Le trait de rayure : il se dessine tout seul, l'un après l'autre. */
.mk2-nope-title::after {
    content: '';
    position: absolute;
    left: -2%;
    top: 55%;
    height: 3px;
    width: 104%;
    border-radius: 2px;
    background: #F2971C;
    transform: scaleX(0);
    transform-origin: left;
}
.mk2-inview .mk2-nope-title::after { animation: mk2-strike 0.45s ease-out forwards; }
/* Case cochée puis titre rayé, carte après carte. */
.mk2-nope-card:nth-child(1) .mk2-nope-check svg     { animation-delay: 0.3s; }
.mk2-nope-card:nth-child(1) .mk2-nope-title::after  { animation-delay: 0.5s; }
.mk2-nope-card:nth-child(2) .mk2-nope-check svg     { animation-delay: 0.8s; }
.mk2-nope-card:nth-child(2) .mk2-nope-title::after  { animation-delay: 1.0s; }
.mk2-nope-card:nth-child(3) .mk2-nope-check svg     { animation-delay: 1.3s; }
.mk2-nope-card:nth-child(3) .mk2-nope-title::after  { animation-delay: 1.5s; }
.mk2-nope-card:nth-child(4) .mk2-nope-check svg     { animation-delay: 1.8s; }
.mk2-nope-card:nth-child(4) .mk2-nope-title::after  { animation-delay: 2.0s; }
@keyframes mk2-strike { to { transform: scaleX(1); } }
.mk2-nope-detail {
    font-size: 0.92rem;
    color: #5a7186;
    line-height: 1.55;
    margin: 0;
}

/* --- Appel final ---------------------------------------------------------- */
.mk2-final {
    background: #0b2233;
    border-radius: 18px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.mk2-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(60,178,225,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60,178,225,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.mk2-final h2 { position: relative; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 0.9rem; color: #fff; }
.mk2-final p  { position: relative; opacity: 0.88; max-width: 38rem; margin: 0 auto 2rem; line-height: 1.65; }
.mk2-final .mk2-actions { position: relative; justify-content: center; }

/* --- Accessibilité : tout se fige si l'utilisateur le demande ------------- */
@media (prefers-reduced-motion: reduce) {
    .mk2-hero *, .mk2-ticker-track, .mk2-term-typing, .mk2-bar i,
    .mk2-nope-title::after, .mk2-nope-check svg, .mk2-eyebrow::before {
        animation: none !important;
    }
    .mk2-term-typing { width: auto; border-right: none; }
    .mk2-nope-title::after { transform: scaleX(1); }
    .mk2-nope-check svg { transform: scale(1); }
    /* Le carrousel ne tourne plus tout seul (voir JS) : on coupe aussi la
       transition de fondu pour que le changement manuel soit instantané. */
    .mk2-slide { transition: none; }

    /* /!\ `animation: none` ne coupe QUE les animations CSS. Les points qui
       circulent sur les flux sont du SMIL (<animateMotion>), hors de portee
       de la cascade : il faut masquer les elements animes eux-memes.
       Concerne le diagramme du heros et la tuile Catalyst. */
    .mk2-diagram circle[r], .mk2-cat-link circle[r] { display: none; }
}

@media (max-width: 640px) {
    .mk2-hero { padding: 3.5rem 1.25rem 4rem; }
    .mk2-section { padding: 3.5rem 1.25rem; }
}
