/*---------------------*/
/* ------GENERAL------ */
/*---------------------*/

:root {
    --jaune-pale: #FFF7CD;
    --jaune-blanc: #FFFDF0;
    --vert: #434841;
    --vert-clair: #889683;
    --beige: #94897C;
    --marron: #4C3D2F;
    --vert-fonce: #30332F;
}

.back {
    display: none;
}

.bandeau-texte {
    display: none;
}

.hamburger {
    cursor: pointer;
    display: block;
    position: fixed;
    top: 5%;
    right: 3%;
    z-index: 3;
    width: 50px;
    height: 50px;
    animation: smoothAppear 0.3s ease-out forwards;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    /* The size of the SVG defines the overall size */
    height: 3em;
    /* Define the transition for transforming the SVG */
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: var(--jaune-pale);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    /* Define the transition for transforming the Stroke */
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact>.hamburger>label>svg>.line {
    stroke: var(--jaune-pale);
}

.greenline {
    stroke: var(--vert);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked+svg {
    transform: rotate(-45deg);
}

.hamburger input:checked+svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* LANDING */

.landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../media/landingpic_oberle.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 65%;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 1.5s ease-out 2s,
        transform 1.5s ease-out 2s,
        background-position 1.5s ease-out 2s;
    z-index: 0;
}

/* Classe activée avec JavaScript ou automatiquement après délai */
.landing.revealed::before {
    opacity: 1;
    transform: translateY(0);
    background-position: 70%;
}

header {
    position: fixed;
    top: 0;
    left: 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 2;
    background-color: var(--vert);
    transition: left 0.3s ease;
}

header.show {
    left: 0;
}

.header-button {
    color: var(--jaune-pale);
    font-size: 18px;
    filter: drop-shadow(black 1px 1px 3.4px);
}

.name {
    margin-top: 50%;
    text-align: center;
}

.name>h1 {
    font-size: 11vw;
    margin: 0;
}

.name>h2 {
    font-size: 7.3vw;
    margin: 0;
}

.cta-button-container {
    justify-content: center;
    gap: 20px;
    flex-direction: column;
}

.cta-button {
    width: 80%;
}

.projects-type-container {
    justify-content: space-around;
}

.projects-vignette-container {
    grid-template-columns: 1fr;
}

.bottom-button {
    display: flex;
    justify-content: center;
}

.about {
    padding-inline: 10%;
    background-color: var(--jaune-blanc);
    padding-top: 1%;
    margin: 0;
}

.about-text>h3 {
    font-size: 32px;
}

.about-text>p {
    font-size: 16px;
    margin-bottom: 16px;
}

.about-text h3:nth-of-type(-n+2),
.about-text p:nth-of-type(-n+4) {
    display: none;
}

.about-img>.fillpic:first-child {
    width: 80%;
}

.about-img>.fillpic:last-child {
    width: 80%;
}

.about-img>h3,
.about-img>p {
    display: block;
}

.about-img>h3 {
    font-size: 32px;
    font-family: OCR A;
}

.about-img>p {
    font-family: MuseoSans-100;
    font-size: 16px;
    color: var(--marron);
    margin-bottom: 16px;
}

.about-container {
    display: block;
    padding-bottom: 1%;
}

.steps {
    padding-inline: 10%;
    margin: 0;
    padding-top: 10px;
    padding-bottom: 5%;
}

.steps>h3 {
    font-size: 32px;

}

.steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
}

.steps-container>div {
    background-color: var(--beige);
    border-radius: 10px;
    padding: 0 18px;
}

.step-title {
    display: flex;
    gap: 8px;
    align-items: center;
}

.step-title>h4 {
    font-family: OCR A;
    font-size: 24px;
}

.steps-container>div>p {
    font-family: MuseoSans-100;
    font-size: 16px;
}

.icon-step {
    width: 60px;
}

.steps>.cta-button-container {
    font-family: OCR A;
    display: flex;
    justify-content: center;
}

.steps>.cta-button-container>.cta-button {
    font-size: 20px;
}

.realisations>.realisations-vignette-container {
    grid-template-columns: 1fr;
}

.realisations-vignette>a:first-child {
    font-size: 24px;
}

/* DETAILS */

.details {
    padding-inline: 5%;
    padding-top: 15%;
}

.vignette-info-container {
    grid-template-columns: 1fr;
    padding-inline: 0;
}

.vignette-info-container>div {
    margin-bottom: 0;
}

.annexe-container {
    grid-template-columns: 1fr;
    margin-top: 20px;
    padding-inline: 0;
}

.vignette-info-container>div>.cta-button-container {
    justify-content: center;
}

/* Bouton fermer "X" */
.annexe-close-btn {
    top: 50px;
    right: 50%;
    transform: translateX(50%);
}

/* FOOTER */

footer {
    padding-inline: 10%;
    padding-bottom: 3%;
}

.footer-container {
    grid-template-columns: 1fr;
    text-align: center;
}

.copyright {
    margin-top: 7%;
    font-size: 16px;
    text-align: center;
}