/* GENERAL */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #05060a;
    color: #e4e6eb;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background: rgba(10, 11, 18, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #b39cff;
    font-size: 1.5rem;
}

nav a {
    margin-left: 18px;
    color: #d0cffc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
}

/* HERO */
.hero {
    padding: 110px 0 80px;
    background: radial-gradient(circle at top left, #2b2f55, #05060a 55%);
    color: #f5f5ff;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero h2 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #c7c7e8;
}

.hero-text {
    margin-top: 15px;
    max-width: 650px;
    line-height: 1.6;
    color: #d0d0e5;
}

.cta {
    margin-top: 25px;
}

.btn, .btn-outline {
    padding: 11px 22px;
    border-radius: 6px;
    margin-right: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
}

.btn {
    background: #8f6bff;
    color: white;
    box-shadow: 0 8px 20px rgba(143, 107, 255, 0.35);
}

.btn-outline {
    border: 1px solid #8f6bff;
    color: #d0cffc;
}

/* SECTIONS */
.section {
    padding: 70px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #c2b3ff;
    text-align: center;
}

.section p {
    line-height: 1.6;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* CERTIFICATIONS */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #0c0e18;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #e0ddff;
}

.cert-list {
    padding-left: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.cert-list li {
    margin-bottom: 4px;
}

.cert-image {
    margin-top: 15px;
    text-align: center;
}

.cert-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

/* STAGE (FIX COMPLET ALIGNEMENT) */
.stage-intro {
    max-width: 800px;
    margin: 0 auto 40px;
}

.stage-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.stage-step.reverse {
    flex-direction: row-reverse;
}

.stage-text {
    flex: 1;
    text-align: left;
}

.stage-text h3 {
    margin-top: 0;
    color: #dcd6ff;
}

.stage-photo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.stage-step.reverse .stage-photo {
    justify-content: flex-start;
}

.stage-photo img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

.img-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #a0a0c0;
    text-align: center;
}

/* PROJET PERSONNEL */
.projet-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.projet-photo img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    display: block;
    margin: 0 auto;
}

/* SYNTHÈSE */
#synthese .cta-center {
    text-align: center;
}

#synthese .cta-center .btn {
    display: inline-block;
}

/* CONCLUSION */
.conclusion-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.conclusion-photo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

/* CONTACT */
#contact {
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .stage-step,
    .stage-step.reverse,
    .projet-grid,
    .conclusion-grid {
        flex-direction: column;
        text-align: center;
    }

    .stage-photo,
    .projet-photo img,
    .conclusion-photo img {
        justify-content: center;
        max-width: 350px;
        margin: 0 auto;
    }

    .stage-text {
        text-align: center;
    }
}
