@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');
@font-face {
    font-family: Estrella;
    src: url("/assets/fonts/estrella.otf") format("opentype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    text-decoration: none;
    cursor: none;
}

/* Global */
body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    color: #000000;
}

body{
    background-image: url("/assets/main_bg.webp");
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    cursor: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 40px;
}

h1 {
    font-weight: 800;
    font-size: 6rem;
    text-align: center;
}

a{
    color: black;
}

.cursor-dot{
    width: 8px;
    height: 8px;
    background-color: rgb(0, 0, 0);
}

.cursor-outline{
    width: 45px;
    height: 45px;
    border: 3px solid hsla(0, 0%, 0%, 0.5);
}

.cursor-dot,
.cursor-outline{
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

footer {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

footer p {
    font-weight: 500;
    font-size: 1rem; 
}

footer a{
    cursor: none;
}

.menu-icon {
    cursor: none;
    width: 30px;
    height: 25px;
    position: relative;
    margin-right: 25px;
}

.burger span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #000000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.cross span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.cross span:first-child {
    transform: rotate(45deg) translateY(-10%);
}

.cross span:last-child {
    transform: rotate(-45deg) translateY(-10%);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column; 
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    padding-left: 40px;
    font-size: 6rem;
}

.menu-list li {
    display: block;
}

.menu-list li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 700;
    transition: color 0.3s;
}

.menu-list li a:hover {
    color: rgba(0, 0, 0, 0.9);
    cursor: none;
    text-shadow: 
        1px 0 #ffffff, 
        -1px 0 #ffffff, 
        0 1px #ffffff, 
        0 -1px #ffffff,
        1px 1px #ffffff, 
        1px -1px #ffffff, 
        -1px 1px #ffffff, 
        -1px -1px #ffffff;
}

.home-icon {
    display: flex;
    justify-content: center;
    align-items: center; 
    width: 100px; 
    height: 100px; 
    margin-top: 40px;
    z-index: 1;
}

.menu-open .home-icon {
    opacity: 0;
    pointer-events: none;
}

.home-icon a {
    display: block;
}

.home-icon img {
    width: 80px;
    height: auto;
    cursor: none;
}

/* Page accueil */
.swann {
    word-spacing: 400px;
    font-family: Estrella;
    font-size: 10rem;
    text-align: center;
    white-space: nowrap; 
    margin-top: 45px;
    letter-spacing: 5px;
}

