:root {
    --primary-color: #111a37;
    --second-color: #B9DBDC;
    --fond-color : rgba(15, 51, 170, 0.06);
    --body: rgb(255, 255, 255);
    --font-title: "railroad-gothic-atf", sans-serif;
    --font-text: "new-hero", sans-serif;
}

body{
    margin: 0;
    padding: 0;
    
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: auto;
}

main {
    padding-bottom: 8em;
}

article {
    padding: 0 6em;
}



/*------------------------------------- HEADER -------------------------------------*/

header {
    width: 100%;
    font-family: var(--font-text);
    color: var(--primary-color);
    background-color: var(--body);
    max-width: 100%;
    overflow-x: hidden;
}


/* LOGO */

.container_logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
}

.container_logo p {
    font-size: 15px;
}

.logo_bleu {
    width: 18px;
    height: 30px;
    display: block;
}



/* HEADER */

.container_header_text {
    width: 100%;
    max-width: 100%;


    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 30px 50px;
    box-sizing: border-box;
}


/* BOUTONS */

.lien {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.bouton {
    position: relative;
    display: inline-block;
    overflow: hidden;

    padding: 5px 17px;

    color: var(--primary-color);
    text-decoration: none;

    border: 1px solid var(--primary-color);
    border-radius: 5em;

    box-sizing: border-box;
}

.bouton span {
    display: block;
    line-height: 20px;
    transition: transform 0.4s ease-out;
}

.bouton span:last-child {
    position: absolute;
    left: 17px;
    top: 5px;

    transform: translateY(150%);
}

.bouton:hover span:first-child {
    transform: translateY(-150%);
}

.bouton:hover span:last-child {
    transform: translateY(0);
}


/* BOUTON CV */

.bouton:last-of-type {
    background-color: var(--primary-color);
    color: white;
}


/*------------------------------------- PROJET -------------------------------------*/


h1{
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 4.5em;
    font-weight: 700;
    padding-bottom: 0.2em;
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 0;
}

.cadre_image {
    width: 100%;
    height: 500px; /* taille de TON cadre */
    overflow: hidden;
    border-radius: 1em;
}

.img_principale {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail{
    display: flex;
    justify-content: space-between;
    font-family: var(--font-text);
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2em;
    padding-top: 0.3em;
}


/*------------------------------------- DESCRIPTION -------------------------------------*/
.container_description{
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    font-family: var(--font-text);
    font-weight: 400;
    color: var(--primary-color);
    margin: 3em 0 5em 0;
}

.all_competence{
    border-right: 1px solid var(--primary-color);
    padding-right: 1.5em;
}

.container_competence{
    margin-bottom: 2em;
}

.container_competence:last-child{
    margin-bottom: 0;
}

.petit_titre{
    font-weight: 600;
    padding: 0;
    margin: 0 0 0.8em 0;
}

.competence{
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.competence p {
    font-size: 14px;
    border: 1px solid var(--primary-color);
    border-radius: 4em;
    padding: 0.3em 1em;
    margin: 0;
}

.btn_lien {
    position: relative;
    display: inline-block;
    overflow: hidden;

    width: 140px;
    height: 35px;

    border-radius: 50px;

    background-color: var(--primary-color);
    color: white;
    text-decoration: none;

    font-family: var(--font-text);
    font-size: 0.9em;
}

.btn_lien span {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.4s ease-out;
}

.btn_lien span:first-child {
    transform: translateY(0);
}

.btn_lien span:last-child {
    transform: translateY(100%);
}

.btn_lien:hover span:first-child {
    transform: translateY(-100%);
}

.btn_lien:hover span:last-child {
    transform: translateY(0);
}

.text_description{
    padding-left: 2em;
}

.text_description p {
    margin: 0;
    font-size: 15px;
    line-height: 21px;
}




/*------------------------------------- FOOTER -------------------------------------*/
footer{
    font-family: var(--font-text);
    background-color: var(--primary-color);
    color: white;
    padding: 3em 5em 0.5em 0;
}

.logo_blanc{
    width: 15%;
    padding-left: 5em;
    padding-bottom: 3em;
}

.copyright{
    border-top: 1px solid rgba(255, 255, 255, 0.40);
    font-size: 0.8em;
    padding-top: 0.5em;
    padding-left: 6em;
    color: rgba(255, 255, 255, 0.40);
}

.img_mail{
    width: 380px;
    height: auto;
}

.container_info_footer{
    padding-bottom: 0.5em;
}

.container_footer{
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.container_rs{
    display: flex;
    flex-direction: column;
    align-items: end;
}

.container_rs:first-of-type p{
    font-weight: 600;
}
.rs{
    text-decoration: none;
    color: white;
    line-height: 1.7;
}


/*------------------------------------- BOOK -------------------------------------*/
.titre_guide{
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 45px;
    text-align: center;
    line-height: 50px;
    margin-top: 0;
}

.book {
    /* sort du padding de article */
    width: calc(100% + 12em);
    margin-left: -6em;

    /* fond pleine largeur */
    background-color: var(--fond-color);

    /* espace intérieur */
    padding: 70px 6em 70px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;
}


/*-- BOOK WRAPPER --*/

.book-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: transparent;
}


/*-- LE BOOK --*/

#book {
    width: min(90vw, 1100px);

    margin: 0;
    padding: 0;

    background: transparent !important;
    box-shadow: none;
    border: none;

    position: relative;
}


/* Supprime le fond blanc éventuel du conteneur interne */
#book > div {
    background: transparent !important;
}


/*-- CONTROLES --*/

.book-controls {
    margin-top: 30px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;

    font-family: var(--font-text);
    color: var(--primary-color);

    background: transparent;
}


/*-- BOUTONS --*/

.book-controls button {
    width: 40px;
    height: 40px;

    border: 1px solid var(--primary-color);
    border-radius: 50%;

    background: transparent;
    color: var(--primary-color);

    cursor: pointer;

    font-size: 18px;

    transition:
            background-color 0.2s ease,
            color 0.2s ease;
}


.book-controls button:hover {
    background: var(--primary-color);
    color: white;
}


/*-- NUMÉROS DE PAGE --*/

#current-page {
    font-weight: normal;
}

