body {
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.stages-kicker {
    display: inline-flex;
    margin: 8px auto 16px auto;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(71, 197, 255, 0.45);
    background: rgba(10, 23, 40, 0.65);
    color: #cbe8ff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stages-intro {
    max-width: 820px;
    margin: -2px auto 22px auto;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(9, 20, 34, 0.6);
    border: 1px solid rgba(156, 215, 255, 0.24);
    text-align: center;
    color: #f0f7ff;
    line-height: 1.7;
    font-size: 1.03rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.stages-highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 auto 30px auto;
    max-width: 920px;
}

.stages-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.9rem;
    border-radius: 999px;
    background: rgba(14, 28, 46, 0.78);
    border: 1px solid rgba(87, 179, 232, 0.35);
    color: #d9ecff;
    font-size: 0.88rem;
}

.stage-section {
    margin: 40px auto;
    padding: 28px 28px 24px 24px;
    background: linear-gradient(135deg, rgba(17, 28, 48, 0.92) 0%, rgba(24, 42, 66, 0.92) 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.07), 0 1.5px 6px rgba(0,0,0,0.18);
    border-left: 6px solid #00bfff;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.65s cubic-bezier(.2,.8,.2,1) both;
    transition: box-shadow 0.3s, border-color 0.3s;
    max-width: 900px;
}

.stage-section:hover {
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.14), 0 3px 10px rgba(0,0,0,0.2);
    border-left: 6px solid #1b9de8;
}

.stage-section h2 {
    color: #00bfff;
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 2vw + 0.8rem, 2.1rem);
    letter-spacing: 1.2px;
    position: relative;
    text-shadow: 0 2px 8px rgba(0,191,255,0.10);
    text-align: center;
}

.stage-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00bfff 0%, #7f53ac 100%);
    border-radius: 2px;
    margin: 12px auto 0 auto;
    opacity: 0.7;
}

.stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.stage-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(9, 26, 42, 0.7);
    border: 1px solid rgba(0, 191, 255, 0.28);
    color: #bfe6ff;
    font-size: 0.88rem;
    line-height: 1.3;
}

.stage-section h4 {
    color: #fff;
    margin-bottom: 10px;
    margin-top: 18px;
    text-align: left;
    padding-left: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-title-centered {
    text-align: center;
}

.stage-section p {
    color: #e6e6e6;
    line-height: 1.75;
    font-size: 1.02rem;
    text-align: left;
    margin-bottom: 12px;
}

.stage-focus-list {
    margin-top: 14px;
}

.results-block {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(10, 24, 40, 0.5);
    border: 1px solid rgba(148, 209, 249, 0.2);
    border-radius: 12px;
}

.results-list {
    margin: 10px 0 0 0;
    padding-left: 18px;
}

.results-list li {
    margin-bottom: 8px;
    color: #d8e8f9;
    line-height: 1.5;
}

.stage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.stage-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    background: rgba(18, 40, 63, 0.7);
    border: 1px solid rgba(118, 187, 232, 0.3);
    color: #d8ecff;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.mission-block {
    background: rgba(8, 20, 34, 0.48);
    border: 1px solid rgba(140, 203, 247, 0.18);
    border-radius: 14px;
    padding: 14px 16px 6px 16px;
    margin-top: 14px;
}

.stage-section ul {
    margin: 20px 0;
    padding-left: 28px;
    list-style: none;
}

.stage-section ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1rem;
    text-align: left;
    position: relative;
    padding-left: 18px;
}

.stage-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bfff 60%, #7f53ac 100%);
    box-shadow: 0 0 6px #00bfff88;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Diaporama PDF */
.diapo-container {
    text-align: center;
    margin-top: 24px;
}

.diapo-frame {
    width: min(100%, 920px);
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(129, 200, 245, 0.35);
    background: rgba(11, 23, 37, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.diapo-frame iframe {
    width: 100%;
    height: clamp(360px, 62vh, 760px);
    display: block;
    border-radius: 12px;
    box-shadow: 0px 6px 20px rgba(0, 191, 255, 0.13);
    border: none;
    background: #181c24;
    transition: box-shadow 0.3s;
}

.diapo-frame iframe:hover {
    box-shadow: 0px 12px 32px rgba(127, 83, 172, 0.21);
}

.diapo-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.diapo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(110, 187, 235, 0.35);
    background: rgba(15, 42, 64, 0.78);
    color: #dff2ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.diapo-btn:hover {
    background: rgba(22, 62, 93, 0.9);
    transform: translateY(-1px);
}

.diapo-btn.secondary {
    background: rgba(9, 26, 42, 0.75);
}

.download-note,
.website-note {
    text-align: center;
    margin-top: 10px;
}

.download-note {
    color: #c8def5;
    font-size: 0.94rem;
}

/* Liens */
.diapo-container a,
.website-screenshot-block a {
    color: #00bfff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}
.diapo-container a:hover,
.website-screenshot-block a:hover {
    color: #54b4ea;
    text-shadow: 0 0 6px rgba(84, 180, 234, 0.55);
    text-decoration: underline;
}

/* Captures d'écran */
.screenshots-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 24px;
}

.screenshot-block {
    width: min(210px, calc(25% - 15px));
    aspect-ratio: 9 / 18;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 191, 255, 0.09);
    overflow: hidden;
    background: #23243a;
    transition: transform 0.25s, box-shadow 0.25s;
}

.screenshot-block:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0px 8px 24px rgba(84, 180, 234, 0.14);
}

.screenshot-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .screenshot-block {
        width: calc(33% - 12px);
    }

    .stage-section {
        padding: 20px 16px 18px 14px;
    }
}

@media (max-width: 768px) {
    .stage-section {
        padding: 18px 8px 14px 6px;
    }

    .screenshot-block {
        width: calc(50% - 10px);
    }

    .stages-highlights {
        justify-content: flex-start;
    }

    .diapo-frame iframe {
        height: clamp(300px, 54vh, 560px);
    }
}

@media (max-width: 480px) {
    .screenshot-block {
        width: 100%;
    }

    .stages-intro {
        font-size: 0.97rem;
    }

    .stages-highlights span {
        font-size: 0.82rem;
    }
}

/* Website screenshot */
.website-screenshot-container {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.website-screenshot-block {
    text-align: center;
    max-width: 680px;
    background: #23243a;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 191, 255, 0.09);
    padding: 12px;
}

.website-screenshot-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 191, 255, 0.11);
    margin-bottom: 8px;
}