.accueil-main{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

/* Page projets */
.projets{
    flex-direction: column;
}

.projets-body{
    height: 100%;
    overflow-y: scroll;
    background-image: url("/assets/white_bg.webp");
}

.projets-title h1{
    font-weight: 800;
    font-size: 10rem;
    text-align: center;
    font-family: Estrella;
    letter-spacing: 5px;
}

.projets-title {
    padding: 64px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.projets-main{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    padding-top: 30px;
    margin-bottom: 25px;
}

.gallery .item {
    position: relative;
    height: 200px;
    width: 90%;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color 250ms ease-out;
    border-radius: 10px;
    padding: 20px;
    border: 3px black solid;
}

.gallery .item:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.item .cover {
    width: 250px;
    max-width: 35%;
    min-width: 200px;
    object-fit: cover;
    border-radius: 5px;
    max-height: 90%;
    aspect-ratio: 16/10;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 10px;
    flex-grow: 1; 
}

h2.info, .date {
    margin: 0;
    color: black;
    font-weight: 700;
    text-align: left;
}

h2.info {
    font-size: 2rem;
}

.date {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Page single projet */
.back-icon {
    display: flex;
    justify-content: center;
    align-items: center; 
    width: 60px; 
    height: auto; 
    margin-top: 25px;
}

.back-icon a {
    display: block;
}

.back-icon img {
    width: 40px;
    height: auto;
    cursor: none;
}

.projet-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.image-container {
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; 
    width: 100%;
    max-width: 100%;
    padding: 10px;
    gap: 20px;
}

.image-container img {
    width: auto;
    height: auto;
    margin: auto;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hoverimg:hover {
    transform: scale(1.05);
    transition: .3s;
}

.image-container img.cover,
.image-container video.cover,
.video-container {
    width: 75%;
    margin: auto;
    border-radius: 8px;
}

.video-container {
    position: relative;
    padding-top: 56.25%; 
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    border: 0;
    border-radius: 8px;
}

.single-category{
    font-weight: 400;
    font-size: 1.2rem;
}

.projet-title h1{
    font-weight: 900;
    font-size: 4rem;
    text-align: center;
}

.projet-title {
    padding: 64px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

.description{
    font-weight: 400;
    font-size: 1.2rem;
    text-align: left;
}

/* Page Mentions légales */
.mentions-body{
    height: 100%;
    overflow-y: scroll;
    background-image: url("/assets/white_bg.webp");
}

.mentions-title{
    padding: 64px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mentions-title h1{
    font-weight: 900;
    font-size: 5rem;
}

.mentions-content{
    width: 70%;
}

.mentions-content h2{
    margin-bottom: 16px;
}

.mentions-content p{
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    body {
        background-position: center; 
        background-size: cover;
        padding: 0 10px; 
        overflow: auto; 
    }

    main {
        padding: 10px;
        gap: 20px; 
    }

    h1 {
        font-size: 3rem;
        text-align: left; 
        margin-bottom: 20px;
    }

    header {
        height: 50px; 
        padding: 0 10px;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    footer {
        height: 30px;
        margin-bottom: 15px;
    }

    footer p {
        font-size: 0.9rem;
    }

    .cursor-dot {
        display: none;
    }

    .cursor-outline {
        display: none;
    }

    .menu-icon {
        width: 25px;
        height: 20px;
        margin-right: 0;
    }

    .burger span {
        height: 3px; 
        margin: 4px 0;
    }

    .menu-list {
        gap: 20px; 
        padding-left: 0; 
        font-size: 3rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .menu-list li {
        width: 100%;
        text-align: center;
    }

    .menu-list li a {
        font-size: 2rem; 
        display: block;
        width: 100%;
    }

    .menu-overlay {
        align-items: center; 
    }

    .menu-list li a:hover {
        color: #FFFFFF;
        text-shadow: none;
    }

    .projet-detail {
        padding: 10px; 
        gap: 20px; 
    }

    .home-icon {
        width: 60px;
        height: 60px;
        margin-top: 20px;
    }

    .home-icon img {
        width: 50px;
        height: auto;
    }

    .swann {
        word-spacing: 1px;
        font-size: 4.5rem;
        margin-top: -219px;
    }

    .accueil-main {
        padding: 10px;
        height: auto;
        justify-content: flex-start;
    }
    .projets-title h1 {
        font-size: 4rem;
        margin-top: 25px;
    }

    .projets-title {
        padding: 32px 0 8px;
        gap: 8px;
    }

    .gallery {
        width: 90%;
        padding-top: 15px;
        margin-bottom: 15px;
    }

    .gallery .item {
        height: auto;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 15px;
    }

    .item .cover {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 300px;
    }

    h2.info {
        font-size: 1.5rem;
    }

    .date {
        font-size: 1rem;
    }

    .projets-main {
        padding: 0 10px;
    }
    .back-icon {
        width: 40px;
        margin-top: 15px;
    }

    .back-icon img {
        width: 30px;
    }

    .projet-detail {
        max-width: 100%;
        padding: 15px;
    }

    .projet-title h1 {
        font-size: 2.5rem;
    }

    .projet-title {
        padding: 32px 0 8px;
        gap: 8px;
    }

    .description {
        font-size: 1rem;
        text-align: center;
    }

    .single-category {
        font-size: 0.9rem;
        margin-top: 8px;
    }

    .image-container {
        padding: 5px;
        gap: 10px;
    }

    .image-container img.cover,
    .image-container video.cover,
    .video-container { 
        width: 100%;
    }

    .video-container iframe {
        height: 100%;
    }

    .mentions-title {
        padding: 32px 0 8px;
        gap: 8px;
    }

    .mentions-title h1 {
        font-size: 3rem;
        text-align: center;
    }

    .mentions-content {
        width: 90%;
    }

    .mentions-content h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .mentions-content p {
        font-size: 1rem;
        margin-bottom: 20px;
        text-align: justify;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    body {
        background-position: center; 
        background-size: cover;
        padding: 0 20px; 
        overflow: auto; 
    }

    main {
        padding: 20px;
        gap: 30px; 
    }

    h1 {
        font-size: 4rem;
        text-align: left; 
        margin-bottom: 30px;
    }

    header {
        height: 60px; 
        padding: 0 20px;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    footer {
        height: 40px;
        margin-bottom: 20px;
    }

    footer p {
        font-size: 1rem;
    }

    .cursor-dot {
        display: none;
    }

    .cursor-outline {
        display: none;
    }

    .menu-icon {
        width: 30px;
        height: 25px;
        margin-right: 0;
    }

    .burger span {
        height: 4px; 
        margin: 5px 0;
    }

    .menu-list {
        gap: 20px; 
        padding-left: 0; 
        font-size: 2.5rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .menu-list li {
        width: 100%;
        text-align: center;
    }

    .menu-list li a {
        font-size: 3.5rem; 
        display: block;
        width: 100%;
    }

    .menu-overlay {
        align-items: center; 
    }

    .menu-list li a:hover {
        color: #FFFFFF;
        text-shadow: none;
    }

    .home-icon {
        width: 80px;
        height: 80px;
        margin-top: 30px;
    }

    .home-icon img {
        width: 60px;
        height: auto;
    }

    .swann {
        word-spacing: 180px; 
        font-size: 6rem;
    }

    .projets-title h1 {
        font-size: 5rem;
        margin-top: 30px;
    }

    .projets-title {
        padding: 32px 0 8px;
        gap: 8px;
    }

    .gallery {
        width: 95%;
        padding-top: 20px;
        margin-bottom: 20px;
    }

    .gallery .item {
        width: 100%;
        padding: 20px;
    }

    h2.info {
        font-size: 1.8rem;
    }

    .date {
        font-size: 1.2rem;
    }

    .projet-title h1 {
        font-size: 3rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .single-category {
        font-size: 1rem;
    }

    .image-container {
        padding: 10px;
    }

    .image-container img.cover,
    .image-container video.cover,
    .video-container { 
        width: 100%;
    }

    .video-container iframe {
        height: 100%;
    }

    .mentions-title {
        padding: 32px 0 8px;
        gap: 8px;
    }

    .mentions-title h1 {
        font-size: 4rem;
        text-align: center;
    }

    .mentions-content {
        width: 95%;
    }

    .mentions-content h2 {
        font-size: 1.8rem;
    }

    .mentions-content p {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body {
        background-position: center; 
        background-size: cover;
        padding: 0 30px; 
        overflow: auto; 
    }

    main {
        padding: 20px;
        gap: 30px; 
    }

    h1 {
        font-size: 5rem;
        text-align: left; 
        margin-bottom: 30px;
    }

    header {
        height: 60px; 
        padding: 0 20px;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    footer {
        height: 40px;
        margin-bottom: 20px;
    }

    footer p {
        font-size: 1rem;
    }

    .cursor-dot {
        display: none;
    }

    .cursor-outline {
        display: none;
    }

    .menu-icon {
        width: 30px;
        height: 25px;
        margin-right: 5px;
    }

    .burger span {
        height: 4px; 
        margin: 5px 0;
    }

    .menu-list {
        gap: 20px; 
        padding-left: 0; 
        font-size: 2.5rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .menu-list li {
        width: 100%;
        text-align: center;
    }

    .menu-list li a {
        font-size: 3rem; 
        display: block;
        width: 100%;
    }

    .menu-overlay {
        align-items: center; 
    }

    .menu-list li a:hover {
        color: #FFFFFF;
        text-shadow: none;
    }

    .home-icon {
        width: 80px;
        height: 80px;
        margin-top: 30px;
    }

    .home-icon img {
        width: 60px;
        height: auto;
    }

    .swann {
        word-spacing: 300px; 
        font-size: 7rem;
        margin-top: 20px;
    }

    .projets-title h1 {
        font-size: 8rem;
        margin-top: 30px;
    }

    .projets-title {
        padding: 32px 0 8px;
        gap: 8px;
    }

    .gallery {
        width: 90%;
        padding-top: 20px;
        margin-bottom: 20px;
    }

    .gallery .item {
        width: 100%;
        padding: 20px;
    }

    h2.info {
        font-size: 1.8rem;
    }

    .date {
        font-size: 1.2rem;
    }

    .projet-title h1 {
        font-size: 3rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .single-category {
        font-size: 1rem;
    }

    .image-container {
        padding: 10px;
    }

    .image-container img.cover,
    .image-container video.cover,
    .video-container { 
        width: 80%;
    }

    .video-container iframe {
        height: 80%;
    }

    .mentions-title {
        padding: 32px 0 8px;
        gap: 8px;
    }

    .mentions-title h1 {
        font-size: 4rem;
        text-align: center;
    }

    .mentions-content {
        width: 95%;
    }

    .mentions-content h2 {
        font-size: 1.8rem;
    }

    .mentions-content p {
        font-size: 1.1rem;
    }
}