/* Global styles */

@font-face {
    font-family: StreetCred;
    src: url('./fonts/streetcred.ttf');
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    animation: opening 0.5s ease-in-out;
    font-family: 'Poppins', sans-serif;
}

li,
button,
label,
input,
p {
    font-size: 1.6rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
    font-weight: 400;
}

h4,
h5 {
    font-size: 2.5rem;
}

a {
    color: white;
    text-decoration: none;
}

button {
    padding: 2rem 6rem;
    background: slategray;
    border: none;
    color: black;
    font-size: 1.8rem;
    border: none;
    cursor: pointer;
}

/* Nav SEction with Hero */

#accueil {
    background: #f4f4f4;
    color: black;
    position: sticky;
    top: 0;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
    z-index: 3;
}

nav {
    min-height: 8vh;
    padding: 1.8rem;
    display: flex;
    width: 80%;
    margin: auto;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: #4d321a;
    font-weight: bold;
    font-size: 1.8rem;
}

nav a:hover {
    opacity: .75;
}

nav h1 a {
    font-size: 2.6rem;
    font-weight: normal;
}

nav ul {
    display: flex;
    flex: 1 1 35rem;
    justify-content: space-around;
    align-items: center;
    list-style: none;
}

nav ul li {
    padding: 0 1rem;
}

#logo {
    flex: 2 1 40rem;
    font-family: 'StreetCred', cursive;
    font-weight: 400;
}

.hero {
    min-height: 50vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
}

.hero h3 {
    padding: 2.8rem;
    color: #4d321a;
    font-style: italic;
}

.hero p {
    color: #4d321a;
    margin-bottom: 1.5rem;
}

#random {
    border-radius: 3%;
    border: solid .25rem #4d321a;
    max-width: 320px;
}

/* Sections Arcticle nouvelles */

.main-news {
    width: 80%;
    min-height: 42vh;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
}

.news {
    text-align: center;
    background: #f4f4f4;
    border-radius: 0.5rem;
    margin: 2rem 3rem;
    min-height: 40vh;
    flex: 1 1 25rem;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
}

.news img {
    padding-top: 2rem;
    max-width: 350px;
    width: 100%;
}

.news img:hover {
    opacity: 0.65;
}

.news p {
    font-size: 1.6rem;
    padding: 3rem;
    text-align: left;
}

#expolaroid {
    font-size: 1.4rem;
}

/* Section Demarche */

#demarche {
    width: 70%;
    margin: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.demarche-main {
    padding: 5rem;
    min-height: 80vh;
    background: #f4f4f4;
    border-radius: 0.5rem;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1)
}

#demarche h3 {
    color: #4d321a;
    font-weight: bold;
}

#demarche h4 {
    color: #4d321a;
    padding-bottom: 2rem;
    font-weight: normal;
    font-size: 2rem;
}

#demarche p {
    text-align: left;
    margin-top: 2rem;
}

#demarche img {
    max-width: 200px;
    border-radius: 10%;
}

/*  Section Profil/Parcours */

#profil {
    width: 70%;
    margin: auto;
    margin-top: 8vh;
    padding: 5rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #6d4f34;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.1), 0px 30px 30px rgba(0, 0, 0, 0.1);
}

#profil h3 {
    padding-bottom: 2rem;
    font-weight: bold;
}

#profil p {
    text-align: left;
    margin-top: 2rem;
}

/* Section Contact */

#contact {
    width: 100%;
    margin: auto;
    margin-top: 1rem;
    padding: 3rem 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cv {
    background: #4d321a;
    font-size: 1.8rem;
    font-weight: normal;
    max-width: 40%;
    padding: 1rem;
    margin: auto;
    margin-top: 3rem;
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.1), 0px 30px 30px rgba(0, 0, 0, 0.1);
}

.form-wrapper {
    background: #f4f4f4;
    width: 60%;
    color: #4d321a;
    border-radius: 0.5rem;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.1), 0px 30px 30px rgba(0, 0, 0, 0.1);
}

.form-wrapper h3 {
    font-weight: bold;
}

.form-head {
    text-align: center;
    padding: 4rem;
}

