/* ============================================================
   INDEX — SOUTENANCE FINALE
   (les règles restent dans leur ordre de cascade validé)
   ============================================================
   01 — INTRO  #intro
   02 — POURQUOI UNE V2  #contexte
   03 — OBJECTIFS  #objectifs
   04 — ARCHITECTURE GLOBALE  #architecture
   05 — ARCHITECTURE DÉTAILLÉE  #architecture-detail
   06 — EXPOSITION RÉSEAU  #network-exposure
   07 — TERRAFORM — DEUX CYCLES DE VIE  #terraform
   08 — INFRASTRUCTURE AWS  #aws-infra
   09 — TERRAFORM VERS ANSIBLE  #terraform-ansible
   10 — ANSIBLE & K3S  #ansible-k3s
   11 — HELM / HELMFILE / GITEA  #helm-gitea
   12 — VALIDATION PERSISTANCE  #validation-persistence
   13 — DEUX DÉPÔTS  #repositories
   14 — INCIDENT EFS  #incident-efs
   15 — DIAGNOSTIC EFS  #diagnostic-efs
   16 — STAGING / PRODUCTION  #environments
   17 — SOLUTION INCIDENT EFS  #solution-efs
   18 — GITLAB CI/CD  #gitlab-cicd
   19 — SUPERVISION  #monitoring
   20 — CYCLE DE VIE  #lifecycle
   21 — BILAN  #bilan
   22 — ÉVOLUTIONS  #evolutions
   23 — CONCLUSION  #conclusion
   24 — OVERVIEW FINAL  #overview-final
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at center,
            #172033,
            #080c15 70%
        );

    color: #ffffff;
}


/* -------------------------
   Slides
------------------------- */
 

.step.active {
    opacity: 1;
}


/* carte principale */

.slide {
    background: rgba(20, 28, 45, 0.96);

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 25px;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);
}


/* -------------------------
   Typographie
------------------------- */

h1 {
    margin-top: 0;

    font-size: 72px;
    font-weight: 700;

    letter-spacing: -2px;
}


h2 {
    font-size: 42px;

    font-weight: 400;

    opacity: 0.8;
}


p {
    font-size: 30px;

    line-height: 1.5;
}


.subtitle {
    margin-top: 80px;

    font-size: 28px;

    opacity: 0.7;
}


.author {
    margin-top: 40px;

    font-size: 24px;

    opacity: 0.5;
}


.tech {
    margin-top: 70px;

    font-size: 36px;

    font-weight: 600;
}


.big {
    margin-top: 80px;

    font-size: 100px;

    font-weight: 800;

    letter-spacing: -4px;
}


/* -------------------------
   Overview
------------------------- */

#overview {
    pointer-events: none;
}


/* quand on est sur l'overview */

.impress-on-overview .step {
    opacity: 1;
}


/* -------------------------
   Hint
------------------------- */

.hint {
    position: fixed;

    bottom: 20px;
    left: 0;
    right: 0;

    text-align: center;

    font-size: 14px;

    opacity: 0.35;

    z-index: 100;
}


.eyebrow {
    font-size: 20px;
    letter-spacing: 8px;
    opacity: 0.5;
}

.enter {
    margin-top: 100px;
    font-size: 22px;
    opacity: 0.5;
}


/* -------------------------
   Tunnel Ansible → K3s
------------------------- */

.tunnel {
    width: 900px;
    height: 500px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border: 4px solid rgba(255,255,255,.5);

    box-shadow:
        inset 0 0 80px rgba(255,255,255,.08),
        0 0 80px rgba(255,255,255,.08);
}

.tunnel span {
    font-size: 22px;
    letter-spacing: 6px;
    opacity: .5;
}

.tunnel strong {
    margin: 50px;

    font-size: 65px;
    line-height: 1.1;
}


/* -------------------------
   K3s
------------------------- */

.cluster {
    display: flex;
    gap: 30px;

    margin-top: 80px;
}

.cluster div {
    flex: 1;

    padding: 35px 20px;

    text-align: center;

    border: 2px solid rgba(255,255,255,.3);

    border-radius: 15px;

    font-size: 24px;
}

/* ==================================================
   01 — INTRO
   ================================================== */

#intro {
    padding: 65px 55px 45px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* ===== TITRE ===== */

#intro h1 {
    margin: 0;

    font-size: 82px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: -2px;
}


/* ===== SOUS-TITRE ===== */

#intro h2 {
    margin: 28px 0 0;

    font-size: 38px;
    line-height: 1.25;
    font-weight: 500;

    color: var(--muted);
}


/* ===== STACK ===== */

#intro .intro-stack {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;

    gap: 48px;

    width: 100%;
    margin: 52px auto 42px;
}


/* ===== OUTIL ===== */

#intro .intro-tool {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 130px;

    gap: 14px;
}


/* ===== LOGOS ===== */

#intro .intro-tool img {
    display: block;

    width: 72px;
    height: 72px;

    max-width: 72px;
    max-height: 72px;

    object-fit: contain;

    filter: drop-shadow(
        0 10px 20px rgba(0, 0, 0, .22)
    );
}


/* ===== NOMS TECHNOLOGIES ===== */

#intro .intro-tool span {
    display: block;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;

    text-align: center;

    color: var(--text);
}


/* ===== AUTEUR ===== */

#intro .author {
    margin: 0;

    font-size: 24px;
    font-weight: 500;

    color: var(--muted);
    opacity: .9;
}



/* ==================================================
   02 — POURQUOI UNE V2 ?
   ================================================== */

#contexte {
    padding: 38px 45px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#contexte h1 {
    margin: 0;

    text-align: center;

    font-size: 66px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#contexte .slide-lead {
    margin: 14px 0 42px;

    text-align: center;

    font-size: 30px;
    line-height: 1.3;

    color: var(--muted);

    opacity: .9;
}


/* ===== FLUX V1 → V2 ===== */

.v2-flow {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 24px;

    width: 100%;
}


/* ===== CARTES V1 / V2 ===== */

.v2-card {
    width: 300px;
    min-height: 235px;

    padding: 28px 24px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 20px;

    background: rgba(255, 255, 255, .045);

    text-align: center;
}


/* V1 = point de départ */

.v2-card:first-child {
    border-color: rgba(139, 92, 246, .38);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .10),
            rgba(255, 255, 255, .035)
        );
}


/* V2 = résultat / nouvelle architecture */

.v2-card-highlight {
    border-color: rgba(52, 211, 153, .48);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .12),
            rgba(255, 255, 255, .04)
        );

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .18);
}


/* ===== V1 / V2 ===== */

.v2-version {
    display: block;

    font-size: 42px;
    font-weight: 800;
    line-height: 1;

    color: var(--purple);
}

.v2-card-highlight .v2-version {
    color: var(--green);
}


/* ===== TITRES CARTES ===== */

.v2-card h2 {
    margin: 18px 0 18px;

    font-size: 27px;
    line-height: 1.2;
}


/* ===== TEXTE CARTES ===== */

.v2-card p {
    margin: 0;

    font-size: 22px;
    line-height: 1.4;

    color: var(--muted);

    opacity: .95;
}


/* ===== FLÈCHES ===== */

.v2-arrow {
    font-size: 42px;
    font-weight: 600;

    color: var(--muted);

    opacity: .7;
}


/* ===== AMÉLIORATION IDENTIFIÉE ===== */

.v2-improvement {
    width: 300px;
    min-height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 10px;

    padding: 18px 15px;

    box-sizing: border-box;

    text-align: center;

    border-top: 2px solid rgba(245, 158, 11, .45);
    border-bottom: 2px solid rgba(245, 158, 11, .22);
}


/* Label */

.v2-improvement-label {
    margin-bottom: 7px;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: 1.4px;

    color: var(--orange);

    opacity: 1;
}


/* Terraform outputs / Inventaires Ansible */

.v2-improvement strong {
    font-size: 23px;
    line-height: 1.2;
}


/* Flèche verticale */

.v2-improvement > span:not(.v2-improvement-label) {
    font-size: 28px;

    color: var(--orange);

    opacity: .85;
}


/* Explication */

.v2-improvement small {
    margin-top: 5px;

    font-size: 18px;
    line-height: 1.35;

    color: var(--muted);

    opacity: .9;
}


/* ===== OBJECTIFS ===== */

.v2-objectives {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 16px;

    margin-top: 42px;
}

.v2-objectives span {
    padding: 11px 18px;

    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 22px;

    background: rgba(56, 189, 248, .075);

    font-size: 19px;
    font-weight: 600;

    color: var(--text);

    opacity: 1;
}

/* ==================================================
   03 — OBJECTIFS
   ================================================== */

#objectifs {
    padding: 30px 38px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#objectifs h1 {
    margin: 0 0 24px;

    text-align: center;

    font-size: 66px;
    line-height: 1.05;
}


/* ==================================================
   APPLICATION CIBLE
   ================================================== */

.target-app {
    width: 820px;

    margin: 0 auto 28px;
    padding: 14px 24px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 28px;

    box-sizing: border-box;

    border: 1px solid rgba(56, 189, 248, .30);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(56, 189, 248, .08),
            rgba(255, 255, 255, .035)
        );
}


/* Label */

.target-app-label {
    font-size: 16px;
    font-weight: 800;

    letter-spacing: 1.3px;

    color: var(--blue);
}


/* Gitea + description */

.target-app-content {
    display: flex;
    align-items: baseline;

    gap: 18px;
}

.target-app-content strong {
    font-size: 27px;
    line-height: 1.2;
}

.target-app-content span {
    font-size: 20px;

    color: var(--muted);

    opacity: .95;
}


/* ==================================================
   OBJECTIFS
   ================================================== */

.objectives-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


/* ===== CARTE ===== */

.objective-card {
    position: relative;

    min-height: 300px;

    padding: 34px 18px 24px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 20px;

    background: rgba(255, 255, 255, .045);

    text-align: center;
}


/* ===== COULEURS DES 4 OBJECTIFS ===== */


/* 01 — Automatiser */

.objective-card:nth-child(1) {
    border-color: rgba(245, 158, 11, .38);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .09),
            rgba(255, 255, 255, .035)
        );
}

.objective-card:nth-child(1) h2 {
    color: var(--orange);
}


/* 02 — Séparer */

.objective-card:nth-child(2) {
    border-color: rgba(139, 92, 246, .38);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .09),
            rgba(255, 255, 255, .035)
        );
}

.objective-card:nth-child(2) h2 {
    color: var(--purple);
}


/* 03 — Persister */

.objective-card:nth-child(3) {
    border-color: rgba(34, 211, 238, .38);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .09),
            rgba(255, 255, 255, .035)
        );
}

.objective-card:nth-child(3) h2 {
    color: var(--cyan);
}


/* 04 — Valider */

.objective-card:nth-child(4) {
    border-color: rgba(52, 211, 153, .40);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .10),
            rgba(255, 255, 255, .035)
        );
}

.objective-card:nth-child(4) h2 {
    color: var(--green);
}


/* ===== NUMÉROS ===== */

.objective-number {
    position: absolute;

    top: 15px;
    right: 17px;

    font-size: 17px;
    font-weight: 800;

    color: var(--muted);

    opacity: .65;
}


/* ===== TITRES ===== */

.objective-card h2 {
    margin: 22px 0 30px;

    font-size: 30px;
    line-height: 1.15;
}


/* ===== CONTENU ===== */

.objective-card p {
    margin: 14px 0;

    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;

    color: var(--text);

    opacity: 1;
}

.objective-card p span {
    margin: 0 5px;

    color: var(--muted);

    opacity: .85;
}


/* ===== EXPLICATION ===== */

.objective-card small {
    display: block;

    margin-top: 30px;

    font-size: 18px;
    line-height: 1.35;

    color: var(--muted);

    opacity: .9;
}


/* ==================================================
   OBJECTIF FINAL
   ================================================== */

.objective-result {
    margin-top: 25px;

    text-align: center;
}

.objective-result span {
    display: block;

    margin-bottom: 6px;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 1.4px;

    color: var(--green);

    opacity: .9;
}

.objective-result strong {
    font-size: 24px;
    line-height: 1.2;
}

