*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: black;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 1.2rem;
}
* {
    margin: 0;
    padding: 0;
}

/*zone fixe img arr plan sous titre h1*/
.couleur-fond {
    background-size: cover;
    background-attachment: fixed;
    background-position: center;

    /* flex  nous sera utile pour centrer horizontalement et verticalement l'enfant .container */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    flex-direction: column;
    gap: 30px;
}

.couleur-fond h1 {
    font-size: 2.3rem;
    color: white;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 3.5rem;
}

.color-8 h1 {
    font-size: 2.3rem;
    color: white;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 3.5rem;
}

.couleur-fond h2,
.description p {
    font-size: 2.3rem;
    color: black;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    max-width: 1000px;
}

p {
    color: white;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 2rem;
}

.cf-0 {
    background-image: url(img/jeremy-bishop-rqWoB4LFgmc-unsplash.jpg)
}

.cf-1 {
    background-image: url(img/gary-butterfield-HJ6g9w4ajDw-unsplash.jpg)
}

.cf-2 {
    background-image: url(img/809984.jpg)
}

.cf-3 {
    background-image: url(img/giorgio-trovato-q_622B22t7I-unsplash.jpg);
}

.cf-4 {
    background-image: url(img/denny-muller-w9L2Q15wyBM-unsplash.jpg);
}

.cf-5 {
    background-image: url(img/705841-laink-insulte-sur-twitch-il-quitte-son-opengraph_1200-1.jpg);
}

.cf-6 {
    background-image: url(img/20230730_220336.jpg);
}

.cf-7 {
    background-image: url(img/20231203_163023.jpg);
}

.cf-8 {
    background-image: url(img/jeremy-bishop-rqWoB4LFgmc-unsplash.jpg);
}

/*zones avec couleur arr plan sous texte*/
.color-0,
.color-1,
.color-2,
.color-3,
.color-4,
.color-5,
.color-6,
.color-7,
.color-8 {
    background-color: black;
    /* flex  nous sera utile pour centrer horizontalement et verticalement l'enfant .container */
    display: flex;
    height: 100vh;

    color: #3d3536;

}

.color-0 {
    background-color: black;
}


.color-1 {
    background-color: black;
}

.color-2 {
    background-color: black;
}

.color-3 {
    background-color: black;
}

.color-4 {
    background-color: black;
}

.color-5 {
    background-color: black;
}

.color-6 {
    background-color: black;
}

.color-7 {
    background-color: black;
}

.color-8 {
    background-color: black;
}

/*zone qui permet de limiter la largeur du texte et de centrer horizontalement*/
.container {

    /* container fluide mais limité à 1000 pixels de large */
    width: 90%;
    max-width: 1000px;

    /* pour centrer horizontalement et verticalement le container dans un parent display:flex; */
    margin: auto;

}

.nav {
    position: absolute;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    overflow: hidden;
    position: fixed;
}

.nav a {
    color: white;
    margin: 0 25px;
    display: flex;
    align-items: center;
    display: flex;
    float: left;
    display: block;
    padding: 14px 16px;
    text-decoration: none;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

.texte-cliquable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.description {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 100%;
    top: 0%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 1s ease-in-out;
}

.texte-cliquable-active .description {
    left: 0%;
}

.texte-cliquable h2,
.texte-cliquable iframe {
    opacity: 1;
    transition: all 1s ease-in-out;
}

.texte-cliquable-active h2,
.texte-cliquable-active iframe {
    opacity: 0;
}

label {
    display: block;
    margin-bottom: 5px;
    color: white;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 20px 300px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1px;
}

button:hover {
    background-color: #45a049;
}