.name-form,
.email-form,
.message-form {
    padding: 3rem;
    text-align: center;
}

.form-wrapper label {
    margin: 0rem 3rem;
}

.form-wrapper button {
    width: 100%;
    padding: 2rem;
    margin-top: 5rem;
    background: #4d321a;
    color: white;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.form-wrapper button:focus {
    opacity: .9;
    border: 3px solid blue;
}

.form-wrapper input {
    width: 70%;
    padding: 1rem 3rem;
    clear: both;
}

/* section social media */

#social {
  margin: 0;
  height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-media-container {
    display: flex;
    gap: 20px; /* Space between icons */
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .social-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s ease;
  }
  
  .social-icon img:hover {
    transform: scale(1.1);
  }

/* PAGE Galleries.html */

#galleries {
    width: 80%;
    margin: auto;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.galleries-main {
    width: 60%;
    margin: auto;
    display: flex;
    min-height: 80vh;
    align-items: center;
    flex-wrap: wrap;
}

.gallerie {

    background: #f4f4f4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 1 1 30rem;
    min-height: 8vh;
    margin: 1rem;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
}

.gallerie h4 {
    padding: 0rem 2rem;
    font-size: 1.8rem;
    color: #4d321a;
}

.gallerie h4:hover {
    opacity: .75;
}

.gallerie img {
    max-height: 5rem;
}

.gallerie img:hover {
    opacity: .5;
}

.streetcred {
    font-family: 'StreetCred', cursive;
    font-weight: normal;
}

/* Page Gallerie Individuelles */

#img-gallerie {
    width: 80%;
    margin: 0 auto;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

.galleriePola {
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    min-height: 70vh;
    background: #f4f4f4;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
}

.galleriePola img {
    margin: 2rem 1rem;
    max-height: 20rem;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
}

.back {
    width: 30%;
    margin: 2rem auto 4rem auto;
    padding: 1rem;
    font-size: 1.7rem;
    font-weight: normal;
    text-align: center;
    border-radius: 0.5rem;
    background: #4d321a;
    opacity: 0.75;
    transition: 0.3s ease-in-out;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
}

.back:hover {
    opacity: 1;
}

/* Section Footer */

footer {
    bottom: 0;
    color: #f4f4f4;
    background: #4d321a;
    min-height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

footer p {
    font-size: 1.3rem;
}

footer p b {
    font-size: 1.6rem;
    font-family: 'StreetCred', cursive;
    font-weight: normal;
}

footer a:hover {
    color: yellowgreen;
    text-shadow: 2px 2px rgb(0, 0, 1);
    transition: ease-in-out .1s;
}

/* ANIMATIONS */

@keyframes opening {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Media Queries */

@media screen and (max-width: 1400px) {
    nav {
        text-align: center;
    }

    .hero h3 {
        font-size: 2.5rem;
    }

    #demarche,
    #profil {
        width: 80%;
    }

    .main-news {
        width: 90%;
    }

    .form-wrapper {
        width: 90%;
    }

    #topBtn {
        right: 2%;
    }

    #img-gallerie {
        width: 90%;
    }
}

@media screen and (max-width: 960px) {
    html {
        font-size: 61%;
    }

    .hero h3 {
        font-size: 2.2rem;
    }

    nav a {
        font-size: 80%;
    }

    nav ul li {
        padding: 0;
    }

    .form-wrapper {
        width: 95%;
    }

    #img-gallerie {
        width: 95%;
    }

    .back {
        width: 40%;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }

    nav {
        width: 90%;
    }

    .form-wrapper {
        width: 100%;
    }

    .galleries-main {
        width: 85%;
        margin: auto;
        display: flex;
        min-height: 80vh;
        align-items: center;
        flex-wrap: wrap;
    }

    #galleries {
        width: 95%;
    }

    #img-gallerie {
        width: 100%;
    }

    .img-gallerie li {
        height: 20vh;
    }

    .gallerie h4 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 520px) {
    html {
        font-size: 50%;
    }

    .hero h3 {
        font-size: 2.4rem;
    }

    #random {
        max-width: 260px;
    }

    .galleriePola img {
        margin: 1rem 0.5rem;
        max-height: 13rem;
    }
}