/* ==================================================
   04 — ARCHITECTURE GLOBALE
   ================================================== */

#architecture {
    padding: 30px 30px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#architecture h1 {
    margin: 0;

    text-align: center;

    font-size: 66px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#architecture .slide-lead {
    margin: 14px 0 42px;

    text-align: center;

    font-size: 28px;
    line-height: 1.3;

    color: var(--muted);

    opacity: .9;
}


/* ==================================================
   CHAÎNE PRINCIPALE
   ================================================== */

.architecture-flow {
    display: flex;
    justify-content: center;
    align-items: stretch;

    gap: 12px;

    width: 100%;
}


/* ===== BLOCS ===== */

.arch-block {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 205px;
    min-height: 245px;

    padding: 24px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;

    background: rgba(255, 255, 255, .045);

    text-align: center;
}


/* ==================================================
   TERRAFORM
   ================================================== */

.terraform-block {
    min-width: 390px;

    border-color: rgba(139, 92, 246, .42);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .11),
            rgba(255, 255, 255, .035)
        );
}

.terraform-block .arch-title {
    color: var(--purple);
}


/* ===== TITRES TECHNOLOGIES ===== */

.arch-title {
    margin-bottom: 22px;

    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}


/* ===== CONTENU PRINCIPAL ===== */

.arch-block strong {
    display: block;

    font-size: 23px;
    line-height: 1.25;
}

.arch-block small,
.arch-subblock small {
    display: block;

    margin-top: 10px;

    font-size: 18px;
    line-height: 1.35;

    color: var(--muted);

    opacity: .95;
}


/* ===== PERSISTENT / COMPUTE ===== */

.terraform-layers {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
}

.arch-subblock {
    width: 155px;
    min-height: 125px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 14px 12px;

    box-sizing: border-box;

    border: 1px solid rgba(139, 92, 246, .25);
    border-radius: 14px;

    background: rgba(139, 92, 246, .075);
}

.arch-subblock strong {
    font-size: 22px;
}


/* ==================================================
   ANSIBLE
   ================================================== */

.arch-block:nth-of-type(3) {
    border-color: rgba(245, 158, 11, .40);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .10),
            rgba(255, 255, 255, .035)
        );
}

.arch-block:nth-of-type(3) .arch-title {
    color: var(--orange);
}


/* ==================================================
   K3S
   ================================================== */

.arch-block:nth-of-type(5) {
    border-color: rgba(34, 211, 238, .40);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .10),
            rgba(255, 255, 255, .035)
        );
}

.arch-block:nth-of-type(5) .arch-title {
    color: var(--cyan);
}


/* ==================================================
   GITEA
   ================================================== */

.gitea-block {
    border-color: rgba(52, 211, 153, .42);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .10),
            rgba(255, 255, 255, .035)
        );
}

.gitea-block .arch-title {
    color: var(--green);
}


/* ==================================================
   FLÈCHES
   ================================================== */

.flow-arrow {
    font-size: 32px;
    font-weight: 600;

    color: var(--muted);

    opacity: .75;
}

.main-arrow {
    display: flex;
    align-items: center;

    font-size: 38px;

    color: var(--blue);

    opacity: .8;
}


/* ==================================================
   GITLAB CI/CD
   ================================================== */

.architecture-ci {
    width: 90%;

    margin: 40px auto 0;

    text-align: center;
}

.architecture-ci span {
    font-size: 25px;
    font-weight: 800;

    color: var(--orange);
}

.ci-line {
    height: 2px;

    margin: 11px 0 10px;

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(245, 158, 11, .65),
            transparent
        );
}

.architecture-ci small {
    font-size: 19px;
    font-weight: 500;

    color: var(--muted);

    opacity: .9;
}

/* ===== LOGO AWS — DÉCOR ARCHITECTURE ===== */

#architecture {
    position: relative;
}

.architecture-bg-logo {
    position: absolute;

    width: 650px;
    height: 650px;

    right: -170px;
    top: 40px;

    object-fit: contain;

    opacity: .035;
    filter: grayscale(1);

    pointer-events: none;
    z-index: -1;
}

/* ==================================================
   05 - ARCHITECTURE — VUE DÉTAILLÉE
   ================================================== */

#architecture-detail {
    width: 1200px;
    height: 700px;
    padding: 34px 48px;
    box-sizing: border-box;
}

#architecture-detail h1 {
    margin: 0;
    text-align: center;
    font-size: 46px;
}

#architecture-detail .slide-lead {
    margin: 9px 0 17px;
    text-align: center;
    font-size: 18px;
    color: var(--muted);
}

.architecture-schema {
    width: 970px;
    height: 515px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 18px;
    background: rgba(255,255,255,.025);

    overflow: hidden;
}

.architecture-schema img {
    display: block;
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
}

.architecture-schema-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;

    margin-top: 12px;

    font-size: 13px;
    color: var(--muted);
}

.architecture-schema-footer strong {
    color: var(--blue);
}

/* ==================================================
   06 - EXPOSITION RÉSEAU
   ================================================== */

#network-exposure {
    width: 1150px;
    height: 700px;
    padding: 48px 60px;
    box-sizing: border-box;
}

#network-exposure h1 {
    margin: 0;
    text-align: center;
    font-size: 49px;
}

#network-exposure .slide-lead {
    width: 850px;
    margin: 14px auto 48px;
    text-align: center;

    font-size: 18px;
    line-height: 1.4;
    color: var(--muted);
}

.network-zones {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.network-zone {
    width: 360px;
    min-height: 290px;
    padding: 25px 28px;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 19px;

    background: rgba(255,255,255,.04);
}

.public-zone {
    border-color: rgba(56,189,248,.38);

    background:
        linear-gradient(
            145deg,
            rgba(56,189,248,.09),
            rgba(255,255,255,.025)
        );
}

.private-zone {
    border-color: rgba(52,211,153,.38);

    background:
        linear-gradient(
            145deg,
            rgba(52,211,153,.08),
            rgba(255,255,255,.025)
        );
}

.network-label {
    display: block;
    margin-bottom: 14px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;

    color: var(--muted);
}

.network-zone h2 {
    margin: 0 0 20px;
    font-size: 25px;
}

.network-items {
    display: grid;
    gap: 8px;
}

.network-items span {
    padding: 8px 12px;

    border-radius: 9px;
    background: rgba(255,255,255,.05);

    font-size: 14px;
}

.network-zone small {
    display: block;
    margin-top: 18px;

    font-size: 12px;
    color: var(--muted);
}

.network-direction {
    width: 100px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.network-direction span {
    font-size: 35px;
    color: var(--blue);
}

.network-direction small {
    margin-top: 5px;
    font-size: 10px;
    color: var(--muted);
}

.network-result {
    margin-top: 36px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 17px;

    font-size: 15px;
}

.network-result span {
    color: var(--blue);
}

/* ==================================================
   07 — TERRAFORM — DEUX CYCLES DE VIE
   ================================================== */

#terraform {
    padding: 28px 45px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#terraform h1 {
    margin: 0;

    text-align: center;

    font-size: 66px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#terraform .slide-lead {
    margin: 14px 0 28px;

    text-align: center;

    font-size: 30px;
    line-height: 1.3;

    color: var(--muted);

    opacity: .9;
}


/* ==================================================
   ARCHITECTURE TERRAFORM
   ================================================== */

.tf-architecture {
    width: 980px;

    margin: 0 auto;
}


/* ===== COUCHES ===== */

.tf-layer {
    position: relative;

    padding: 24px 34px;

    box-sizing: border-box;

    border: 2px solid rgba(139, 92, 246, .34);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .09),
            rgba(255, 255, 255, .035)
        );
}


/* ===== TITRES PERSISTENT / COMPUTE ===== */

.tf-layer h2 {
    margin: 0 0 20px;

    text-align: center;

    font-size: 34px;
    line-height: 1.1;

    color: var(--purple);
}


/* ===== STATE ===== */

.tf-label {
    position: absolute;

    top: 18px;
    right: 22px;

    padding: 5px 11px;

    border: 1px solid rgba(139, 92, 246, .28);
    border-radius: 14px;

    background: rgba(139, 92, 246, .08);

    font-size: 16px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);

    opacity: .9;
}


/* ==================================================
   RESSOURCES
   ================================================== */

.tf-resources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;
}

.tf-resources span {
    padding: 9px 16px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;

    background: rgba(255, 255, 255, .06);

    font-size: 20px;
    font-weight: 500;

    color: var(--text);
}


/* ==================================================
   LIEN OUTPUTS
   ================================================== */

.tf-link {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 18px;

    height: 82px;
}


/* ligne verticale derrière le flux */

.tf-link::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 50%;

    width: 2px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            180deg,
            rgba(56, 189, 248, .15),
            rgba(56, 189, 248, .75),
            rgba(56, 189, 248, .15)
        );

    z-index: 0;
}


/* outputs */

.tf-link strong {
    position: relative;
    z-index: 1;

    padding: 7px 13px;

    border-radius: 15px;

    background: var(--bg);

    font-size: 21px;
    font-weight: 800;

    color: var(--blue);
}


/* TF_VAR_* */

.tf-link small {
    position: relative;
    z-index: 1;

    padding: 7px 12px;

    border-radius: 14px;

    background: var(--bg);

    font-size: 18px;
    font-weight: 600;

    color: var(--muted);

    opacity: 1;
}


/* flèches */

.tf-arrow {
    position: relative;
    z-index: 1;

    padding: 2px 6px;

    background: var(--bg);

    font-size: 30px;
    font-weight: 700;

    color: var(--blue);

    opacity: 1;
}


/* ==================================================
   COMPUTE
   ================================================== */

.tf-compute {
    border-color: rgba(34, 211, 238, .38);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .08),
            rgba(255, 255, 255, .035)
        );
}

.tf-compute h2 {
    color: var(--cyan);
}

.tf-compute .tf-label {
    border-color: rgba(34, 211, 238, .28);

    background: rgba(34, 211, 238, .07);
}


/* ==================================================
   RÉSULTAT
   ================================================== */

.tf-result {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    margin-top: 27px;

    font-size: 20px;
    font-weight: 600;

    color: var(--muted);

    opacity: .95;
}


/* séparateurs */

.tf-result span:nth-child(2),
.tf-result span:nth-child(4) {
    color: var(--blue);

    opacity: .8;
}

/* ==================================================
   06 — INFRASTRUCTURE AWS
   ================================================== */

#aws-infra {
    padding: 25px 35px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#aws-infra h1 {
    margin: 0;
    text-align: center;

    font-size: 66px;
    line-height: 1.05;
}

#aws-infra .slide-lead {
    margin: 12px 0 24px;

    text-align: center;

    font-size: 30px;
    line-height: 1.25;

    opacity: .9;
}


/* ===== VPC ===== */

.aws-vpc {
    position: relative;

    width: 1180px;
    margin: 0 auto;
    padding: 42px 32px 30px;

    box-sizing: border-box;

    border: 2px solid rgba(56, 189, 248, .5);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .07),
            rgba(255, 255, 255, .025)
        );

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .18);
}


/* ===== LABEL VPC ===== */

.vpc-label {
    position: absolute;

    top: -17px;
    left: 30px;

    padding: 6px 18px;

    border: 1px solid rgba(56, 189, 248, .5);
    border-radius: 18px;

    background: var(--bg);

    font-size: 20px;
    font-weight: 700;

    color: var(--blue);
}


/* ===== ZONES ===== */

.aws-zone {
    display: grid;

    grid-template-columns: 210px 1fr 1fr;
    gap: 22px;

    align-items: stretch;
}

.zone-title {
    display: flex;
    align-items: center;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;

    opacity: 1;
}


/* ===== SUBNETS ===== */

.subnet {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 112px;

    padding: 18px 24px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;

    background: rgba(255, 255, 255, .055);
}


/* AZ */

.subnet strong {
    font-size: 27px;
    line-height: 1.15;
}


/* CIDR */

.subnet span {
    margin-top: 7px;

    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;

    color: var(--muted);

    opacity: 1;
}


/* Ressources */

.subnet small {
    margin-top: 11px;

    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;

    opacity: 1;
}


