@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: #111111;
    padding: 0;
    color: white;
}

header {
    background: linear-gradient(to right, #111f3b, #725251);
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logopng {
    width: 80px;
    height: auto;
    margin-right: 1rem;
}

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 3rem;
    }

    .desktop-nav a {
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        padding: 0.5rem 0;
    }

    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .desktop-nav a:hover {
        color: rgba(255, 255, 255, 0.9);
    }

    .desktop-nav a:hover::after {
        width: 100%;
    }
}

.contact-button {
    display: none;
    clip-path: polygon(100% 0%, 76.2% 5.8%, 97.3% 7.3%, 80.8% 100%, 59.8% 100%, 0% 100%, 31.9% 95.3%, 3.7% 90.5%, 25% 0%);
}

@media (min-width: 768px) {
    .contact-button {
        display: inline-block;
        background-color: white;
        color: #1f3b73;
        text-decoration: none;
        padding: 0.8rem 2.5rem;
        font-weight: 600;
        transform: skew(-12deg);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
    }

    .contact-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: #362b2b;
        transition: all 0.3s ease;
        z-index: 1;
    }

    .contact-button:hover::before {
        left: 0;
    }

    .contact-button span {
        display: inline-block;
        transform: skew(12deg);
        position: relative;
        z-index: 2;
    }

    .contact-button:hover {
        color: white;
    }
}

#mobileMenu {
    display: none;
}

#mobileMenu.show {
    display: block;
}

.menu-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    display: block;
    z-index: 1001;
}

.menu-button:hover {
    transform: scale(1.1);
}

.menu-button svg {
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .menu-button {
        display: none;
    }
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1f3b73;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.mobile-menu.show {
    max-height: 400px;
    padding: 1rem 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    opacity: 0;
}

.mobile-menu.show a {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 2.5rem;
}

.hidden {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visible {
    visibility: visible;
    opacity: 1;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}


/* carés */
.hero {
    height: 100vh;
}

.care1 {
    height: 20%;
    width: 40%;
    position: absolute;
    top: 30%;
    left: 15%;
    background-color: #725251;
    border-radius: 30px;
    z-index: 2;
}

.care2 {
    height: 20%;
    width: 50%;
    position: absolute;
    top: 40%;
    left: 40%;
    background-color: #A67C7C;
    border-radius: 30px;
    z-index: 1;
}

.care3 {
    height: 20%;
    width: 40%;
    position: absolute;
    top: 62%;
    left: 30%;
    background-color: #493433;
    border-radius: 30px;
    z-index: 1;
}

/* h1 */
.titre {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 999;
}

.titre h1 {
    font-size: 250px;
    font-family: "Permanent Marker", cursive;
}


/* Pardie dédier au style des template qu'on vas metre dans la page */
.templatecontener {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10%;
}

.template-preview {
    height: 30vh;
    width: 20%;
    border-top-left-radius: 10%;
    border-top-right-radius: 10%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    background-color: #ff0000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.template-preview h1 {
    margin: 5%;
}

.template-preview p {
    margin: 5%;
}

/* Responsive pour mobile et tablette */
@media (max-width: 1200px) {
    .header-container, main {
        max-width: 100%;
        padding: 1rem;
    }
    .titre h1 {
        font-size: 12vw;
    }
    .templatecontener {
        padding: 5%;
    }
    .template-preview {
        width: 40%;
        height: 25vh;
    }
}

@media (max-width: 900px) {
    .care1, .care2, .care3 {
        width: 60vw;
        left: 10vw;
        height: 15vh;
        border-radius: 20px;
    }
    .care2 {
        left: 25vw;
        width: 65vw;
    }
    .care3 {
        left: 20vw;
        width: 60vw;
    }
    .titre h1 {
        font-size: 10vw;
    }
    .template-preview {
        width: 80%;
        height: 20vh;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
    }
    .logopng {
        width: 50px;
    }
    .titre h1 {
        font-size: 2.5rem;
    }
    .care1, .care2, .care3 {
        width: 80vw;
        left: 5vw;
        height: 10vh;
        border-radius: 10px;
    }
    .templatecontener {
        flex-direction: column;
        padding: 2%;
    }
    .template-preview {
        width: 95%;
        height: 15vh;
        margin-bottom: 2rem;
    }
    main {
        padding: 1rem 0.5rem;
    }
}
