@font-face {
    font-family: "AbrilFatface";
    src: url(./fonts/AbrilFatface-Regular.ttf);
}

@font-face {
    font-family: "PlayfairDisplay";
    src: url(./fonts/PlayfairDisplay-VariableFont_wght.ttf);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 100px;

    width: 100%;
    overflow-x: hidden;

    background-color: #848C65;
    box-shadow: inset 0px 0px 30px 15px #546441;
    color: white;
    font-family: "PlayfairDisplay", sans-serif;
}

h2 {
    transform: translateY(-10px);
    font-weight: normal;
    text-align: center;
    text-shadow: 0px 0px 40px #3D3D3D;
    font-size: 3.8rem;
    margin: 0;
}

h3 {
    font-weight: normal;
    text-align: center;
    font-size: 1.6rem;
    margin: 0;
}

h4 {
    font-weight: normal;
    font-size: 1.4rem;
    margin: 0;
    margin-left: 20px;
}

hr {
    margin: 15px 25px 25px 25px; 
    background-color: #8F745D; 
    border-radius: 15px;
    height: 5px;
    border: none;
}

.box {
    background-color: #B6A18F;
    box-shadow: 3px 3px 5px rgba(84, 100, 65, 0.8);
    border-radius: 25px;
    min-height: 492px;
}

/* menu de navigation */

header {
    background-color: #BC966F;
    border-radius: 0 0 25px 25px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-size: 0.9rem;
    
}

header img {
    margin: 10px 0 10px 35px;
    width: 100px;
}

div.nom-prenom-profession {
    list-style: none;
    margin-left: 10px;
    font-size: 1.2rem;
}

li.nom-prenom {
    font-size: 2.1rem;
    font-family: "AbrilFatface", sans-serif;
}

.hamburger {
    display: none;
}

/* NAV */

nav {
    display: flex;
    width: 670px;
    justify-content: space-between;
    align-items: center;
    margin: auto;    
}

.btn-nav-container {
    display: grid;
    grid-template-columns: max-content;
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-nav-container .btn-nav-box {
    grid-row: 2;
    color: white;
}

.btn-nav-container .regle {
    grid-row: 3;
    width: 100%;
    height: 15px;
    background: url("images/autre/regle.svg") repeat-x left/auto 100%;
    border-radius: 3px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-nav-container:hover {
    transform: translateY(-8px) scale(1.3);
}

.btn-nav-container:hover .regle {
    transform: scaleX(1);
    opacity: 1;
}

.btn-nav-container:active{ 
    transform:scale(1.1); 
}

/* vos projets */

.top-page {
    background: url("./images/autre/photo-1.svg") center/cover;
    border-radius: 25px;
    min-height: 180px;
    width: 70%;
    margin: 100px auto 45px auto;
    box-shadow: 3px 3px 5px rgba(84, 100, 65, 0.8); /*Pas sûr*/
    display: flex;
    align-items: center;
    justify-content: center;
}

 /* Présentation */

.presentation-container {
    display: grid;
    grid-template-columns: 35fr 65fr;
    grid-template-rows: 1fr 1fr;
    width: 65%;
    margin: auto;
    gap: 15px;
}

.presentation-box-1 {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    padding: 0 45px;
    gap: 50px;
}

.presentation-box-1 img {
    width: 40%;
}

.presentation-box-1 li{
    list-style: none;
    font-size: 0.9rem;
    margin: 10px 0 10px 0;
}

.presentation-box-2 {
    background: url("./images/autre/photo-3.png") center/cover;
    box-shadow: inset 0px 0px 15px #969696;
    border-radius: 25px;
    min-height: 492px; 
}

.presentation-box-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 70px;
    text-align: center; 
}

.presentation-box-3 ul {
    padding: 0;
}

.presentation-box-3 li{
    list-style: none;
    font-size: 0.9rem;
    margin: 5px;
}

/* Prestations */

.prestations-container {
    display: grid;
    grid-template-columns: 60fr 40fr;
    width: 65%;
    margin: auto;
    gap: 15px;
}

.prestations-image {
    display: flex;
    justify-content: center;
    padding: 45px;
}

.prestations-image img {
    filter: drop-shadow(0px 0px 15px #19282A);
    width: 80%;
}

.prestations-box-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 5px 45px 85px;
}

.prestations-box-1 h4 {
    font-size: 2.4rem;
}

.prestations-box-1 li {
    font-size: 1.2rem;
    list-style: none;
    margin: 5px;
}

.prestations-box-1 ul {
    margin-top: 0;
}

/* Réalisations */

.realisations-container {
    width: 65%;
    margin: auto;
}

/* Carousel */

.carousel {
    display: grid;
    grid-template-columns: 40% 20% 40%;
    align-items: center;
    overflow: hidden;
}

.btn-nav {
    width: 56px;
    height: 56px;
    margin: auto;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    z-index: 10;
    user-select: none;
}

.btn-nav:hover { 
    background: rgba(0,0,0,.85); 
    transform: scale(1.06); 
}

.btn-nav:active{ 
    transform:scale(.98); 
}

.stage {
    position: relative;
    min-height: 492px;
}

.carousel-img {
    position: absolute; 
    top: 50%; 
    left: 50%;
    
    height: 70%;
    width: auto;

    object-fit: cover; 
    object-position: center;
    border-radius: 16px;
    opacity: 0;

    transition:
      transform .65s cubic-bezier(.22,.75,.15,1),
      opacity   .65s cubic-bezier(.22,.75,.15,1),
      height    .65s cubic-bezier(.22,.75,.15,1);
}

/* Positions (on ANIME en changeant uniquement les classes) */

.pos-center {
    height: 80%;
    z-index: 5;
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
    cursor: pointer;
}

.pos-left {
    z-index: 3;
    opacity:.9;
    transform: translate(calc(-50% - 14vw),-50%) scale(.80);
    filter: blur(4px);
}

.pos-right {
    z-index: 3;
    opacity:.9;
    transform: translate(calc(-50% + 14vw),-50%) scale(.80);
    filter: blur(4px);
}

.pos-off-left {
    z-index: 1;
    opacity:0;
    transform: translate(calc(-50% - 28vw),-50%) scale(.70);
    filter: blur(4px);
}

.pos-off-right {
    z-index: 1;
    opacity:0;
    transform: translate(calc(-50% + 28vw),-50%) scale(.70);
    filter: blur(4px);
}

/* Lightbox */

.lightbox {
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,.9);
    display: none; 
    align-items: center; 
    justify-content: center;
    z-index: 1000;
}