/* ===== PUBLIC ===== */

.public-zone .subnet {
    border-color: rgba(245, 158, 11, .42);

    background:
        linear-gradient(
            135deg,
            rgba(245, 158, 11, .11),
            rgba(255, 255, 255, .04)
        );
}

.public-zone .zone-title {
    color: var(--orange);
}


/* ===== PRIVATE ===== */

.private-zone .subnet {
    border-color: rgba(34, 211, 238, .40);

    background:
        linear-gradient(
            135deg,
            rgba(34, 211, 238, .10),
            rgba(255, 255, 255, .04)
        );
}

.private-zone .zone-title {
    color: var(--cyan);
}


/* ===== FLUX ===== */

.network-arrow {
    margin: 15px 0;

    text-align: center;

    font-size: 23px;
    font-weight: 600;

    color: var(--muted);

    opacity: .9;
}


/* ===== SERVICES AWS ===== */

.aws-services {
    display: flex;
    justify-content: center;

    gap: 15px;

    margin-top: 24px;
}

.aws-services span {
    padding: 12px 20px;

    border: 1px solid rgba(56, 189, 248, .32);
    border-radius: 22px;

    background: rgba(56, 189, 248, .10);

    font-size: 22px;
    font-weight: 600;

    color: var(--text);
}

/* ==================================================
   07 — TERRAFORM → ANSIBLE — VERSION PROJECTION
   ================================================== */

#terraform-ansible {
    padding: 30px 35px;
    box-sizing: border-box;
     position: relative;
}

.ansible-bg-logo {
    position: absolute;

    width: 620px;
    height: 620px;

    right: -190px;
    top: 50px;

    object-fit: contain;

    opacity: .032;
    filter: grayscale(1);

    pointer-events: none;
    z-index: -1;
}

/* ===== TITRE ===== */

#terraform-ansible h1 {
    margin: 0;
    text-align: center;

    font-size: 62px;
    line-height: 1.05;
}

#terraform-ansible .slide-lead {
    margin: 12px 0 42px;

    text-align: center;

    font-size: 28px;
    line-height: 1.25;

    color: var(--muted);
    opacity: .9;
}


/* ===== CHAÎNE D'AUTOMATISATION ===== */

.automation-chain {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;

    width: 100%;
}


/* ===== BLOCS ===== */

.chain-block {
    position: relative;

    width: 220px;
    min-height: 175px;

    padding: 25px 18px 22px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .07),
            rgba(255, 255, 255, .025)
        );

    text-align: center;
}


/* ===== LABELS ===== */

.chain-label {
    display: block;

    margin-bottom: 12px;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;

    color: var(--muted);
    opacity: .8;
}


/* ===== TITRES DES BLOCS ===== */

.chain-block h2 {
    margin: 0 0 12px;

    font-size: 29px;
    line-height: 1.1;
}


/* ===== TEXTE DES BLOCS ===== */

.chain-block p {
    margin: 0;

    font-size: 20px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}


/* ===== INVENTAIRE YAML ===== */

.inventory-block {
    border-color: rgba(56, 189, 248, .42);

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .11),
            rgba(255, 255, 255, .03)
        );
}

.inventory-block h2 {
    color: var(--blue);
}


/* ===== ANSIBLE ===== */

.ansible-block {
    border-color: rgba(245, 158, 11, .42);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .11),
            rgba(255, 255, 255, .03)
        );
}

.ansible-block h2 {
    color: var(--orange);
}


/* ===== LIENS ENTRE LES BLOCS ===== */

.chain-link {
    min-width: 80px;

    text-align: center;
}

.chain-link span {
    display: block;

    font-size: 38px;

    color: var(--blue);
    opacity: .8;
}

.chain-link small {
    display: block;

    margin-top: 7px;

    font-size: 16px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .9;
}


/* ===== PROXYJUMP ===== */

.proxyjump-flow {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 48px auto 0;

    font-size: 19px;
    font-weight: 600;
}


/* Nœuds */

.admin-node,
.bastion-node,
.private-node {
    padding: 11px 18px;

    border: 1px solid rgba(56, 189, 248, .25);
    border-radius: 22px;

    background: rgba(56, 189, 248, .08);

    color: var(--text);
}


/* Bastion mis en évidence */

.bastion-node {
    border-color: rgba(245, 158, 11, .4);

    background: rgba(245, 158, 11, .10);

    color: var(--orange);
}


/* Flèches SSH / ProxyJump */

.proxy-arrow {
    margin: 0 14px;

    font-size: 18px;
    font-weight: 500;

    color: var(--muted);
    opacity: .85;
}


/* ===== RÉSULTAT ===== */

.automation-result {
    width: 72%;

    margin: 32px auto 0;
    padding-top: 14px;

    border-top: 2px solid rgba(245, 158, 11, .45);

    text-align: center;

    font-size: 22px;
    font-weight: 600;

    color: var(--text);
}

/* ==================================================
   08 — ANSIBLE & K3S
   ================================================== */

#ansible-k3s {
    padding: 26px 35px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#ansible-k3s h1 {
    margin: 0;
    text-align: center;

    font-size: 60px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#ansible-k3s .slide-lead {
    margin: 12px 0 26px;

    text-align: center;

    font-size: 27px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .9;
}


/* ==================================================
   FLUX ANSIBLE → BASTION → K3S
   ================================================== */

.k3s-top-flow {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 26px;
}


/* ===== OUTILS ===== */

.k3s-tool {
    min-width: 245px;

    padding: 14px 22px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;

    background: rgba(255, 255, 255, .045);

    text-align: center;
}


/* Ansible */

.k3s-tool:first-child {
    border-color: rgba(245, 158, 11, .42);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .11),
            rgba(255, 255, 255, .03)
        );
}

.k3s-tool:first-child strong {
    color: var(--orange);
}


/* Bastion */

.k3s-tool:nth-of-type(2) {
    border-color: rgba(56, 189, 248, .35);

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .09),
            rgba(255, 255, 255, .03)
        );
}


/* Nœuds privés */

.k3s-tool:nth-of-type(3) {
    border-color: rgba(34, 211, 238, .40);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .10),
            rgba(255, 255, 255, .03)
        );
}

.k3s-tool:nth-of-type(3) strong {
    color: var(--cyan);
}


/* ===== TEXTE OUTILS ===== */

.k3s-tool strong {
    display: block;

    font-size: 24px;
    line-height: 1.15;
}

.k3s-tool small {
    display: block;

    margin-top: 7px;

    font-size: 18px;
    line-height: 1.25;

    color: var(--muted);
    opacity: .95;
}


/* ===== FLÈCHES ===== */

.k3s-arrow {
    margin: 0 18px;

    font-size: 36px;
    font-weight: 700;

    color: var(--blue);
    opacity: .85;
}


/* ==================================================
   CLUSTERS
   ================================================== */

.clusters {
    display: grid;

    grid-template-columns: 1fr 1.35fr;

    gap: 24px;
}


/* ===== CARTE CLUSTER ===== */

.cluster-card {
    position: relative;

    min-height: 280px;

    padding: 30px 22px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;

    background: rgba(255, 255, 255, .04);
}


/* ==================================================
   STAGING
   ================================================== */

.cluster-card:first-child {
    border-color: rgba(139, 92, 246, .40);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .10),
            rgba(255, 255, 255, .03)
        );
}

.cluster-card:first-child .cluster-label {
    color: var(--purple);
}


/* ==================================================
   PRODUCTION
   ================================================== */

.cluster-card:nth-child(2) {
    border-color: rgba(52, 211, 153, .40);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .09),
            rgba(255, 255, 255, .03)
        );
}

.cluster-card:nth-child(2) .cluster-label {
    color: var(--green);
}


/* ===== TITRE CLUSTER ===== */

.cluster-card h2 {
    margin: 0 0 22px;

    text-align: center;

    font-size: 28px;
    line-height: 1.15;
}


/* ===== LABEL STAGING / PRODUCTION ===== */

.cluster-label {
    position: absolute;

    top: 15px;
    right: 18px;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 1px;

    opacity: 1;
}


/* ==================================================
   NŒUDS
   ================================================== */

.nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 10px;
}


/* ===== NŒUD ===== */

.node {
    min-width: 125px;

    padding: 14px 12px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 13px;

    background: rgba(255, 255, 255, .065);

    text-align: center;
}


/* Control-plane / servers */

.node.master {
    border-color: rgba(34, 211, 238, .32);

    background: rgba(34, 211, 238, .075);
}


/* ===== NOM DU NŒUD ===== */

.node strong {
    display: block;

    font-size: 18px;
    line-height: 1.15;
}


/* ===== RÔLE ===== */

.node small {
    display: block;

    margin-top: 6px;

    font-size: 16px;
    line-height: 1.2;

    color: var(--muted);
    opacity: .95;
}


/* ===== RÉSUMÉ CLUSTER ===== */

.cluster-card > p {
    margin: 18px 0 0;

    text-align: center;

    font-size: 18px;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   RÉSULTAT
   ================================================== */

.k3s-result {
    margin-top: 24px;

    text-align: center;

    font-size: 20px;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}

.k3s-result span {
    margin: 0 13px;

    font-size: 24px;

    color: var(--blue);
    opacity: .9;
}

/* ==================================================
   09 — HELM / HELMFILE / GITEA
   ================================================== */

#helm-gitea {
    padding: 24px 35px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#helm-gitea h1 {
    margin: 0;

    text-align: center;

    font-size: 58px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#helm-gitea .slide-lead {
    margin: 10px 0 22px;

    text-align: center;

    font-size: 27px;
    line-height: 1.25;

    color: var(--muted);
    opacity: .9;
}


/* ==================================================
   HELMFILE → ENVIRONNEMENTS → HELM
   ================================================== */

.deploy-flow {
    display: flex;
    justify-content: center;
    align-items: stretch;

    gap: 14px;
}


/* ===== BLOCS ===== */

.deploy-block {
    width: 285px;
    min-height: 150px;

    padding: 17px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 17px;

    background: rgba(255, 255, 255, .045);

    text-align: center;
}


/* Helmfile */

.deploy-block:first-child {
    border-color: rgba(139, 92, 246, .40);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .10),
            rgba(255, 255, 255, .03)
        );
}

.deploy-block:first-child h2 {
    color: var(--purple);
}


/* Environnements */

.deploy-block:nth-of-type(3) {
    border-color: rgba(56, 189, 248, .40);

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .10),
            rgba(255, 255, 255, .03)
        );
}

.deploy-block:nth-of-type(3) h2 {
    color: var(--blue);
}


/* Helm */

.deploy-block:nth-of-type(5) {
    border-color: rgba(34, 211, 238, .40);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .10),
            rgba(255, 255, 255, .03)
        );
}

.deploy-block:nth-of-type(5) h2 {
    color: var(--cyan);
}


/* ===== LABELS ===== */

.deploy-label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1.1px;

    color: var(--muted);
    opacity: .85;
}


/* ===== TITRES ===== */

.deploy-block h2,
.gitea-app h2 {
    margin: 0 0 9px;

    font-size: 27px;
    line-height: 1.1;
}


/* ===== DESCRIPTION ===== */

.deploy-block p {
    margin: 0;

    font-size: 17px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}


/* ===== FLÈCHES ===== */

.deploy-arrow {
    display: flex;
    align-items: center;

    font-size: 36px;
    font-weight: 700;

    color: var(--blue);
    opacity: .85;
}


/* ===== ENVIRONNEMENTS / PODS ===== */

.env-pills,
.gitea-pods {
    display: flex;
    justify-content: center;

    gap: 9px;

    margin: 8px 0;
}

.env-pills span,
.gitea-pods span {
    padding: 6px 12px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;

    background: rgba(255, 255, 255, .07);

    font-size: 16px;
    font-weight: 600;
}


/* ==================================================
   RUNTIME + PREUVE
   ================================================== */

.gitea-runtime-wrapper {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 38px;

    width: 1080px;

    margin: 22px auto 0;

    align-items: center;
}


/* ==================================================
   GITEA
   ================================================== */

.gitea-runtime {
    width: 100%;

    margin: 0;
}

