
: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;
}

.affiche {
    width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .affiche {
        width: 85%;
    }
}

/* 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)
    );
}



/* =========================================
   BOOK - ADAPTATION MOBILE
   ========================================= */

@media (max-width: 700px) {

    .book {
        width: 100%;
        margin-left: 0;
        padding: 40px 10px 25px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .book-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    #book {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
    }

    .titre_guide {
        font-size: 34px;
        line-height: 38px;
    }

    .book-controls {
        margin-top: 20px;
        gap: 18px;
    }

    .book-controls button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}



@media (max-width: 768px) {
    html, body { width:100%; max-width:100%; overflow-x:hidden; }
    main { padding-bottom:4em; }
    article { padding:0 18px; }

    .container_header_text { padding:18px; gap:12px; }
    .container_logo { gap:7px; flex-shrink:0; }
    .logo_bleu { width:15px; height:auto; }
    .container_logo p { font-size:10px; margin:0; }
    .lien { gap:6px; flex-wrap:nowrap; }
    .bouton { padding:4px 10px; font-size:10px; white-space:nowrap; }
    .bouton span { line-height:17px; }
    .bouton span:last-child { left:10px; top:4px; }

    h1 {
        font-size:clamp(2.8rem,13vw,3em);
        line-height:.95;
        padding-bottom:.25em;
        margin-top:.4em;
        overflow-wrap:break-word;
    }

    .detail {
        font-size:12px;
        line-height:1.4;
        gap:15px;
        margin-bottom:1.5em;
    }
    .detail p {
        ;
    }

    .cadre_image {
        width:100%;
        height:58vw;
        min-height:220px;
        max-height:380px;
        border-radius:12px;
    }

    .container_description {
        display:flex;
        flex-direction:column;
        gap:2em;
        margin:2.5em 0 3.5em;
    }

    .all_competence {
        border-right:none;
        border-bottom:1px solid var(--primary-color);
        padding:0 0 1.5em;
    }

    .container_competence {
        margin-bottom: 1em;
    }

    .petit_titre {
        font-size:15px; margin-bottom:.7em;
    }

    .competence {
        gap:8px;
    }

    .competence p {
        font-size:13px; padding:.35em .9em;
    }

    .text_description {
        padding-left:0;
    }

    .btn_lien{
        font-size:13px;
    }

    .text_description p {
        font-size:14px; line-height:1.65;
    }

    .gallery-section {
        width:calc(100% + 36px);
        margin-left:-18px;
        padding:3em 18px;
    }

    .gallery {
        grid-template-columns:1fr;
        gap:30px;
    }

    .gallery-item,
    .item-1,.item-2,.item-3,.item-4,.item-5,.item-6 {
        grid-column:span 1;
        height:auto;
        aspect-ratio:4/3;
        border-radius:12px;
    }

    .gallery-moba {
        grid-template-columns:1fr;
        gap:12px;
    }

    .gallery-moba-item,
    .item-moba-1,.item-moba-2,.item-moba-3,.item-moba-4 {
        grid-column:span 1;
        height:auto;
        aspect-ratio:4/3;
        border-radius:12px;
    }

    .book {
        width:calc(100% + 36px);
        margin-left:-18px;
        padding:40px 18px 35px;
    }

    .titre_guide {
        font-size:clamp(2rem,10vw,30px);
        line-height:1.05;
        margin-bottom:1.5em;
    }

    .book-wrapper, #book {
        width:100%;
        max-width:100%;
        min-width:0;
    }

    .book-controls {
        margin-top:20px; gap:18px;
    }

    .book-controls button {
        width:36px; height:36px; font-size:16px;
    }

    .maquette {
        width:calc(100% + 36px);
        margin-left:-18px;
        padding:3em 18px;
    }

    .website-preview {
        border-radius:12px;
    }

    .browser-bar {
        height:30px; padding:0 10px; gap:5px;
    }

    .browser-bar span {
        width:7px; height:7px;
    }

    .website-screen {
        height:350px;
    }

    .website-preview:hover .website-screen img {
        transform:none;
    }

    footer {
        padding:3em 18px .8em;
    }

    .container_footer {
        flex-direction:column;
        align-items:stretch;
        gap:2.5em;
    }

    .logo_blanc {
        display: none;
    }

    .container_info_footer {
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:2em;
        padding-bottom:1em;
    }

    .container_rs {
        align-items:flex-start;
    }

    .container_rs p {
        margin-bottom:5px;
    }

    .img_mail {
        width:min(100%,280px); height:auto;
    }

    .copyright {
        padding:1em 0 0; font-size:10px; line-height:1.4;
    }
}

@media (max-width:420px) {
    article {
        padding:0 15px;
    }

    .container_header_text {
        padding:15px;
    }

    .container_logo p {
        font-size:9px;
    }

    .lien {
        gap:4px;
    }

    .bouton {
        padding:4px 8px; font-size:9px;
    }

    .bouton span:last-child {
        left:8px;
    }

    h1 {
        font-size:clamp(2.5rem,13vw,3.5rem);
    }

    .detail {
        font-size:11px;
    }

    .cadre_image {
        min-height:190px; border-radius:10px;
    }

    .text_description p {
        font-size:13px; line-height:1.6;
    }

    .gallery-section,.book,.maquette {
        width:calc(100% + 30px);
        margin-left:-15px;
    }

    .gallery-section {
        padding-left:15px; padding-right:15px;
    }

    .book,.maquette {
        padding-left:15px; padding-right:15px;
    }

    .gallery-item,.gallery-moba-item {
        border-radius:10px;
    }

    .website-screen {
        height:280px;
    }

    footer {
        padding-left:15px; padding-right:15px;
    }
}