#total-pages {
    opacity: 0.6;
}


/*-------------------------------------
  SUPPRIMER L'OMBRE ENTRE LES PAGES
-------------------------------------*/

#book,
#book > div,
#book > div > div {
    box-shadow: none !important;
}


/* Éléments de pages générés par le flipbook */
#book [class*="page"],
#book [class*="Page"],
#book [class*="sheet"],
#book [class*="Sheet"] {
    box-shadow: none !important;
}



/*-- MOBILE --*/

@media (max-width: 700px) {

    .book {
        padding: 40px 20px 25px;
    }

    #book {
        width: 100%;
    }

    .book-controls {
        margin-top: 20px;
    }
}





/*------------------------------------- DEFILEMENT IMAGE -------------------------------------*/
.image-marquee {
    width: 100%;
    overflow: hidden;
}

.image-track {
    display: flex;
    width: max-content;
    gap: 20px;

    animation: scroll-images 35s linear infinite;
}

.image-track img {
    width: 25vw;
    aspect-ratio: 3 / 4;

    object-fit: cover;
    display: block;
    flex-shrink: 0;

    border-radius: 1em;
}

@keyframes scroll-images {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}




/*------------------------------------- GRILLE IMAGE DA MMI -------------------------------------*/

.gallery {
    width: 100%;
    display: grid;

    /* 12 colonnes pour pouvoir gérer précisément les proportions */
    grid-template-columns: repeat(12, 1fr);

    gap: 18px;

}


.gallery-section {
    background-color: rgba(15, 51, 170, 0.06);

    /* sort du padding de article */
    width: calc(100% + 12em);
    margin-left: -6em;

    padding: 6em;
    box-sizing: border-box;
}


/* Toutes les images */
.gallery-item {
    height: 405px;
    overflow: hidden;
    border-radius: 18px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

/* Petit effet au survol */
.gallery-item:hover img {
    transform: scale(1.04);
}


/* =========================
   PREMIÈRE LIGNE
   ========================= */

.item-1 {
    grid-column: span 5;
}

.item-2 {
    grid-column: span 3;
}

.item-3 {
    grid-column: span 4;
}


/* =========================
   DEUXIÈME LIGNE
   ========================= */

.item-4 {
    grid-column: span 3;
}

.item-5 {
    grid-column: span 4;
}

.item-6 {
    grid-column: span 5;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item {
        grid-column: span 1;
        height: 300px;
        border-radius: 14px;
    }

}





/*------------------------------------- GRILLE IMAGE MOBA -------------------------------------*/

.gallery-moba {
    width: 100%;
    display: grid;

    /* 12 colonnes pour pouvoir gérer précisément les proportions */
    grid-template-columns: repeat(12, 1fr);

    gap: 18px;

}

/* Toutes les images */
.gallery-moba-item {
    height: 405px;
    overflow: hidden;
    border-radius: 18px;
}

.gallery-moba-item img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

/* Petit effet au survol */
.gallery-moba-item:hover img {
    transform: scale(1.04);
}



/* =========================
   PREMIÈRE LIGNE
   ========================= */

.item-moba-1 {
    grid-column: span 7;
}

.item-moba-2 {
    grid-column: span 5;
}


/* =========================
   DEUXIÈME LIGNE
   ========================= */
.item-moba-3 {
    grid-column: span 5;
}

.item-moba-4 {
    grid-column: span 7;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item {
        grid-column: span 1;
        height: 300px;
        border-radius: 14px;
    }

}




/*------------------------------------- MAQUETTE SITE WEB -------------------------------------*/
.maquette{
    background-color: rgba(15, 51, 170, 0.06);

    width: calc(100% + 12em);
    margin-left: -6em;

    padding: 6em;
    box-sizing: border-box;
}


.website-preview {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;

    border-radius: 18px;
    overflow: hidden;

    background: #f5f5f5;
}


/* BARRE DU NAVIGATEUR */

.browser-bar {
    height: 40px;

    display: flex;
    align-items: center;

    gap: 7px;
    padding: 0 15px;

    background: #eaeaea;

    box-sizing: border-box;
}

.browser-bar span {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;
    background: #b6b6b6;
}


/* FENÊTRE DE LA MAQUETTE */

.website-screen {
    position: relative;

    width: 100%;
    height: 520px;

    overflow: hidden;
}


/* IMAGE */

.website-screen img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    transition: transform 15s linear;

    user-select: none;
}


/* SCROLL AU SURVOL */

.website-preview:hover .website-screen img {
    transform: translateY(
            calc(-100% + 520px)
    );
}