@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Baloo Bhai 2', cursive, sans-serif;
    background-color: #fcfbf7;
    color: #222222;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVIGATION & RETOUR */
.top-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    border: 1px solid #000;
    border-radius: 15px;
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-back:hover {
    background: #1e5abc;
    color: #ffffff;
    border-color: #1e5abc;
    transform: translateX(-4px);
    box-shadow: 0 6px 15px rgba(30, 90, 188, 0.3);
}

/* =========================================================================
-------------------------SECTION INTRO--------------------------------- :)
========================================================================== */
.project-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px 40px;
}

.handwritten-sub {
    font-family: 'Baloo Bhai 2', cursive;
    color: #2c66c6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.project-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.project-title {
    font-family: 'skia-cc-semi-condensed', 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    letter-spacing: -1px;
    line-height: 1;
    color: #111111;
}

.project-title-alt {
    font-family: "Mynerve", cursive, sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    color: #111111;
}

.title-left-group {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 16px;
    font-family: 'Baloo Bhai 2', cursive;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1;
    white-space: nowrap;
}

.project-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #444444;
    max-width: 750px;
    margin-bottom: 20px;
}

/* IMAGES & GRILLES */
.main-cover-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.featured-img {
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: cover;
    display: block;
    border: 2px solid #1e5abc;
}

.objective-section {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.objective-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.objective-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 0;
    white-space: nowrap;
}

.header-line {
    flex: 1;
    height: 4px;
    background-color: #1e5abc;
    border-radius: 2px;
}

/* Layout alignant texte à gauche et perso réduit à droite */
.objective-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.objective-content p {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000000;
    max-width: 1000px;
}

.perso-mma {
    width: 150px;
    height: auto;
    flex-shrink: 0;
}

/* GRILLE DE SAMPLES */
.secondary-grid {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border: 2px solid #1e5abc;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Image occupant les 3 colonnes de la grille */
.full-width-img {
    grid-column: 1 / -1;
    height: 500px;
}


@media (max-width: 768px) {
    .secondary-grid {
        grid-template-columns: 1fr;
    }
    .objective-card {
        padding: 30px 20px;
    }
    .objective-content {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .grid-img {
        height: 260px;
    }
    .full-width-img {
        height: 300px;
    }
    .project-title-container {
        align-items: flex-start;
    }
}

/* =========================================================================
------------------------ Carrousel-guide ------------------------------ :)
========================================================================== */
.book {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titre_guide {
    font-family: 'skia-cc-semi-condensed', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    color: #111111;
    line-height: 1.2;
}

.titre_guide2 {
    font-family: 'Mynerve', sans-serif;
    font-size: 3.08rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    color: #111111;
    line-height: 1.2;
    margin-bottom: 40px;
}

.book-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

#book {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111111;
}

.book-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #111111;
    background: #ffffff;
    color: #111111;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.book-controls button:hover {
    background: #1e5abc;
    color: #ffffff;
    border-color: #1e5abc;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 90, 188, 0.3);
}

.book-controls span {
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* =========================================================================
-------------------------SECTION VIDÉO---------------------------------- :)
========================================================================== */
.video-section {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #111111;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}