@import url("style.css");


*, ::after, ::before, h1, h2, h3, ul, li{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color:#f1f1f1;
    font-family: Arial, Helvetica, sans-serif;
    gap:50px;
}

/* header & navbar */
header { 
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    border-bottom: solid 2px #c5c5c5;
    
    width: 100%;
    height: 70px;
    padding: 0 30px 0 0;
    margin: 0;
    z-index: 2;
}
.logo {
    color: grey;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 4px;
    font-size: clamp(24px, 2.5vw, 40px);
    padding: 0 clamp(10px, 5vw, 30px);
}
.navlinks{
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 40px;
}
.navlinks li{
    padding: 0;
    font-size: clamp(14px, 1.6vw, 20px);
}
.navlinks a{
    color: grey;
    font-family: Montserrat, Helvetica, sans-serif;
}
.navlinks li[aria-current="page"] a{
    color: orange;
}
.navlinks li:not([aria-current="page"]) a:hover{
    border-bottom: 2px solid orange ;
}
.navlinks a.fb:hover{
    color: rgb(27, 27, 252);
}
.navlinks a.insta:hover{
    color:rgb(125, 18, 93);
}
.navlinks a.planity:hover{
    color:rgb(146, 44, 44);
}
.navlinks i{
    font-size: 32px;
}
.icon-menu {
    display: none;
    margin: 0 clamp(10px, 5vw, 30px);
}

@media (width<1200px) {
    header{
        padding: 0px;
    }
    nav {
        height: 70px;
        position: relative;
        display: flex;
        justify-content: right;
        align-items: center;
    }
    .navlinks {
        flex-direction: column;
        position: absolute;
        top: 70px;
        width: clamp(200px, 50vw, 240px);
        background-color: #fafafa;        
        border-left: solid 1px #c5c5c6;
        border-bottom: solid 1px #c5c5c6;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        z-index: 20;
        gap:0;
    }
    .navlinks.open {
        max-height: 100vh;
    }
    .navlinks li,.navlinks div{
        margin: clamp(10px, 2vw, 20px) 0;       
    }
    .navlinks i{
        margin:0 10px;
    }

    /* icon-menu */
    .icon-menu {width: 30px;height: 30px;cursor: pointer;border-radius: 5px;border: none;background-color: #fafafa;position: relative;display: block;}
    .icon-menu span {position: absolute;width: 80%;height: 10%;background: #333;
    border-radius: 10px;left: 50%;translate: -50% -50%;pointer-events: none;}
    .icon-menu span:nth-child(1){top: 20%;}
    .icon-menu span:nth-child(2){top: 50%; transition: opacity 0.3s 0.3s ease-in-out;}
    .icon-menu span:nth-child(3){top: 80%;}
    .icon-menu span:nth-child(1), span:nth-child(2), span:nth-child(3)
    {transform: rotate(0deg);transition: transform 0.3s ease-in-out, top 0.3s 0.3s ease-in-out;}
    .icon-menu.open span:nth-child(1){transform: rotate(45deg);}
    .icon-menu.open span:nth-child(3){transform: rotate(-45deg);}
    .icon-menu.open span:nth-child(1),.icon-menu.open span:nth-child(3)
    {top: 50%; transition:top 0.3s ease-in-out, transform 0.3s 0.3s ease-in-out;}
    .icon-menu.open span:nth-child(2){opacity: 0;transition: opacity 0.3s ease-in-out;}
}
@media (width<600px) {
    .navlinks {
        width: 100vw;
        border-left: none;
    }
}

section{
   width:100%;
}

.storefront{
    width: 100%;
    height: clamp(300px, 50vw, 600px);
}

.storefront img{
    width: 100%;
    height: 100%;
}

.infobar{
    background-color: #fafafa;
    border: 2px solid grey;
    border-radius:10px;
    box-shadow: 5px 5px 5px 5px rgba(27, 26, 26, 0.2);
    top: -10px;
    font-size: clamp(16px, 1.5vw, 20px);
}
@media(width<1000px){
    .infobar{
        flex-direction: column;
        min-width: 0vw;
        max-width: 70vw;
        top: -60px;
    }
}

.student{
    background-color: orange;
    color: white;
    font-weight: bold;
    font-size: clamp(24px, 4vw, 36px);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    width: 100%;
    text-align: center;
    padding: clamp(10px, 2vw, 20px) 0;
}


.today {
    font-style: italic;
}

h1{
    color: chocolate;
    font-family: Arial, Helvetica, sans-serif;  
    font-size: clamp(24px, 4vw, 32px);
    text-align: center;
}
h2{
    color: chocolate;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 3.5vw, 24px);
    text-align: center;
}
h3{
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 3vw, 24px);
    text-align: left;
}
h4{
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(16px, 2.5vw, 16px);
}
p{
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(12px, 2.2vw, 16px);
    line-height: clamp(16px, 3vw, 24px);
    width: 100%;
}

.container{
    background-color: #fafafa;
    border-radius:10px;
    box-shadow: 5px 5px 5px 5px rgba(152, 149, 149, 0.2);
}

.container img{
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

iframe{
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;;
}




footer{
    text-align: center;
    padding: 50px 0 20px 0;
    width: 100%;
}



/* Page Tarif */

.tarif li{
    border-top: #444 1px solid;
    min-height: clamp(50px,10vw,70px);
}

.tarif li:nth-child(1){
    border-top: none; 
}

.tarif li div:nth-child(1){
    max-width: 60%
}
.tarif li div:nth-child(2) p{
    text-align: right;
}

.produit{
    border: 2px solid #555;
    width: clamp(150px,24vw,200px);
    aspect-ratio: 2/3;
    text-align: center;
    background-color: white;
}
.produit > div:nth-child(1){
    padding: 10px;
    height: 30%;
}
.produit > div:nth-child(2){
    padding: 0px 40px;
    max-height: 50%;
}
.produit > div:nth-child(3){
    background-color: #555;
    color: white;
    text-align: right;
    font-weight: bold;
    font-style: italic;
    padding: 0 20px;
    height: 8%;
}
.produit img{
    max-width:100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


.gd-fit-300 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gd-fill-300 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 800px) {
  .gd-fit-300 {
    grid-template-columns: repeat(auto-fit, minmax(calc(300px - 100px), 1fr));
  }
  .gd-fill-300 {
    grid-template-columns: repeat(auto-fill, minmax(calc(300px - 100px), 1fr));
  }
}
@media (max-width: 500px) {
  .gd-fit-300 {
    grid-template-columns: repeat(auto-fit, minmax(calc(300px - 150px), 1fr));
  }
  .gd-fill-300 {
    grid-template-columns: repeat(auto-fill, minmax(calc(300px - 150px), 1fr));
  }
}