.gitea-app {
    width: 300px;

    margin: 0 auto;

    padding: 14px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(52, 211, 153, .42);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .10),
            rgba(255, 255, 255, .035)
        );

    text-align: center;
}

.gitea-app h2 {
    color: var(--green);
}


/* ==================================================
   STOCKAGE
   ================================================== */

.storage-links {
    display: grid;

    grid-template-columns: 1fr 36px 36px 1fr;

    align-items: center;

    margin-top: 12px;
}

.storage-block {
    padding: 11px 10px;

    box-sizing: border-box;

    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 14px;

    background: rgba(56, 189, 248, .07);

    text-align: center;
}

.storage-block strong {
    display: block;

    font-size: 18px;
    line-height: 1.2;
}

.storage-block small {
    display: block;

    margin-top: 5px;

    font-size: 15px;
    line-height: 1.2;

    color: var(--muted);
    opacity: .95;
}


/* ===== CONNECTEURS ===== */

.storage-connector {
    text-align: center;

    font-size: 27px;

    color: var(--blue);
    opacity: .75;
}


/* ==================================================
   PREUVE GITEA
   ================================================== */

.gitea-proof {
    text-align: center;
}

.gitea-proof > .deploy-label {
    margin-bottom: 7px;

    color: var(--green);
}


/* ===== CAPTURE ===== */

.gitea-screenshot {
    width: 100%;
    height: 220px;

    overflow: hidden;

    box-sizing: border-box;

    border: 2px solid rgba(52, 211, 153, .32);
    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .22);
}

.gitea-screenshot img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}


/* ===== LÉGENDE PREUVE ===== */

.gitea-proof small {
    display: block;

    margin-top: 8px;

    font-size: 17px;
    font-weight: 600;

    color: var(--green);
    opacity: .95;
}


/* ==================================================
   RÉSULTAT
   ================================================== */

.deploy-result {
    width: 85%;

    margin: 18px auto 0;
    padding-top: 11px;

    border-top: 2px solid rgba(52, 211, 153, .38);

    text-align: center;

    font-size: 18px;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}

.deploy-result span {
    margin: 0 11px;

    color: var(--green);
    opacity: .9;
}

/* ==================================================
   10 — VALIDATION PERSISTANCE
   ================================================== */

#validation-persistence {
    padding: 28px 35px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#validation-persistence h1 {
    margin: 0;

    text-align: center;

    font-size: 60px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#validation-persistence .slide-lead {
    margin: 12px 0 36px;

    text-align: center;

    font-size: 27px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .9;
}


/* ==================================================
   SCÉNARIO DE TEST
   ================================================== */

.persistence-flow {
    display: flex;
    justify-content: center;
    align-items: stretch;

    gap: 12px;

    width: 100%;
}


/* ===== ÉTAPES ===== */

.persistence-step {
    position: relative;

    width: 245px;
    min-height: 225px;

    padding: 26px 18px 22px;

    box-sizing: border-box;

    border: 1px solid rgba(56, 189, 248, .30);
    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .075),
            rgba(255, 255, 255, .03)
        );

    text-align: center;
}


/* ===== NUMÉROS ===== */

.persistence-number {
    position: absolute;

    top: 14px;
    right: 16px;

    font-size: 16px;
    font-weight: 800;

    color: var(--muted);
    opacity: .7;
}


/* ===== ICÔNES ===== */

.persistence-icon {
    margin: 0 0 9px;

    font-size: 43px;
    line-height: 1;

    font-weight: 400;

    color: var(--blue);
}


/* ===== TITRES ===== */

.persistence-step h2 {
    margin: 0 0 14px;

    font-size: 27px;
    line-height: 1.15;
}


/* ===== DESCRIPTIONS ===== */

.persistence-step p {
    margin: 0;

    font-size: 19px;
    line-height: 1.4;

    color: var(--muted);
    opacity: .95;
}

.persistence-step strong {
    font-size: 20px;

    color: var(--text);
}


/* ==================================================
   ÉTAPE 02 — SUPPRESSION VOLONTAIRE
   ================================================== */

.danger-step {
    border-color: rgba(251, 113, 133, .48);

    background:
        linear-gradient(
            145deg,
            rgba(251, 113, 133, .12),
            rgba(255, 255, 255, .03)
        );
}

.danger-step .persistence-icon,
.danger-step h2 {
    color: var(--red);
}


/* ==================================================
   ÉTAPE 03 — AUTO-RÉPARATION
   ================================================== */

.persistence-step:nth-of-type(3) {
    border-color: rgba(245, 158, 11, .40);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .09),
            rgba(255, 255, 255, .03)
        );
}

.persistence-step:nth-of-type(3) .persistence-icon,
.persistence-step:nth-of-type(3) h2 {
    color: var(--orange);
}


/* ==================================================
   ÉTAPE 04 — VALIDATION
   ================================================== */

.success-step {
    border-color: rgba(52, 211, 153, .48);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .12),
            rgba(255, 255, 255, .03)
        );
}

.success-step .persistence-icon,
.success-step h2 {
    color: var(--green);
}


/* ===== FLÈCHES ===== */

.persistence-arrow {
    display: flex;
    align-items: center;

    font-size: 36px;
    font-weight: 700;

    color: var(--blue);
    opacity: .8;
}


/* ==================================================
   STOCKAGE PERSISTANT
   ================================================== */

.persistence-storage {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 22px;

    margin-top: 30px;
}

.persistence-storage div {
    min-width: 245px;

    padding: 11px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(34, 211, 238, .30);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .08),
            rgba(255, 255, 255, .025)
        );

    text-align: center;
}

.persistence-storage strong {
    display: block;

    font-size: 20px;
    line-height: 1.2;

    color: var(--cyan);
}

.persistence-storage small {
    display: block;

    margin-top: 5px;

    font-size: 16px;
    line-height: 1.2;

    color: var(--muted);
    opacity: .95;
}

.persistence-storage > span {
    font-size: 26px;
    font-weight: 600;

    color: var(--cyan);
    opacity: .8;
}


/* ==================================================
   RÉSULTAT
   ================================================== */

.persistence-result {
    width: 82%;

    margin: 26px auto 0;
    padding-top: 13px;

    border-top: 2px solid rgba(52, 211, 153, .42);

    text-align: center;

    font-size: 21px;
    font-weight: 700;

    color: var(--text);
}

.result-separator {
    margin: 0 16px;

    color: var(--green);
    opacity: .8;
}

.result-ok {
    margin-left: 12px;

    font-size: 25px;

    color: var(--green);
}


/* ==================================================
   DEUX DÉPÔTS
   ================================================== */

#repositories {
    width: 1200px;
    height: 700px;
    padding: 48px 55px;
    box-sizing: border-box;
}

#repositories h1 {
    margin: 0;
    text-align: center;
    font-size: 48px;
}

#repositories .slide-lead {
    margin: 14px 0 48px;
    text-align: center;

    font-size: 18px;
    color: var(--muted);
}

.repository-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.repository-card {
    width: 455px;
    min-height: 280px;
    padding: 25px 25px;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 19px;

    background: rgba(255,255,255,.04);

    text-align: center;
}

.deploy-repository {
    border-color: rgba(245,158,11,.35);
}

.infra-repository {
    border-color: rgba(56,189,248,.35);
}

.repository-label {
    display: block;

    margin-bottom: 11px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;

    color: var(--muted);
}

.repository-card h2 {
    margin: 0 0 28px;
    font-size: 27px;
}

.repository-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
}

.repository-flow div {
    flex: 1;
}

.repository-flow strong,
.repository-flow small {
    display: block;
}

.repository-flow strong {
    margin-bottom: 7px;
    font-size: 13px;
}

.repository-flow small {
    font-size: 10px;
    line-height: 1.35;
    color: var(--muted);
}

.repository-flow > span {
    color: var(--orange);
}

.repository-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 49px;

    font-size: 14px;
}

.repository-stack strong {
    color: var(--blue);
}

.repository-output {
    margin-top: 35px;
    padding: 10px 12px;

    border-radius: 10px;
    background: rgba(255,255,255,.05);

    font-size: 12px;
    color: var(--muted);
}

.repository-separation {
    display: flex;
    align-items: center;

    font-size: 28px;
    color: var(--muted);
}

.repository-conclusion {
    margin-top: 38px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    font-size: 14px;
    color: var(--muted);
}

.repository-conclusion strong {
    color: var(--text);
}


/* ==================================================
   11 — INCIDENT EFS
   ================================================== */

#incident-efs {
    padding: 28px 40px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#incident-efs h1 {
    margin: 0;

    text-align: center;

    font-size: 64px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#incident-efs .slide-lead {
    margin: 12px 0 32px;

    text-align: center;

    font-size: 28px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}

#incident-efs .slide-lead strong {
    color: var(--green);
}


/* ==================================================
   DIAGNOSTIC
   ================================================== */

.incident-diagnostic {
    display: flex;
    justify-content: center;
    align-items: stretch;

    gap: 28px;
}


/* ===== CARTES ===== */

.incident-card {
    position: relative;

    width: 400px;
    min-height: 205px;

    padding: 28px 25px 22px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 19px;

    background: rgba(255, 255, 255, .04);

    text-align: center;
}


/* ==================================================
   PVC — OK
   ================================================== */

.success-card {
    border-color: rgba(52, 211, 153, .42);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .10),
            rgba(255, 255, 255, .03)
        );
}


/* ==================================================
   POD — ÉCHEC
   ================================================== */

.failure-card {
    border-color: rgba(251, 113, 133, .45);

    background:
        linear-gradient(
            145deg,
            rgba(251, 113, 133, .11),
            rgba(255, 255, 255, .03)
        );
}


/* ===== LABELS ===== */

.incident-label {
    position: absolute;

    top: 14px;
    right: 17px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
    opacity: .8;
}


/* ===== TITRES ===== */

.incident-card h2 {
    margin: 7px 0 16px;

    font-size: 28px;
    line-height: 1.15;
}


/* ===== STATUT ===== */

.incident-status {
    display: inline-block;

    padding: 8px 17px;

    border-radius: 20px;

    font-family: monospace;

    font-size: 21px;
    font-weight: 700;
}


/* Bound */

.success-status {
    border: 1px solid rgba(52, 211, 153, .35);

    background: rgba(52, 211, 153, .10);

    color: var(--green);
}


/* Init:0/3 */

.failure-status {
    border: 1px solid rgba(251, 113, 133, .38);

    background: rgba(251, 113, 133, .10);

    color: var(--red);
}


/* ===== DESCRIPTION ===== */

.incident-card p {
    margin: 15px 0 0;

    font-size: 19px;
    line-height: 1.35;

    color: var(--muted);
    opacity: .95;
}


/* ===== FLÈCHE ===== */

.incident-arrow {
    display: flex;
    align-items: center;

    font-size: 42px;
    font-weight: 700;

    color: var(--red);
    opacity: .8;
}


/* ==================================================
   CONSOLE D'ERREUR
   ================================================== */

.error-console {
    position: relative;

    width: 790px;

    margin: 25px auto 0;
    padding: 18px 25px;

    box-sizing: border-box;

    border: 1px solid rgba(251, 113, 133, .28);
    border-radius: 14px;

    background: rgba(0, 0, 0, .30);

    box-shadow:
        inset 3px 0 0 rgba(251, 113, 133, .55);
}


/* ===== LABEL EVENT ===== */

.console-label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--red);
    opacity: .9;
}


/* ===== MESSAGE ===== */

.error-console code {
    font-size: 17px;
    line-height: 1.4;

    color: var(--muted);
    opacity: .95;
}


/* Met en évidence les erreurs principales */

.error-console code {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}


/* ==================================================
   QUESTION
   ================================================== */

.incident-question {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;

    width: 82%;

    margin: 24px auto 0;
    padding-top: 13px;

    border-top: 2px solid rgba(245, 158, 11, .42);
}


/* ===== ? ===== */

.incident-question > span {
    font-size: 43px;
    font-weight: 600;

    color: var(--orange);
}


/* ===== QUESTION PRINCIPALE ===== */

.incident-question strong {
    display: block;

    font-size: 22px;
    line-height: 1.2;
}


