:root {
    --bg-main: #050505;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: #cfcfcf;
    --accent-gradient: linear-gradient(90deg, #ff6b8b, #00c4ff);
    --font-main: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --side-margin: 80px;
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 15px;
    padding: 0 var(--side-margin);
}

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

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* CORRECTION : Retirer le padding du container car le body s'en occupe */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ========== HEADER ========== */
.site-header {
    background: #050505;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #151515;
    margin: 0 calc(-1 * var(--side-margin));
    padding: 0 var(--side-margin);
}

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

.site-logo a {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
}

.site-logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-border {
    display: none;
}

/* ========== TITRES ========== */
.section-title,
.page-title {
    text-align: center;
    margin: 40px 0 24px;
    font-size: 30px;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-section-title {
    text-align: center;
    margin: 30px 0 20px;
    font-size: 22px;
    font-weight: 600;
}

/* ========== BOUTONS ========== */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.btn-gradient:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.btn-gradient-alt {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.1s ease, filter 0.1s ease;
}

.btn-gradient-alt:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.section-separator {
    display: none;
}

/* ========== HERO (Accueil) ========== */
.hero {
    text-align: center;
    padding: 70px 0 40px;
}

.hero-title {
    font-size: 34px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-video-wrapper {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========== COMPÉTENCES ========== */
.section-competences {
    padding: 20px 0 40px;
}

.competence-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}

.competence-row.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.competence-row.reverse .competence-text {
    order: 2;
}

.competence-row.reverse .competence-image {
    order: 1;
}

.competence-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.competence-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 8px 0;
}

.competence-image img {
    border-radius: 18px;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ========== CONTACT ========== */
.section-contact {
    padding: 30px 0 40px;
    text-align: center;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 14px;
}

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

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.cta-center {
    text-align: center;
    margin: 30px 0;
}

/* ========== RÉALISATIONS (Carrousel) ========== */
.rea-wrapper {
    padding: 40px 0 50px;
}

.rea-frame {
    max-width: 100%;
    margin: 0 auto;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.rea-main-img img {
    width: 100%;
    display: block;
    min-height: 400px;
    object-fit: cover;
}

.rea-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.rea-nav.left {
    left: 20px;
}

.rea-nav.right {
    right: 20px;
}

.rea-nav button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.rea-nav button:hover {
    transform: scale(1.05);
}

.rea-caption {
    font-size: 13px;
    color: #fff;
    background: rgba(0,0,0,0.9);
    padding: 12px 16px;
}

/* ========== PARCOURS (Timeline) ========== */
.parcours-section {
    padding: 20px 0 40px;
}

.timeline {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-bullet {
    position: absolute;
    left: -27px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--accent-gradient);
}

.timeline-content {
    padding-left: 26px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 16px;
}

.timeline-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
}

.raw-journey {
    max-width: 900px;
    margin: 40px auto 30px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 0 20px;
}

.raw-journey h3 {
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}

.raw-journey p {
    margin-bottom: 12px;
}

/* ========== COMPTE RENDU (Grille) ========== */
.cr-section {
    padding: 20px 0 40px;
}

.cr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 40px 0 30px;
}

.cr-card {
    background: #000;
    border-radius: 26px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.cr-card:hover {
    transform: translateY(-4px);
}

.cr-card img {
    width: 100%;
    display: block;
    min-height: 250px;
    object-fit: cover;
}

.cr-caption {
    padding: 12px 16px;
    font-size: 13px;
    background: #000;
}

/* ========== FOOTER ========== */
.site-footer {
    text-align: center;
    padding: 18px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid #151515;
    background: #050505;
    margin: 0 calc(-1 * var(--side-margin));
    padding-left: var(--side-margin);
    padding-right: var(--side-margin);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
    :root {
        --side-margin: 60px;
    }
}

@media (max-width: 1024px) {
    :root {
        --side-margin: 40px;
    }
}

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

    .competence-row.reverse .competence-text,
    .competence-row.reverse .competence-image {
        order: initial;
    }

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

@media (max-width: 700px) {
    :root {
        --side-margin: 24px;
    }

    .hero-title {
        font-size: 26px;
    }

    .section-title,
    .page-title {
        font-size: 24px;
    }

    .site-header-inner {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav ul {
        gap: 18px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .cta-buttons {
        width: 100%;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}