@import url("https://use.typekit.net/mjf0xvm.css");
@import url("https://use.typekit.net/mjf0xvm.css");

/* ROOT */
:root {
    --noir: #000000;
    --blanc: #FFFFFF;
    --gris: #808080;
}

/* BODY */
body {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 400;
    background-color: var(--blanc);
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--blanc);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: var(--blanc);
}

header img {
    width: 150px;
}

/* NAV */
.topnav {
    display: flex;
    overflow: hidden;
    position: relative;
    text-align: end;
}

.topnav #menu {
    display: none;
}

.topnav a {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--noir);
    text-decoration: none;
    line-height: 1.875rem;
    display: block;
}

.topnav a.icon {
    display: block;
    font-size: 1.875rem;
    margin-left: 1.875rem;
}

.topnav a:hover,
.topnav a.active {
    color: var(--gris);
}

/* SECTION */
section {
    padding: 100px 0 150px;
}

section img {
    width: 100%;
}

/* ASIDE */
aside {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    text-align: justify;
    color: var(--noir);
}

a {
    color: var(--noir);
    text-decoration: none;
}

a:hover,
a.active {
    color: var(--gris);
}

.tableaux {
    margin-top: 100px;
}

section h1 {
    font-size: 1.5625rem;
    line-height: 2.1875rem;
    text-align: right;
    padding-right: 3.125rem;
}

h2 {
    text-align: center;
}

h3 {
    font-family: "gloock", sans-serif;
    font-size: 1.5625rem;
}

.services {
    width: 30%;
    border: 1px solid var(--noir);
    border-top: 10px solid var(--noir);
    padding: 35px 30px 45px;
    border-radius: 8px;
    text-align: left;
}

.services h2 {
    font-size: 2.5rem;
    line-height: 3.125rem;
    margin-bottom: 1.5625rem;
    text-transform: uppercase;
}

p {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 300;
}

.projets img {
    display: block;
    width: 670px;
}

.projet img {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 520px;
}

/* MOBILE */
@media screen and (max-width: 768px) {
    aside {
        font-size: 0.9375rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .services {
        width: 90%;
    }

    h1 {
        font-size: 1.25rem;
        text-align: center;
    }

    h3 {
        text-align: justify;
    }
}

/* FOOTER */
footer {
    padding: 65px 45px 40px 10px;
    text-align: right;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.625rem;
    color: var(--noir);
}

footer img {
    width: 200px;
    padding-bottom: 20px;
}

footer p {
    margin-bottom: 2rem;
}

footer a {
    color: var(--noir);
    text-decoration: none;
}

footer a:hover {
    color: var(--gris);
}

footer i {
    font-size: 1.875rem;
    margin: 0 0 1.875rem 1.875rem;
}

/* ANIMATION GÉNÉRALE */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section h1,
.projets,
footer,
header {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

/* délais progressifs */
header {
    animation-delay: 0.2s;
}

section h1 {
    animation-delay: 0.5s;
}

.projets:nth-child(1) {
    animation-delay: 0.7s;
}

.projets:nth-child(2) {
    animation-delay: 0.9s;
}

.projets:nth-child(3) {
    animation-delay: 1.1s;
}

.projets:nth-child(4) {
    animation-delay: 1.3s;
}

footer {
    animation-delay: 1.5s;
}

.projets {
    overflow: hidden;
    border-radius: 8px;
}

.projets img {
    transition: transform 0.5s ease;
}

.projets:hover img {
    transform: scale(1.05);
}

header img {
    transition: transform 0.4s ease;
}

header img:hover {
    transform: scale(1.03);
}

.portfolio {
    display: flex;
    gap: 40px;
    padding: 60 60 0 60;
    align-items: flex-start;
}

/* texte */
.description {
    width: 30%;
}

/* galerie en colonne */
.galerie {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* bloc image */
.projet {
    width: 100%;
    height: auto;
    /* taille uniforme */
    overflow: hidden;
    border-radius: 10px;
}

/* image uniforme */
.projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* hover propre */
.projet:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {

    .portfolio {
        flex-direction: column;
    }

    .description,
    .gallery {
        width: 100%;
    }

    .projet {
        height: 220px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.apropos {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60 60 0 60;
}

/* A PROPOS */
.portrait {
    flex: 0 0 40%;
}

.portrait img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
}

/* TEXTE A PROPOS */
.apropos-texte {
    flex: 1;
}

.apropos-texte h3 {
    margin-bottom: 30px;
}

.apropos-texte p {
    margin-bottom: 25px;
    line-height: 1.7;
}

/* MOBILE */
@media screen and (max-width: 768px) {

    .apropos {
        flex-direction: column;
        gap: 35px;
        padding: 40px 20px;
        align-items: stretch;
    }

    .portrait {
        flex: none;
        text-align: center;
    }

    .portrait img {
        max-width: 300px;
    }

    .apropos-texte {
        width: 100%;
    }

}

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

/* PAGE */
body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #222;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

/* FORMULAIRE */
.contact {
    width: 100%;
    max-width: 480px;
}

/* TITRE */
h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 40px;
}

/* CHAMPS */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: #555;
}

input,
textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    border-bottom-color: #111;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input::placeholder,
textarea::placeholder {
    color: #bbb;
}

/* BOUTON */
button {
    width: 100%;
    background: #111;
    color: white;
    border: none;
    padding: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #444;
}

/* PIED DE PAGE */
.footer {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #aaa;
}