/* ===== SOUS-QUESTION ===== */

.incident-question small {
    display: block;

    margin-top: 5px;

    font-size: 18px;
    line-height: 1.25;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   12 — DIAGNOSTIC EFS
   ================================================== */

#diagnostic-efs {
    padding: 26px 32px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#diagnostic-efs h1 {
    margin: 0;

    text-align: center;

    font-size: 60px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#diagnostic-efs .slide-lead {
    margin: 11px 0 27px;

    text-align: center;

    font-size: 27px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .9;
}


/* ==================================================
   CHAÎNE DE DIAGNOSTIC
   ================================================== */

.diag-chain {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
}


/* ===== ÉTAPES ===== */

.diag-item {
    position: relative;

    width: 250px;
    min-height: 165px;

    padding: 25px 16px 18px;

    box-sizing: border-box;

    border: 1px solid rgba(52, 211, 153, .35);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .08),
            rgba(255, 255, 255, .025)
        );

    text-align: center;
}


/* ===== STATUT ✓ / ✕ ===== */

.diag-status {
    position: absolute;

    top: 12px;
    right: 14px;

    font-size: 22px;
    font-weight: 800;

    color: var(--green);
}


/* ===== LABEL ===== */

.diag-label {
    display: block;

    margin-bottom: 11px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
    opacity: .85;
}


/* ===== TITRE ÉTAPE ===== */

.diag-content h2 {
    margin: 0 0 10px;

    font-size: 25px;
    line-height: 1.15;
}


/* ===== DESCRIPTION ===== */

.diag-content p {
    margin: 0;

    font-size: 18px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}

.diag-content code {
    padding: 3px 8px;

    border-radius: 8px;

    background: rgba(52, 211, 153, .10);

    font-size: 19px;
    font-weight: 700;

    color: var(--green);
}


/* ===== LIAISONS ===== */

.diag-line {
    width: 38px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            rgba(52, 211, 153, .25),
            rgba(52, 211, 153, .70),
            rgba(52, 211, 153, .25)
        );
}


/* ==================================================
   ÉCHEC — DATA PATH
   ================================================== */

.diag-failure {
    border-color: rgba(251, 113, 133, .50);

    background:
        linear-gradient(
            145deg,
            rgba(251, 113, 133, .13),
            rgba(255, 255, 255, .025)
        );
}

.diag-failure .diag-status {
    color: var(--red);
}

.diag-failure .diag-label,
.diag-failure h2 {
    color: var(--red);
}

.diag-failure p {
    color: var(--text);
}


/* La dernière liaison annonce l'échec */

.diag-line:nth-last-of-type(2) {
    background:
        linear-gradient(
            90deg,
            rgba(52, 211, 153, .45),
            rgba(251, 113, 133, .75)
        );
}


/* ==================================================
   CONTROL PLANE ≠ DATA PATH
   ================================================== */

.diag-separation {
    display: flex;
    justify-content: center;
    align-items: stretch;

    gap: 22px;

    margin-top: 27px;
}


/* ===== BLOCS ===== */

.diag-plane {
    width: 390px;

    padding: 16px 22px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;

    background: rgba(255, 255, 255, .04);

    text-align: center;
}


/* Plan de contrôle */

.diag-plane:first-child {
    border-color: rgba(52, 211, 153, .32);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .075),
            rgba(255, 255, 255, .025)
        );
}


/* Chemin de données */

.diag-plane:last-child {
    border-color: rgba(251, 113, 133, .38);

    background:
        linear-gradient(
            145deg,
            rgba(251, 113, 133, .085),
            rgba(255, 255, 255, .025)
        );
}


/* ===== LABEL ===== */

.plane-label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
    opacity: .85;
}


/* ===== FLUX ===== */

.diag-plane strong {
    display: block;

    font-size: 21px;
    line-height: 1.2;
}

.diag-plane small {
    display: block;

    margin-top: 6px;

    font-size: 17px;
    line-height: 1.25;

    color: var(--muted);
    opacity: .95;
}


/* ===== RÉSULTAT ===== */

.plane-result {
    margin-top: 10px;

    font-family: monospace;

    font-size: 18px;
    font-weight: 800;
}

.diag-plane:first-child .plane-result {
    color: var(--green);
}

.diag-plane:last-child .plane-result {
    color: var(--red);
}


/* ===== ≠ ===== */

.plane-vs {
    display: flex;
    align-items: center;

    font-size: 38px;
    font-weight: 700;

    color: var(--orange);
    opacity: .9;
}


/* ==================================================
   CONCLUSION
   ================================================== */

.diag-conclusion {
    width: 84%;

    margin: 24px auto 0;
    padding-top: 12px;

    border-top: 2px solid rgba(245, 158, 11, .42);

    text-align: center;
}

.diag-conclusion strong {
    display: block;

    font-size: 21px;
    line-height: 1.2;

    color: var(--orange);
}

.diag-conclusion span {
    display: block;

    margin-top: 5px;

    font-size: 18px;
    line-height: 1.25;

    color: var(--muted);
    opacity: .95;
}

/* ==================================================
   13 - STAGING / PRODUCTION
   ================================================== */

#environments {
    width: 1150px;
    height: 700px;
    padding: 43px 60px;
    box-sizing: border-box;
}

#environments h1 {
    margin: 0;
    text-align: center;
    font-size: 47px;
}

#environments .slide-lead {
    margin: 12px 0 26px;
    text-align: center;

    font-size: 18px;
    color: var(--muted);
}

.environment-source {
    width: 360px;
    margin: 0 auto;
    padding: 14px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(139,92,246,.38);
    border-radius: 15px;

    background: rgba(139,92,246,.07);

    text-align: center;
}

.environment-source span,
.environment-source strong,
.environment-source small {
    display: block;
}

.environment-source span {
    margin-bottom: 5px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;

    color: var(--purple);
}

.environment-source strong {
    font-family: monospace;
    font-size: 16px;
}

.environment-source small {
    margin-top: 5px;

    font-size: 11px;
    color: var(--muted);
}

.environment-split {
    width: 520px;
    margin: 5px auto;

    display: flex;
    justify-content: space-between;

    font-size: 27px;
    color: var(--purple);
}

.environment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;

    width: 800px;
    margin: 0 auto;
}

.environment-card {
    padding: 20px 25px;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 17px;

    background: rgba(255,255,255,.04);
}

.staging-environment {
    border-color: rgba(56,189,248,.38);
}

.production-environment {
    border-color: rgba(52,211,153,.38);
}

.environment-label {
    display: block;

    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;

    color: var(--muted);
}

.environment-card h2 {
    margin: 0 0 15px;

    font-family: monospace;
    font-size: 16px;
}

.environment-card ul {
    margin: 0;
    padding-left: 19px;

    font-size: 13px;
    line-height: 1.7;
}

.environment-card li::marker {
    color: var(--blue);
}

.environment-result {
    margin-top: 25px;

    display: flex;
    justify-content: center;
    gap: 13px;

    font-size: 15px;
}

.environment-result span {
    color: var(--purple);
}


/* ==================================================
   13 — SOLUTION INCIDENT EFS
   ================================================== */

#solution-efs {
    padding: 25px 35px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#solution-efs h1 {
    margin: 0;

    text-align: center;

    font-size: 59px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#solution-efs .slide-lead {
    margin: 11px 0 25px;

    text-align: center;

    font-size: 27px;
    line-height: 1.25;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   CAUSE RÉSEAU
   ================================================== */

.efs-network {
    display: grid;

    grid-template-columns: 270px 290px 270px;
    grid-template-rows: 82px 82px;

    gap: 12px 20px;

    justify-content: center;
    align-items: center;
}


/* ===== SOURCES / TARGET ===== */

.efs-source,
.efs-target {
    padding: 13px 17px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 15px;

    background: rgba(255, 255, 255, .04);

    text-align: center;
}


/* PROD */

.efs-source:first-child {
    border-color: rgba(52, 211, 153, .38);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .09),
            rgba(255, 255, 255, .025)
        );
}


/* STAGING */

.efs-source:nth-of-type(4) {
    border-color: rgba(251, 113, 133, .42);

    background:
        linear-gradient(
            145deg,
            rgba(251, 113, 133, .10),
            rgba(255, 255, 255, .025)
        );
}


/* EFS */

.efs-target {
    grid-column: 3;
    grid-row: 1 / 3;

    align-self: center;

    padding: 24px 18px;

    border-color: rgba(34, 211, 238, .40);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .10),
            rgba(255, 255, 255, .03)
        );
}


/* ===== LABELS ===== */

.efs-env,
.efs-label {
    display: block;

    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
    opacity: .9;
}

.efs-source:first-child .efs-env {
    color: var(--green);
}

.efs-source:nth-of-type(4) .efs-env {
    color: var(--red);
}

.efs-target .efs-label {
    color: var(--cyan);
}


/* ===== NOMS ===== */

.efs-source strong,
.efs-target strong {
    font-size: 20px;
    line-height: 1.2;
}

.efs-target strong {
    color: var(--cyan);
}


/* ==================================================
   CHEMINS NFS
   ================================================== */

.efs-path {
    position: relative;

    text-align: center;
}

.efs-path span {
    display: block;

    margin-bottom: 7px;

    font-family: monospace;

    font-size: 18px;
    font-weight: 700;
}


/* ===== LIGNE ===== */

.path-line {
    display: inline-block;

    width: 200px;
    height: 3px;

    vertical-align: middle;

    border-radius: 2px;
}


/* PROD OK */

.success-path span,
.success-path strong {
    color: var(--green);
}

.success-path .path-line {
    background: var(--green);
}

.efs-path strong {
    margin-left: 9px;

    font-size: 24px;
}


/* ===== STAGING BLOQUÉ ===== */

.blocked-path span,
.blocked-path strong {
    color: var(--red);
}

.blocked-path .path-line {
    background: var(--red);
}

.broken-line {
    width: 90px;

    margin-right: 90px;

    background:
        repeating-linear-gradient(
            90deg,
            var(--red) 0,
            var(--red) 12px,
            transparent 12px,
            transparent 19px
        ) !important;
}


/* ===== CAUSE ===== */

.efs-cause {
    grid-column: 3;
    grid-row: 2;

    align-self: end;

    margin-bottom: -5px;

    text-align: center;

    font-size: 17px;
    font-weight: 700;

    color: var(--red);
}


/* ==================================================
   CORRECTION TERRAFORM
   ================================================== */

.efs-fix {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;

    margin-top: 24px;
}


/* ===== CODE ===== */

.code-change {
    width: 440px;
    min-height: 125px;

    padding: 13px 18px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;

    background: rgba(0, 0, 0, .27);
}


/* AVANT */

.code-change:first-child {
    border-color: rgba(251, 113, 133, .30);

    box-shadow:
        inset 3px 0 0 rgba(251, 113, 133, .50);
}


/* APRÈS */

.code-change:last-child {
    border-color: rgba(52, 211, 153, .34);

    box-shadow:
        inset 3px 0 0 rgba(52, 211, 153, .55);
}


/* ===== LABEL CODE ===== */

.code-label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
}

.code-change:first-child .code-label {
    color: var(--red);
}

.code-change:last-child .code-label {
    color: var(--green);
}


/* ===== CODE TERRAFORM ===== */

.code-change code {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 16px;
    line-height: 1.45;

    color: var(--text);
    opacity: .95;
}


/* ===== FLÈCHE CORRECTION ===== */

.fix-arrow {
    font-size: 37px;
    font-weight: 700;

    color: var(--orange);
    opacity: .9;
}


/* ==================================================
   VALIDATION
   ================================================== */

.efs-validation {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 25px;

    width: 84%;

    margin: 23px auto 0;
    padding-top: 12px;

    border-top: 2px solid rgba(52, 211, 153, .40);
}


/* ===== BLOCS ===== */

.efs-validation > div {
    min-width: 330px;

    padding: 10px 18px;

    box-sizing: border-box;

    border: 1px solid rgba(52, 211, 153, .25);
    border-radius: 15px;

    background: rgba(52, 211, 153, .06);

    text-align: center;
}


/* ===== LABEL ===== */