.lightbox.open { 
    display: flex; 
}

.lb-img {
    height: 90%;
    width: auto;
}

.lb-close {
    position: absolute; 
    top: 22px; 
    right: 28px;
    width: 46px; 
    height: 46px; 
    border: none; 
    border-radius: 50%;
    background: rgba(0,0,0,.6); 
    color: #fff; 
    font-size: 28px; 
    cursor: pointer;
    transition: background 200ms;
}

.lb-close:hover { 
    background: rgba(255, 0, 0, 0.85); 
}

/* Footer */

.footer-box-1 {
    width: 15%;
    margin: 150px auto 0 auto;
    display: flex;
    justify-content: center;
    background-color: #546441;
    border-radius: 25px 25px 0 0;
    font-size: 2.5rem;
}

.footer-box-2 {
    background-color: #546441;
    min-height: 110px;
    border-radius: 25px 25px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-box-2 ul {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 0;
    padding: 15px 0 0 0;
    font-size: 2rem;
    list-style: none;
}

.footer-box-2 a {
    text-decoration: none;
    color: white;
}

.footer-box-3 {
    display: flex;
    justify-content: space-between;
    background-color: #546441;
    min-height: 30px;
    padding: 0 15px 15px 15px;
}

/* Media */

@media screen and (max-width: 1100px) {

    h2 {
        transform: translateY(-2px);
        font-size: 1.2rem;
    }

    h3 {
        font-weight: normal;
        text-align: center;
        font-size: 1.1rem;
        margin: 0;
    }

    h4 {
        font-size: 1rem;
    }

    hr {
        margin: 15px 25px 10px 25px; 
    }

    .box {
        box-shadow: 3px 2px 5px rgba(84, 100, 65, 0.8);
        border-radius: 15px;
        min-height: 10px;
    }

    /* menu de navigation */

    header {
        border-radius: 0 0 15px 15px;
    }

    header img {
        margin: 5px 0 5px 10px;
        width: 50px;
    }

    div.nom-prenom-profession {
        margin-left: 5px;
        font-size: 0.5rem;
    }

    li.nom-prenom {
        font-size: 1.2rem;
    }

    /* NAV */

    nav {
        width: 100px;
        height: auto;
        display: flex;
        flex-direction: column;
        position: absolute;
        align-items: flex-end;
        justify-content: start;
        top: 80%;
        right: 0;
        padding: 20px;
        margin: 0;
        gap: 15px;
        background: #BC966F;
        transform: translate(100%);
        border-radius: 15px 0 0 15px;
    }

    .btn-nav-container .regle {
        display: none;
    }

    .btn-nav-container {
        display: flex;
        text-decoration: none;
        transition: transform 0.3s ease;
    }

    .open {
        transform: translate(0%);
    }

    .btn-nav-container:hover {
        transform: translateY(0) scale(1);
    }

    .btn-nav-container:hover .regle {
        transform: scaleX(1);
        opacity: 1;
    }

    .btn-nav-container:active{ 
        transform:scale(0.8); 
    }

    /* Hamburger */

    .hamburger {
        width: 25px;
        height: 25px;
        cursor: pointer;
        border: none;
        display: flex;
        background: #848C65;
        align-items: center;
        justify-content: center;
        position: relative;
        border-radius: 3px;
        margin: 0 25px 0 auto;
    }

    .hamburger span {
        display: block;
        width: 65%;
        height: 2px;
        background: #323d25;
        position: absolute;
        pointer-events: none;
        transition: opacity 0.3s 0.15s ease-out;
    }

    .hamburger span:nth-child(1),
    .hamburger span:nth-child(3) {
        transition: transform 0.3s ease-out;
    }

    .hamburger span:nth-child(1) {
        transform: translateY(7px);
    }
    
    .hamburger span:nth-child(3) {
        transform: translateY(-7px);
    }

    .hamburger.open span:nth-child(1) {
        transform: translate(0) rotate(135deg);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
        transition: opacity 0s ease-out;
    }
    .hamburger.open span:nth-child(3) {
        transform: translate(0) rotate(-135deg);
    }

    /* vos projets */

    .top-page {
        min-height: 60px;
        width: 85%;
        margin: 15px auto 25px auto;
        box-shadow: 3px 2px 5px rgba(84, 100, 65, 0.8); /*Pas sûr*/
        border-radius: 15px;
    }

    /* Présentation */

    .presentation-container {
        width: 75%;
        grid-template-columns: 1fr;
        grid-template-rows: auto 100px auto;
        justify-content: center;
        gap: 10px;
    }

    .presentation-box-1 {
        display: flex;
        flex-direction: column;
        grid-column: 1 / 1;
        justify-content: center;
        padding: 15px;
        gap: 10px;
    }

    .presentation-box-1 img {
        width: 50%;
    }

    .presentation-box-1 li{
        list-style: none;
        font-size: 0.7rem;
        margin: 10px 0 10px 0;
    }

    .presentation-box-2 {
        border-radius: 15px;
        min-height: 0;
    }

    .presentation-box-3 {
        padding: 15px;
        margin-bottom: 25px;
    }

    .presentation-box-3 ul {
        margin: 10px;
    }

    .presentation-box-3 li{
        font-size: 0.7rem;
        margin: 3px;
    }

    /* Prestations */

    .prestations-container {
        width: 75%;
        grid-template-columns: 1fr;
        grid-row: auto 800px;
        justify-content: center;
        gap: 10px;
    }

    .prestations-image {
        display: flex;
        justify-content: center;
        padding: 15px;
    }

    .prestations-box-1 {
        padding: 15px 15px 15px 35px;
        margin-bottom: 25px;
    }

    .prestations-box-1 h4 {
        font-size: 1.7rem;
    }

    .prestations-box-1 li {
        font-size: 1rem;
        margin: 3px;
    }

    /* Réalisations */

    .realisations-container {
        width: 75%;
    }

    /* Carousel */

    .carousel {
        grid-template-columns: 30% 40% 30%;
    }

    .btn-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .btn-nav:hover { 
        background: rgba(0,0,0,.55);
        transform: scale(1); 
    }

    .btn-nav:active{ 
        background: rgba(0,0,0,.85); 
        transform:scale(.95); 
    }

    .stage {
        position: relative;
        min-height: 250px;
    }

    .carousel-img {
        border-radius: 8px;
    }

    /* Lightbox */

    .lb-img {
        height: auto;
        width: 80%;
    }

    /* Footer */

    .footer-box-1 {
        width: 30%;
        margin: 70px auto 0 auto;
        border-radius: 15px 15px 0 0;
        font-size: 1.4rem;
    }

    .footer-box-2 {
        min-height: 60px;
        background-color: #546441;
        border-radius: 15px 15px 0 0;
    }

    .footer-box-2 img {
        width: 25px;
    }

    .footer-box-2 ul {
        padding: 0;
        font-size: 0.7rem;
    }

    .footer-box-3 {
        min-height: 10px;
        padding: 0 10px 10px 10px;
        font-size: 0.4rem;
    }
}