:root {
    --menu-width: 10%;
    --header-height: 10vh;
}

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

html{
    scroll-behavior: smooth;
}

.back-to-top {
    position: fixed;
    bottom: 3vh;
    right: 1rem;
    width: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-to-top-label {
    background-color: rgb(100, 100, 100);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    padding: 3px 3px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    margin-bottom: 4px;
}

.back-to-top img {
    width: 5vw;
    height: auto;
}

.back-to-top:hover .back-to-top-label {
    opacity: 1;
    transform: translateY(0);
}

body {
    cursor: url("Logo_Star_Cursor.png") 16 16, auto;
    overflow-x: hidden;
    width: 100%;
}

header{
    width: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    padding: 0.2rem 0;
    justify-content: center;
    align-items: center;
    height: var(--header-height);
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    position: relative;
    position: sticky;
    top: 0;
}

.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo img{
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    image-rendering: crisp-edges;
}

a{
    color: rgb(100, 100, 100);
    text-decoration: none;
    display: block;
    width: auto;
    margin: 5px 10vw;
    font-size: clamp(1rem, 1.3vw, 1.5rem);
    font-family: Arial, Helvetica, sans-serif;
    transition: ease-in-out 0.15s;
}

.contact a{
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
    width: auto;
    font-size: clamp(1rem, 1.3vw, 1.5rem);
    font-family: Arial, Helvetica, sans-serif;
    margin: 3vh 0vw;
    text-align: center;
}

p{
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 30px 0px;
    font-size: clamp(1rem, 1.3vw, 1.5rem);
    font-family: Arial, Helvetica, sans-serif;
}

p2{
    color: rgb(114, 114, 114);
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 30px 0px;
    font-size: clamp(1rem, 1.3vw, 1.5rem);
    font-family: Arial, Helvetica, sans-serif;
}

.contact p{
    padding-left: 5vw;
}

h1{
    margin-bottom: 1vh;
    font-family: "Oswald", sans-serif;
    font-style: normal;
    font-size: clamp(3rem, 4vw, 4rem);
    text-align: center;
}

h2{
    margin-bottom: 1vh;
    font-family: "Oswald", sans-serif;
    font-style: normal;
    font-size: clamp(2.5rem, 3vw, 3.5rem);
    text-align: center;
}

h3{
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 1vh;
    font-family: "Oswald", sans-serif;
    font-style: normal;
}

a:hover{
    color: rgb(175, 84, 84);
}

.menu{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0;
    position: sticky;
    top: var(--header-height);
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
}

/* =========================================================
   mosaique de photos
   =========================================================
*/
.mosaique{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: rgb(255, 201, 201);
}

.mosaic-img{
    width: 100%;
    height: 190px;
    object-fit: cover;
    opacity: 0;
}
/* =========================================================
   mosaique de photos
   =========================================================
*/

.projets{
    width: auto;
    margin-top: 8vh;
    display: flex;
    flex-direction: column; /* or row if you want them side by side */
    gap: 2rem;
    margin-left: 5vw;
    margin-right: 10vw;
}

.frame{
    display: flex;
    margin-left: 5vw;
    flex-direction: column;
    width: fit-content;
    width: 98%;
}

.frame-content{
    display: flex;
    flex-direction: row;
    gap: 5vw;
}

.frame-content img{
    width: 30vw;
    height: auto;
    display: block;
    flex-shrink: 0;
    align-self: flex-start;
}

.frame-text{
    padding: 1rem;
    padding-right: 2vw;
}

.moi{
    padding-top: 10vh;
}

.moi-content{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0 10vw;
}

.moi-sub-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2vh 5vw;
}

.moi-sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moi-sub-item p{
    background-color: rgb(255, 201, 201);
    padding: 1vh 1.5vh;
    border-radius: 1.5vh;
}

.moi-sub-item h3 {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 2vh;
}

.moi-sub-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5vw;
}

.moi-sub-list p {
    margin: 0;
    width: auto !important;
}
.moi img{
    width: 300px;
    flex-shrink: 0;
}

.contact{
    padding-top: 10vh;
}

.footer{
    margin-top: 10vh;
}

.footer p{
    text-align: center;
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 30px 0px;
    font-size: clamp(0.5rem, 1vw, 1.5rem);
    font-family: Arial, Helvetica, sans-serif;
}

.lanaudiere-mobile-video {
    display: none;
}

/* =========================================================
   8) MEDIA QUERY (adaptation mobile)
   =========================================================
   max-width:1200px = à partir de 1200px et moins
*/
@media (max-width:1200px){
    a{
        font-size: clamp(0.8rem, 1.5vw, 1rem);
        white-space: nowrap;
    }

   p{
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 30px 0px;
    margin-right: 5vw;
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    font-family: Arial, Helvetica, sans-serif;
    }

    p2{
    color: rgb(114, 114, 114);
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 30px 0px;
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    font-family: Arial, Helvetica, sans-serif;
    }

    h1{
        font-size: clamp(2.5rem, 3vw, 3rem);
    }

    h2{
    margin-bottom: 3vh;
    }

    h3{
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1vh;
    }

    .projets{
        padding-left: 0vw;
    }
    
    .moi{
        padding-left: 0vw;
    }

    .back-to-top{
    position: fixed;
    bottom: 0vh;  /* lower value = closer to bottom edge */
    right: 1rem;
    width: 40px;
    z-index: 9999;
    display: none;
    }

    .back-to-top img {
    width: 10vw;
    height: auto;
    }

    .mosaique{
        grid-template-columns: repeat(3, 1fr);
    }

    .mosaic-img:nth-child(n+10){
        display: none;
    }

    .lanaudiere-video {
    display: none;
    }

    .lanaudiere-mobile-video {
    display: block;
    width: 30vw;
    height: 250px;
    margin-top: 0.5rem;
    }

    .mosaic-img{
        height: 25vh;
    }

    .moi-sub-list{
        margin: 0 5vw;
    }

    .moi img{
        width: 30vw;
    }

    .frame-content {
    flex-direction: column;
    }

    .frame-content > img,
    .frame-content > div:first-child {
    order: 2;
    width: 60% !important;  /* change this value to whatever size you want */
    align-self: center;     /* keeps it centered */
    }

    .frame-text {
    order: 1;
    padding-right: 5vw;
    }

    /* horizontal images — adjust % to taste */
    .frame:nth-child(2) .frame-content > img,
    .frame:nth-child(3) .frame-content > img,
    .frame:nth-child(4) .frame-content > img,
    .frame:nth-child(5) .frame-content > img,
    .frame:nth-child(6) .frame-content > img,
    .frame:nth-child(8) .frame-content > img { /* nth-child(8) because h2 is child 1 */
    width: 80% !important;
    }

    /* vertical image — Lanaudière */
    .frame:nth-child(7) .frame-content > div:first-child {
    display: flex;
    flex-direction: row;
    width: 100% !important;
    }

    .lanaudiere-mobile-video {
    display: block !important;
    width: 50% !important;
    margin-top: 2vh;
    padding-right: 5vw;
    }

    .lanaudiere-media {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    }

    .lanaudiere-media img {
    width: 50% !important;
    height: 400px;
    object-fit: contain;
    }

    .frame:nth-child(7) .frame-content > div:first-child img,
    .frame:nth-child(7) .frame-content > div:first-child iframe {
    width: 50% !important;
    }

    .frame:nth-child(8) .frame-content > div:first-child img {
    width: 100% !important;
    }
}