.validation-label {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--green);
}


/* ===== VALEUR ===== */

.efs-validation strong {
    font-family: monospace;

    font-size: 18px;
    font-weight: 700;

    color: var(--text);
}


/* ===== FLÈCHE ===== */

.validation-arrow {
    font-size: 30px;
    font-weight: 700;

    color: var(--green);
    opacity: .9;
}

/* ==================================================
   14 — GITLAB CI/CD
   ================================================== */

#gitlab-cicd {
    padding: 27px 32px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#gitlab-cicd h1 {
    margin: 0;

    text-align: center;

    font-size: 59px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#gitlab-cicd .slide-lead {
    margin: 12px 0 32px;

    text-align: center;

    font-size: 27px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   PIPELINE
   ================================================== */

.pipeline {
    display: flex;
    justify-content: center;
    align-items: stretch;

    width: 100%;
}


/* ===== STAGES ===== */

.pipeline-stage {
    position: relative;

    width: 225px;
    min-height: 200px;

    padding: 28px 15px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;

    background: rgba(255, 255, 255, .04);

    text-align: center;
}


/* ==================================================
   COULEURS DES ÉTAPES
   ================================================== */

/* 01 — Validate */

.pipeline-stage:nth-of-type(1) {
    border-color: rgba(139, 92, 246, .40);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .10),
            rgba(255, 255, 255, .025)
        );
}

.pipeline-stage:nth-of-type(1) h2 {
    color: var(--purple);
}


/* 02 — Persistent */

.pipeline-stage:nth-of-type(3) {
    border-color: rgba(56, 189, 248, .40);

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .10),
            rgba(255, 255, 255, .025)
        );
}

.pipeline-stage:nth-of-type(3) h2 {
    color: var(--blue);
}


/* 03 — Compute */

.pipeline-stage:nth-of-type(5) {
    border-color: rgba(34, 211, 238, .40);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .10),
            rgba(255, 255, 255, .025)
        );
}

.pipeline-stage:nth-of-type(5) h2 {
    color: var(--cyan);
}


/* 04 — Ansible */

.pipeline-stage:nth-of-type(7) {
    border-color: rgba(245, 158, 11, .42);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .10),
            rgba(255, 255, 255, .025)
        );
}

.pipeline-stage:nth-of-type(7) h2 {
    color: var(--orange);
}


/* ===== NUMÉROS ===== */

.stage-number {
    position: absolute;

    top: 12px;
    right: 14px;

    font-size: 15px;
    font-weight: 800;

    color: var(--muted);
    opacity: .65;
}


/* ===== LABELS ===== */

.stage-label {
    display: block;

    margin-bottom: 14px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
    opacity: .85;
}


/* ===== TITRES ===== */

.pipeline-stage h2 {
    margin: 0 0 14px;

    font-size: 26px;
    line-height: 1.15;
}


/* ===== DESCRIPTION ===== */

.pipeline-stage p {
    margin: 0;

    font-size: 17px;
    line-height: 1.4;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   FLÈCHES / TRANSFERTS
   ================================================== */

.pipeline-arrow {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 58px;

    font-size: 34px;
    font-weight: 700;

    color: var(--blue);
    opacity: .85;
}


/* Outputs / inventaires */

.pipeline-transfer {
    flex-direction: column;

    width: 78px;
}

.pipeline-transfer > span {
    font-size: 34px;
    line-height: 1;
}

.pipeline-transfer small {
    display: block;

    margin-top: 7px;

    text-align: center;

    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   RUNNER
   ================================================== */

.pipeline-runner {
    width: 850px;

    margin: 31px auto 0;
    padding: 15px 25px;

    box-sizing: border-box;

    border: 1px solid rgba(245, 158, 11, .34);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .075),
            rgba(255, 255, 255, .025)
        );

    text-align: center;
}


/* ===== LABEL RUNNER ===== */

.runner-label {
    display: block;

    margin-bottom: 9px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--orange);
}


/* ===== FLUX RUNNER ===== */

.runner-flow {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 18px;
}

.runner-flow strong {
    font-size: 19px;
    line-height: 1.2;
}

.runner-flow span {
    font-size: 25px;

    color: var(--orange);
    opacity: .9;
}


/* ==================================================
   RÉSULTAT
   ================================================== */

.pipeline-result {
    width: 82%;

    margin: 25px auto 0;
    padding-top: 12px;

    border-top: 2px solid rgba(245, 158, 11, .40);

    text-align: center;

    font-size: 19px;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}

.pipeline-result span {
    margin: 0 7px;
}

.pipeline-result span:nth-child(even) {
    color: var(--orange);
}

/* ==================================================
   15 — SUPERVISION
   ================================================== */

#monitoring {
    padding: 27px 35px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#monitoring h1 {
    margin: 0;

    text-align: center;

    font-size: 61px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#monitoring .slide-lead {
    margin: 12px 0 30px;

    text-align: center;

    font-size: 27px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   CHAÎNE DE SUPERVISION
   ================================================== */

.monitoring-flow {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ===== BLOCS ===== */

.monitor-block {
    width: 265px;
    min-height: 180px;

    padding: 24px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 18px;

    background: rgba(255, 255, 255, .04);

    text-align: center;
}


/* ==================================================
   K3S — SOURCES
   ================================================== */

.monitoring-flow > .monitor-block:first-child {
    border-color: rgba(34, 211, 238, .38);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .10),
            rgba(255, 255, 255, .025)
        );
}

.monitoring-flow > .monitor-block:first-child h2 {
    color: var(--cyan);
}


/* ==================================================
   PROMETHEUS
   ================================================== */

.monitoring-flow > .monitor-block:nth-of-type(2) {
    border-color: rgba(245, 158, 11, .42);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .10),
            rgba(255, 255, 255, .025)
        );
}

.monitoring-flow > .monitor-block:nth-of-type(2) h2 {
    color: var(--orange);
}


/* ===== LABELS ===== */

.monitor-label {
    display: block;

    margin-bottom: 11px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
    opacity: .85;
}


/* ===== TITRES ===== */

.monitor-block h2 {
    margin: 0 0 12px;

    font-size: 27px;
    line-height: 1.15;
}


/* ===== TEXTE ===== */

.monitor-block p {
    margin: 0;

    font-size: 18px;
    line-height: 1.4;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   FLÈCHE MÉTRIQUES
   ================================================== */

.monitor-arrow {
    width: 95px;

    text-align: center;
}

.monitor-arrow span {
    display: block;

    font-size: 38px;
    font-weight: 700;

    color: var(--blue);
    opacity: .9;
}

.monitor-arrow small {
    display: block;

    margin-top: 4px;

    font-size: 15px;
    font-weight: 600;

    color: var(--muted);
    opacity: .9;
}


/* ==================================================
   SPLIT PROMETHEUS
   ================================================== */

.monitor-split {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 32px;

    width: 85px;

    font-size: 34px;
    font-weight: 700;

    color: var(--orange);
    opacity: .85;
}


/* ==================================================
   OUTPUTS
   ================================================== */

.monitor-outputs {
    display: flex;
    flex-direction: column;

    gap: 13px;
}


/* ===== CARTES OUTPUT ===== */

.output-block {
    width: 285px;
    min-height: 118px;

    padding: 15px 20px;
}


/* Grafana */

.output-block:first-child {
    border-color: rgba(139, 92, 246, .40);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .10),
            rgba(255, 255, 255, .025)
        );
}

.output-block:first-child h2 {
    color: var(--purple);
}


/* Alertmanager */

.output-block:last-child {
    border-color: rgba(251, 113, 133, .38);

    background:
        linear-gradient(
            145deg,
            rgba(251, 113, 133, .09),
            rgba(255, 255, 255, .025)
        );
}

.output-block:last-child h2 {
    color: var(--red);
}


/* Ajustement output */

.output-block .monitor-label {
    margin-bottom: 5px;
}

.output-block h2 {
    margin-bottom: 5px;
}

.output-block p {
    font-size: 17px;
}


/* ==================================================
   COMPOSANTS TECHNIQUES
   ================================================== */

.monitor-components {
    width: 82%;

    margin: 25px auto 0;
    padding: 10px 15px;

    box-sizing: border-box;

    border: 1px solid rgba(56, 189, 248, .20);
    border-radius: 20px;

    background: rgba(56, 189, 248, .055);

    text-align: center;

    font-size: 17px;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}

.monitor-components span {
    margin: 0 7px;
}

.monitor-components span:nth-child(even) {
    color: var(--blue);
}


/* ==================================================
   V1 / V2
   ================================================== */

.monitor-status {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 25px;

    margin-top: 24px;
}


/* ===== BLOCS ===== */

.monitor-status > div {
    width: 340px;

    padding: 12px 20px;

    box-sizing: border-box;

    border-radius: 15px;

    text-align: center;
}


/* V1 */

.monitor-status > div:first-child {
    border: 1px solid rgba(52, 211, 153, .34);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .08),
            rgba(255, 255, 255, .025)
        );
}


/* V2 */

.monitor-status > div:last-child {
    border: 1px solid rgba(245, 158, 11, .34);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .075),
            rgba(255, 255, 255, .025)
        );
}


/* ===== LABELS ===== */

.status-label {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
}

.monitor-status > div:first-child .status-label {
    color: var(--green);
}

.monitor-status > div:last-child .status-label {
    color: var(--orange);
}


/* ===== STATUT ===== */

.monitor-status strong {
    display: block;

    font-size: 19px;
    line-height: 1.2;
}

.monitor-status > div:first-child strong {
    color: var(--green);
}

.monitor-status > div:last-child strong {
    color: var(--orange);
}


/* ===== DÉTAIL ===== */

.monitor-status small {
    display: block;

    margin-top: 4px;

    font-size: 15px;

    color: var(--muted);
    opacity: .9;
}


/* ===== FLÈCHE ===== */

.status-arrow {
    font-size: 31px;
    font-weight: 700;

    color: var(--orange);
    opacity: .85;
}

/* ==================================================
   16 — CYCLE DE VIE
   ================================================== */

#lifecycle {
    padding: 26px 32px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#lifecycle h1 {
    margin: 0;

    text-align: center;

    font-size: 61px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#lifecycle .slide-lead {
    margin: 12px 0 30px;

    text-align: center;

    font-size: 27px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   CYCLE PRINCIPAL
   ================================================== */

.lifecycle-flow {
    display: flex;
    justify-content: center;
    align-items: stretch;

    width: 100%;
}


/* ===== ÉTAPES ===== */

.lifecycle-step {
    position: relative;

    width: 225px;
    min-height: 195px;

    padding: 24px 17px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 18px;

    background: rgba(255, 255, 255, .04);

    text-align: center;
}


/* ===== NUMÉRO ===== */

.lifecycle-number {
    position: absolute;

    top: 12px;
    right: 14px;

    font-size: 15px;
    font-weight: 800;

    color: var(--muted);
    opacity: .65;
}


/* ===== ICÔNE ===== */

.lifecycle-icon {
    height: 44px;

    margin-bottom: 7px;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 35px;
    line-height: 44px;

    font-weight: 600;
}


/* ===== TITRE ===== */

.lifecycle-step h2 {
    margin: 0 0 12px;

    font-size: 27px;
    line-height: 1.15;
}


/* ===== DESCRIPTION ===== */

.lifecycle-step p {
    margin: 0;

    font-size: 18px;
    line-height: 1.35;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   01 — CODE
   ================================================== */

.lifecycle-step:nth-of-type(1) {
    border-color: rgba(139, 92, 246, .40);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .10),
            rgba(255, 255, 255, .025)
        );
}

.lifecycle-step:nth-of-type(1) .lifecycle-icon,
.lifecycle-step:nth-of-type(1) h2 {
    color: var(--purple);
}


/* ==================================================
   02 — APPLY
   ================================================== */

.lifecycle-step:nth-of-type(3) {
    border-color: rgba(56, 189, 248, .40);

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .10),
            rgba(255, 255, 255, .025)
        );
}

.lifecycle-step:nth-of-type(3) .lifecycle-icon,
.lifecycle-step:nth-of-type(3) h2 {
    color: var(--blue);
}


/* ==================================================
   03 — VALIDATION
   ================================================== */

.lifecycle-step:nth-of-type(5) {
    border-color: rgba(52, 211, 153, .42);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .10),
            rgba(255, 255, 255, .025)
        );
}

.lifecycle-step:nth-of-type(5) .lifecycle-icon,
.lifecycle-step:nth-of-type(5) h2 {
    color: var(--green);
}


/* ==================================================
   04 — DESTROY
   ================================================== */

.lifecycle-step:nth-of-type(7) {
    border-color: rgba(251, 113, 133, .44);

    background:
        linear-gradient(
            145deg,
            rgba(251, 113, 133, .11),
            rgba(255, 255, 255, .025)
        );
}

.lifecycle-step:nth-of-type(7) .lifecycle-icon,
.lifecycle-step:nth-of-type(7) h2 {
    color: var(--red);
}


/* ==================================================
   FLÈCHES
   ================================================== */

.lifecycle-arrow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 62px;

    font-size: 34px;
    font-weight: 700;

    color: var(--blue);
    opacity: .85;
}

.lifecycle-arrow small {
    margin-top: 5px;

    font-size: 14px;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   VALIDATION AVANT DESTROY
   ================================================== */

.destroy-validation {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 16px;

    margin-top: 27px;
}


/* ===== BLOCS ===== */

.destroy-command,
.destroy-check {
    min-width: 285px;

    padding: 11px 16px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;

    background: rgba(255, 255, 255, .04);

    text-align: center;
}


/* Plan destroy */

.destroy-command:first-child {
    border-color: rgba(245, 158, 11, .32);

    background: rgba(245, 158, 11, .065);
}


/* Vérification */

.destroy-check {
    border-color: rgba(52, 211, 153, .32);

    background: rgba(52, 211, 153, .065);
}


/* Destroy */

.destroy-command:last-child {
    border-color: rgba(251, 113, 133, .34);

    background: rgba(251, 113, 133, .07);
}


/* ===== LABELS ===== */

.destroy-label {
    display: block;

    margin-bottom: 5px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--muted);
}

.destroy-command:first-child .destroy-label {
    color: var(--orange);
}

.destroy-check .destroy-label {
    color: var(--green);
}

.destroy-command:last-child .destroy-label {
    color: var(--red);
}


/* ===== COMMANDES ===== */

.destroy-command code,
.destroy-check strong {
    font-size: 17px;
    line-height: 1.2;
}

.destroy-command code {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}


/* ===== FLÈCHES ===== */

.destroy-arrow {
    font-size: 27px;
    font-weight: 700;

    color: var(--orange);
    opacity: .85;
}


/* ==================================================
   BOUCLE / REPRODUCTIBILITÉ
   ================================================== */

.lifecycle-loop {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 17px;

    margin-top: 23px;
}


/* ↻ */

.lifecycle-loop > span {
    font-size: 39px;
    font-weight: 600;

    color: var(--cyan);
}


/* ===== TEXTE ===== */

.lifecycle-loop strong {
    display: block;

    font-size: 20px;
    line-height: 1.2;
}

.lifecycle-loop small {
    display: block;

    margin-top: 4px;

    font-size: 16px;
    line-height: 1.25;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   RÉSULTAT
   ================================================== */

.lifecycle-result {
    width: 82%;

    margin: 21px auto 0;
    padding-top: 11px;

    border-top: 2px solid rgba(34, 211, 238, .38);

    text-align: center;

    font-size: 19px;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}

.lifecycle-result span {
    margin: 0 9px;

    color: var(--cyan);
}

/* ==================================================
   17 — BILAN
   ================================================== */

#bilan {
    padding: 27px 35px;
    box-sizing: border-box;
}


/* ===== TITRE ===== */

#bilan h1 {
    margin: 0;

    text-align: center;

    font-size: 57px;
    line-height: 1.05;
}


/* ===== ACCROCHE ===== */

#bilan .slide-lead {
    margin: 12px 0 31px;

    text-align: center;

    font-size: 27px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   3 PILIERS
   ================================================== */

.bilan-columns {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

    width: 1120px;
    margin: 0 auto;
}


/* ===== CARTES ===== */

.bilan-card {
    position: relative;

    min-height: 295px;

    padding: 25px 27px 23px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 19px;

    background: rgba(255, 255, 255, .04);
}


/* ==================================================
   CONSTRUIRE
   ================================================== */

.bilan-card:nth-child(1) {
    border-color: rgba(56, 189, 248, .40);

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .10),
            rgba(255, 255, 255, .025)
        );
}

.bilan-card:nth-child(1) h2,
.bilan-card:nth-child(1) .bilan-icon {
    color: var(--blue);
}


/* ==================================================
   AUTOMATISER
   ================================================== */

.bilan-card:nth-child(2) {
    border-color: rgba(139, 92, 246, .42);

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, .10),
            rgba(255, 255, 255, .025)
        );
}

.bilan-card:nth-child(2) h2,
.bilan-card:nth-child(2) .bilan-icon {
    color: var(--purple);
}


/* ==================================================
   EXPLOITER
   ================================================== */

.bilan-card:nth-child(3) {
    border-color: rgba(52, 211, 153, .40);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .09),
            rgba(255, 255, 255, .025)
        );
}

.bilan-card:nth-child(3) h2,
.bilan-card:nth-child(3) .bilan-icon {
    color: var(--green);
}


/* ===== NUMÉROS ===== */

.bilan-number {
    position: absolute;

    top: 15px;
    right: 17px;

    font-size: 15px;
    font-weight: 800;

    color: var(--muted);
    opacity: .65;
}


/* ===== ICÔNES ===== */

.bilan-icon {
    height: 42px;

    margin-bottom: 5px;

    font-size: 38px;
    line-height: 42px;

    font-weight: 500;
}


/* ===== TITRES CARTES ===== */

.bilan-card h2 {
    margin: 3px 0 20px;

    font-size: 29px;
    line-height: 1.15;
}


/* ==================================================
   LISTES
   ================================================== */

.bilan-card ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.bilan-card li {
    position: relative;

    margin: 12px 0;
    padding-left: 20px;

    font-size: 19px;
    line-height: 1.3;

    color: var(--text);
}


/* Puces personnalisées */

.bilan-card li::before {
    content: "•";

    position: absolute;
    left: 0;

    font-size: 22px;
}


/* Couleur des puces */

.bilan-card:nth-child(1) li::before {
    color: var(--blue);
}

.bilan-card:nth-child(2) li::before {
    color: var(--purple);
}

.bilan-card:nth-child(3) li::before {
    color: var(--green);
}


/* ==================================================
   CHAÎNE DU CYCLE
   ================================================== */

.bilan-flow {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    width: 91%;

    margin: 24px auto 0;
    padding: 11px 15px;

    box-sizing: border-box;

    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 20px;

    background: rgba(245, 158, 11, .055);
}

.bilan-flow strong {
    font-size: 18px;
    font-weight: 700;
}

.bilan-flow span {
    font-size: 24px;
    font-weight: 700;

    color: var(--orange);
}


/* ==================================================
   CONCLUSION
   ================================================== */

.bilan-conclusion {
    width: 88%;

    margin: 20px auto 0;

    padding-top: 12px;

    border-top: 2px solid rgba(34, 211, 238, .40);

    text-align: center;
}


/* ===== LABEL ===== */

.bilan-conclusion-label {
    display: block;

    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1.2px;

    color: var(--cyan);
}


/* ===== MESSAGE PRINCIPAL ===== */

.bilan-conclusion strong {
    display: block;

    font-size: 21px;
    line-height: 1.3;

    font-weight: 700;

    color: var(--text);
}

/* ==================================================
   18 — ÉVOLUTIONS
   ================================================== */

#evolutions {
    padding: 27px 35px;
    box-sizing: border-box;
}


/* ==================================================
   TITRE
   ================================================== */

#evolutions h1 {
    margin: 0;

    text-align: center;

    font-size: 61px;
    line-height: 1.05;
}


/* ==================================================
   ACCROCHE
   ================================================== */

#evolutions .slide-lead {
    margin: 12px 0 32px;

    text-align: center;

    font-size: 27px;
    line-height: 1.3;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   GRILLE DES ÉVOLUTIONS
   ================================================== */

.evolution-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 19px;

    width: 1180px;
    margin: 0 auto;
}


/* ==================================================
   CARTES
   ================================================== */

.evolution-card {
    position: relative;

    min-height: 270px;

    padding: 24px 18px 21px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 19px;

    background: rgba(255, 255, 255, .04);

    text-align: center;
}


/* ===== NUMÉRO ===== */

.evolution-number {
    position: absolute;

    top: 13px;
    right: 15px;

    font-size: 15px;
    font-weight: 800;

    color: var(--muted);
    opacity: .65;
}


/* ===== ICÔNE ===== */

.evolution-icon {
    height: 45px;

    margin-bottom: 7px;

    font-size: 37px;
    line-height: 45px;

    font-weight: 500;
}


/* ===== TITRES ===== */

.evolution-card h2 {
    margin: 2px 0 17px;

    font-size: 27px;
    line-height: 1.15;
}


/* ===== DESCRIPTION ===== */

.evolution-card p {
    margin: 0;

    font-size: 19px;
    line-height: 1.4;

    color: var(--text);
}


/* ===== DÉTAIL ===== */

.evolution-card small {
    display: block;

    margin-top: 16px;

    font-size: 16px;
    line-height: 1.35;

    color: var(--muted);
    opacity: .95;
}


/* ==================================================
   01 — OBSERVABILITÉ
   ================================================== */

.evolution-card:nth-child(1) {
    border-color: rgba(56, 189, 248, .40);

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, .10),
            rgba(255, 255, 255, .025)
        );
}

.evolution-card:nth-child(1) h2,
.evolution-card:nth-child(1) .evolution-icon {
    color: var(--blue);
}


/* ==================================================
   02 — INGRESS / TLS
   ================================================== */

.evolution-card:nth-child(2) {
    border-color: rgba(34, 211, 238, .40);

    background:
        linear-gradient(
            145deg,
            rgba(34, 211, 238, .09),
            rgba(255, 255, 255, .025)
        );
}

.evolution-card:nth-child(2) h2,
.evolution-card:nth-child(2) .evolution-icon {
    color: var(--cyan);
}


/* ==================================================
   03 — SÉCURITÉ
   ================================================== */

.evolution-card:nth-child(3) {
    border-color: rgba(245, 158, 11, .42);

    background:
        linear-gradient(
            145deg,
            rgba(245, 158, 11, .10),
            rgba(255, 255, 255, .025)
        );
}

.evolution-card:nth-child(3) h2,
.evolution-card:nth-child(3) .evolution-icon {
    color: var(--orange);
}


/* ==================================================
   04 — RÉSILIENCE
   ================================================== */

.evolution-card:nth-child(4) {
    border-color: rgba(52, 211, 153, .40);

    background:
        linear-gradient(
            145deg,
            rgba(52, 211, 153, .09),
            rgba(255, 255, 255, .025)
        );
}

.evolution-card:nth-child(4) h2,
.evolution-card:nth-child(4) .evolution-icon {
    color: var(--green);
}


/* ==================================================
   CI/CD — AXE TRANSVERSAL
   ================================================== */

.evolution-cicd {
    width: 1060px;

    margin: 25px auto 0;
    padding: 16px 22px;

    box-sizing: border-box;

    border: 2px solid rgba(167, 139, 250, .58);
    border-radius: 18px;

    background:
        linear-gradient(
            90deg,
            rgba(139, 92, 246, .16),
            rgba(167, 139, 250, .09)
        );

    text-align: center;
}


/* ===== LABEL CI/CD ===== */

.evolution-cicd-label {
    display: block;

    margin-bottom: 8px;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 1.3px;

    color: #c4b5fd;
    opacity: 1;
}


/* ===== PIPELINE ===== */

.evolution-cicd > div {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
}

.evolution-cicd strong {
    font-size: 20px;
    font-weight: 700;

    color: var(--text);
}

.evolution-cicd > div span {
    margin: 0;

    font-size: 27px;
    font-weight: 800;

    color: #a78bfa;
    opacity: 1;
}


/* ==================================================
   CONCLUSION
   ================================================== */

.evolution-conclusion {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 18px;

    width: 88%;

    margin: 21px auto 0;
    padding-top: 12px;

    border-top: 2px solid rgba(56, 189, 248, .38);

    text-align: center;
}


/* ===== TEXTES ===== */

.evolution-conclusion strong {
    font-size: 20px;
    line-height: 1.25;
}

.evolution-conclusion strong:first-child {
    color: var(--muted);
}

.evolution-conclusion strong:last-child {
    color: var(--text);
}


/* ===== FLÈCHE ===== */

.evolution-conclusion > span {
    margin: 0;

    font-size: 27px;
    font-weight: 700;

    color: var(--blue);
    opacity: 1;
}

/* ==================================================
   19 — CONCLUSION
   ================================================== */

#conclusion {
    padding: 35px 45px;
    box-sizing: border-box;
}


/* ==================================================
   CONTENU
   ================================================== */

.conclusion-content {
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* ==================================================
   LABEL
   ================================================== */

.conclusion-label {
    margin-bottom: 18px;

    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;

    color: var(--blue);
    opacity: .85;
}


/* ==================================================
   TITRE
   ================================================== */

#conclusion h1 {
    margin: 0;

    font-size: 68px;
    line-height: 1.07;
}


/* ==================================================
   FIL CONDUCTEUR
   ================================================== */

.conclusion-flow {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 18px;

    margin-top: 32px;

    font-size: 21px;
    font-weight: 600;

    color: var(--muted);
    opacity: .95;
}

.conclusion-flow strong {
    font-size: 27px;
    font-weight: 700;

    color: var(--blue);
    opacity: .85;
}


/* ==================================================
   MESSAGE
   ================================================== */

.conclusion-message {
    margin: 30px 0 0;

    font-size: 25px;
    line-height: 1.4;

    color: var(--text);
    opacity: .9;
}


/* ==================================================
   SÉPARATEUR
   ================================================== */

.conclusion-separator {
    width: 120px;
    height: 2px;

    margin: 31px 0 23px;

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(56, 189, 248, .8),
            transparent
        );
}


/* ==================================================
   QUESTIONS
   ================================================== */

#conclusion h2 {
    margin: 0;

    font-size: 43px;
    line-height: 1.1;
    font-weight: 600;
}


/* ==================================================
   AUTEUR
   ================================================== */

.conclusion-author {
    margin: 14px 0 0;

    font-size: 18px;
    font-weight: 500;

    color: var(--muted);
    opacity: .8;
}


/* ==================================================
   LOGOS
   ================================================== */

.conclusion-logos {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 30px;

    margin-top: 25px;
}

.conclusion-logos img {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;

    opacity: .8;
}

/* ==================================================
   20 — OVERVIEW FINAL
   Vue d'ensemble du parcours
   ================================================== */

#overview-final {
    width: 1280px;
    height: 720px;

    padding: 0;

    background: transparent;
    border: none;
    box-shadow: none;

    pointer-events: none;
}

/* La step overview elle-même doit rester invisible */
#overview-final.active {
    background: transparent;
}
/* ==================================================
   OVERVIEW FINAL — RÉVÉLER TOUTES LES SLIDES
   ================================================== */

body.overview-mode .step:not(#overview-final) {
    opacity: 0.88 !important;
    filter: blur(0) !important;
}

/* La step caméra reste invisible */
body.overview-mode #overview-final {
    opacity: 0 !important;
}

/* On conserve une légère profondeur visuelle */
body.overview-mode .step:not(#overview-final) {
    transition:
        opacity 1.2s ease,
        filter 1.2s ease;
}

/* ==================================================
   20 — OVERVIEW FINAL / TABLE DU PROJET
   ================================================== */

#overview-final {
    width: 1400px;
    height: 800px;

    padding: 0;
    box-sizing: border-box;

    pointer-events: none;
}


/* ===== TABLE ===== */

.overview-table {
    position: relative;

    width: 1400px;
    height: 800px;

    margin: 0 auto;
}


/* ===== MINI SLIDES ===== */

.overview-clone {
    position: absolute;

    width: 260px;
    height: 160px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;

    background: var(--bg);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .32);

    opacity: 0;

    transform:
        translateY(25px)
        scale(.92);

    transition:
        opacity .65s ease,
        transform .9s cubic-bezier(.22, .61, .36, 1);
}


/* Le contenu original de la slide est placé
   dans une surface virtuelle 1200 × 700 */

.overview-clone-inner {
    position: absolute;

    top: 0;
    left: 0;

    width: 1200px;
    height: 700px;

    transform-origin: top left;

    transform: scale(.218);
}


/* ===== APPARITION ===== */

body.overview-final-active .overview-clone {
    opacity: 1;
}


/* ==================================================
   CONSTELLATION
   ================================================== */


/* ==================================================
   CONSTELLATION — DISPOSITION FINALE
   ================================================== */

/*
    Surface : 1400 × 800
    Cartes  : 260 × 160

              01
        02          03
    04      05  06      07
        08  09  10
    11  12  13  14  15
        16  17  18
              19
*/


/* ===== LIGNE 1 ===== */

.overview-clone:nth-child(1) {
    left: 570px;
    top: 5px;
    --rotation: -2deg;
}


/* ===== LIGNE 2 ===== */

.overview-clone:nth-child(2) {
    left: 300px;
    top: 120px;
    --rotation: 2deg;
}

.overview-clone:nth-child(3) {
    left: 840px;
    top: 120px;
    --rotation: -2deg;
}


/* ===== LIGNE 3 ===== */

.overview-clone:nth-child(4) {
    left: 85px;
    top: 255px;
    --rotation: -3deg;
}

.overview-clone:nth-child(5) {
    left: 385px;
    top: 250px;
    --rotation: 2deg;
}

.overview-clone:nth-child(6) {
    left: 685px;
    top: 245px;
    --rotation: -1deg;
}

.overview-clone:nth-child(7) {
    left: 985px;
    top: 255px;
    --rotation: 3deg;
}


/* ===== LIGNE 4 ===== */

.overview-clone:nth-child(8) {
    left: 280px;
    top: 380px;
    --rotation: 2deg;
}

.overview-clone:nth-child(9) {
    left: 570px;
    top: 370px;
    --rotation: -2deg;
}

.overview-clone:nth-child(10) {
    left: 860px;
    top: 380px;
    --rotation: 2deg;
}


/* ===== LIGNE 5 ===== */

.overview-clone:nth-child(11) {
    left: 70px;
    top: 510px;
    --rotation: -2deg;
}

.overview-clone:nth-child(12) {
    left: 335px;
    top: 515px;
    --rotation: 2deg;
}

.overview-clone:nth-child(13) {
    left: 570px;
    top: 500px;
    --rotation: -1deg;
}

.overview-clone:nth-child(14) {
    left: 805px;
    top: 515px;
    --rotation: 2deg;
}

.overview-clone:nth-child(15) {
    left: 1070px;
    top: 505px;
    --rotation: -2deg;
}


/* ===== LIGNE 6 ===== */

.overview-clone:nth-child(16) {
    left: 320px;
    top: 630px;
    --rotation: -2deg;
}

.overview-clone:nth-child(17) {
    left: 570px;
    top: 620px;
    --rotation: 1deg;
}

.overview-clone:nth-child(18) {
    left: 820px;
    top: 630px;
    --rotation: 2deg;
}


/* ===== CONCLUSION ===== */

.overview-clone:nth-child(19) {
    left: 570px;
    top: 735px;
    --rotation: 0deg;

    z-index: 3;
}


/* ==================================================
   ANIMATION DES CARTES
   ================================================== */

/*
   Avant l'arrivée sur l'overview :
   légèrement descendues et réduites.
*/

.overview-clone {
    transform:
        rotate(var(--rotation, 0deg))
        translateY(25px)
        scale(.92);
}


/*
   Une fois la caméra arrivée :
   elles viennent se poser.
*/

body.overview-final-active .overview-clone {
    transform:
        rotate(var(--rotation, 0deg))
        translateY(0)
        scale(1);

    opacity: 1;
}


/* Conclusion légèrement mise en avant */

body.overview-final-active .overview-clone:nth-child(19) {
    transform:
        rotate(0deg)
        translateY(0)
        scale(1.04);
}



/* =========================================
   NOUVEAU GABARIT GLOBAL — TEST
   ========================================= */


/* =========================================
   DESIGN SYSTEM
   ========================================= */

:root {
    /* Background */
    --bg: #080e1a;

    /* Typography */
    --text: #f5f7fb;
    --muted: #aab3c5;

    /* Accents */
    --purple: #8b5cf6;
    --blue: #38bdf8;
    --cyan: #22d3ee;
    --orange: #f59e0b;

    /* States */
    --green: #34d399;
    --red: #fb7185;

    /* Typography scale */
    --title-size: 56px;
    --subtitle-size: 24px;
    --card-title-size: 25px;
    --body-size: 19px;
    --small-size: 16px;
    --label-size: 14px;
}

.step {
    width: 1280px;
    height: 720px;
    padding: 55px 70px;
    box-sizing: border-box;
}

.step {
    opacity: 0;

    transition:
        opacity .7s ease,
        filter .7s ease;
}

.step.past,
.step.future {
    opacity: .07;
    filter: blur(1.5px);
}

.step.active {
    opacity: 1;
    filter: blur(0);
}

/* Force temporairement le même gabarit
   malgré les anciennes règles #slide */

#impress .step {
    width: 1280px;
    height: 720px;
}

/* =========================================
   TYPOGRAPHIE GLOBALE — PROJECTION
   ========================================= */

.step h1 {
    font-size: var(--title-size);
    line-height: 1.08;
}

.step .slide-lead {
    font-size: var(--subtitle-size);
    line-height: 1.4;
    opacity: .82;
}

/* Le texte courant doit rester lisible à distance */
.step p {
    line-height: 1.45;
}

/* Les textes secondaires ne doivent plus disparaître */
.step small {
    font-size: var(--small-size);
    opacity: .7;
}


/* ==================================================
   SLIDES EN PROFONDEUR
   ================================================== */

/* Slide située derrière une autre scène */
.step.depth-step.future,
.step.depth-step.past {
    opacity: .035;
    filter: blur(4px);
}

/* Dès qu'on entre réellement dans la slide */
.step.depth-step.active {
    opacity: 1;
    filter: blur(0);
}

/* ==================================================
   OVERVIEW FINAL — REGROUPEMENT DES CARTES
   ================================================== */


body.overview-final-active .step:not(#overview-final) {
    opacity: 1 !important;
    filter: blur(0) !important;

    transition:
        opacity .8s ease,
        filter .8s ease;
}



/* L'overview lui-même reste invisible */
#overview-final {
    pointer-events: none;
}



.architecture-bg-logo {
    opacity: .055;
    filter: grayscale(1);
    pointer-events: none;
}

/* ============================================================
   FINAL OVERRIDES — VERSION SOUTENANCE
   ============================================================ */

/* Architecture détaillée : schéma légèrement remonté et réduit */
#architecture-detail {
    width: 1200px;
    height: 700px;
    padding: 22px 48px 18px;
    box-sizing: border-box;
}

#architecture-detail h1 {
    margin: 0;
    text-align: center;
    font-size: 44px;
    line-height: 1.05;
}

#architecture-detail .slide-lead {
    margin: 7px 0 12px;
    text-align: center;
    font-size: 17px;
    line-height: 1.25;
    color: var(--muted);
}

#architecture-detail .architecture-schema {
    width: 940px;
    height: 505px;
    margin: -2px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#architecture-detail .architecture-schema img {
    display: block;
    width: auto;
    height: auto;
    max-width: 94%;
    max-height: 94%;
    object-fit: contain;
}

#architecture-detail .architecture-schema-footer {
    margin-top: 8px;
}

/* Overview final */
#overview-final {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}

body.overview-final-active .overview-clone {
    opacity: 1;
    filter: none;
}

/* Important : ne jamais imposer ici de transform aux .step.
   Les transforms appartiennent à Impress.js. */
.step {
    transform-style: preserve-3d;
}
