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

.playfair-display {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.playfair-display-strong {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

body {
    background-color: rgb(255, 255, 255);
    color: rgb(26, 26, 26);
    line-height: 1.6;
    font-size: 19px;
}

body::selection{
    background: #31081F;
    color: white;
}

label {
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.champ textarea {
    width: 800px;
    height: 60px;
    margin-bottom: 10px;
}

.fusion {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-direction: column;
}

.fusion-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.fusion-fields {
    display: flex;
    gap: 10px;
}

.champ-fusion {
    flex: 1 1 0%;
    padding: 5px;
    font-size: 14px;
}

.bouton {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.popup-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 10px;
    position: relative;
}

.popup-content h2 {
    margin-top: 0px;
}

.popup-content button {
    margin: 10px 5px;
    padding: 10px 15px;
    cursor: pointer;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

textarea[name="contenu[]"] {
    display: block;
}

footer {
    margin-top: 40px;
    text-align: center;
}

p {
    font-size: large;
}

header {
    padding: 1rem 2rem;
    text-align: center;
}

header h1 {
    font-family: "Times New Roman", serif;
    font-size: 4rem;
    color: rgb(49, 8, 31);
    letter-spacing: -1px;
}

header p {
    font-size: 1rem;
    color: white;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
    font-family: Arial, sans-serif;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(218, 210, 216);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 10px 16.1px -10px;
    width: 100%;
}

.navigation {
    width: 100%;
    display: flex;
    justify-content: center;
}

nav a {
    color: rgb(49, 8, 31);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
}

nav a:hover {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: rgb(49, 8, 31);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 20px 20px -20px;
    transition: 0.2s;
}

main {
    width: 100%;
    margin: 50px auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0px 1rem;
    font-family: Arial, sans-serif;
}

.entete {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.articles {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    
}

article {
    display: flex;
    padding-bottom: 1rem;
    align-items: flex-start;
    background: rgb(245, 245, 245);
    border: 1px solid rgb(218, 210, 216);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 15.7px -4px;
    border-radius: 24px 24px 0px 0px;
    flex-direction: column;
    width: 350px;
}

.article-content {
    height: 210px;
}

article h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgb(49, 8, 31);
    padding: 20px;
}

article p {
    color: rgb(68, 68, 68);
    font-size: 1rem;
    padding: 0px 20px 20px;
}

.article-image {
    height: 220px;
    flex-shrink: 0;
    justify-content: right;
    align-items: center;
}

.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px 24px 0px 0px;
}

.aside {
    width: 50%;
    height: 600px;
}

aside {
    width: 90%;
    background: rgb(249, 249, 249);
    padding: 1rem;
    border: 1px solid rgb(221, 221, 221);
    height: 300px;
}

aside h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: rgb(49, 8, 31);
    padding-bottom: 0.5rem;
}

.aside_bottom {
    display: flex;
}

aside ul {
    list-style: none;
}

aside li {
    margin-bottom: 0.75rem;
}

aside a {
    color: rgb(49, 8, 31);
    text-decoration: none;
}

aside a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem 1rem;
    background-color: rgb(245, 245, 245);
    color: rgb(102, 102, 102);
    font-size: 0.9rem;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.champ {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.bouton {
    display: flex;
}

textarea {
    width: 800px;
    height: 60px;
    padding: 30px;
}

.texte1 {
    width: 800px;
}

button {
    width: 375px;
    height: 100px;
    margin: 25px;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    font-size: large;
}

.text_gauche {
    padding: 0px 20px 20px 0px;
}

#ouais {
    width: 300px;
}

.picture > img {
    width: 300px;
    border: 2px solid rgb(68, 68, 68);
}

.legende {
    margin-top: 10px;
    padding-left: 10px;
    border-left-width: 3px;
    border-left-style: solid;
    border-left-color: grey;
    color: grey;
}

.letexte {
    padding-left: 20px;
}

.ajouter {
    margin-top: 10px;
    background-color: rgb(0, 123, 255);
    color: white;
    border: medium;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.grandTitre {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    padding-left: 35px;
    padding-left: 190px;
}

#contact_main {
    width: 100%;
    padding-left: 190px;
    padding-right: 190px;
    margin-top: 0;
}

#aside_contact {
    width: 800px;
}

.parent_contact {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.child_contact {
    width: 100%;
    height: auto;
    background-color: #F5F5F5;
    padding: 20px;
    border: 1px solid #DAD2D8;
}

#contact_form{
    align-items: baseline;
}

#contact_form > input{
    width: 97.5%;
    margin-top: 10px;
    border: 1px solid #B9B9B9;
    padding-left: 5px;
}

#message_form{
    width: 97.5%;
    min-height: 100px;
    margin-top: 10px;
    border: 1px solid #B9B9B9;
    padding: 5px;
}

#send_contact{
    width: 97.5%;
    height: 50px;
    margin: 0;

    background: #FFFFFF;
    border: 1px solid #B9B9B9;
    border-radius: 6px;

    font-size: large;

}

.child_contact > h2 {
    margin-bottom: 20px;
}

div > h1 {
    font-size: 2rem;
}

#test {
    padding: 260px;
    padding-top: 20px;
}

#aside_contact_parent{
    display: flex;
    justify-content: center;
    height: 582px;
    width: 35%;
}

#main_index{
    align-items: flex-start;
}



@media (max-width: 915px) {
    main {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    header h1 {
        font-size: 2.5rem;
    }

    nav a {
        width: 30%;
    }

    .articles {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 2rem;
    }

    article {
        width: 100%;
    }

    .article-image {
        height: 100%;
        flex-shrink: 0;
        align-items: center;
        width: 100%;
    }

    .article-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 24px 24px 0px 0px;
    }

    .container {
        flex-direction: column-reverse;
    }

    #ouais {
        width: 100%;
        margin-bottom: 20px;
    }

    .letexte {
        padding-left: 0px;
    }

    .picture > img {
        width: 100%;
        border: 2px solid rgb(68, 68, 68);
        margin-top: 20px;
    }

    .legende {
        margin-bottom: 20px;
    }

    .bouton {
        flex-direction: column;
    }

    .champ textarea {
        width: 400px;
    }

    .fusion-fields {
        flex-direction: column;
    }

    .parent_contact {
        justify-content: center;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .child_contact {
        width: 90%;
    }

    .aside {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    aside {
        width: 80%;
    }

    #aside_contact {
        width: 90%;
    }

    #test {
        padding: 20px;
        padding-top: 20px;
    }

    #contact_main {
        margin-top: 0;
    }

    .grandTitre{
        padding-left: 25px;
    }

    #contact_main {
        padding-left: 0;
        padding-right: 0;
    }

    #aside_contact_parent{
        width: 100%;
    }

    #main_index{
        align-items: anchor-center;
    }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #222222;  /* Couleur en mode sombre */
    color: #fff;
  }

  header h1{
      color: white;
  }

  nav{
      box-shadow: rgb(255 255 255 / 25%) 0px 10px 16.1px -10px;
  }

  nav a{
      color: white;
  }

    nav a:hover {
        border-bottom-color: white;
    }

    .child_contact{
        background-color: #373737;
        border: 2px solid #5b5b5b;
    }

    input{
        background-color: #5c5c5c;
        border: 2px solid #000000;
        color: white;
    }

    textarea{
        background-color: #5c5c5c;
        border: 2px solid #000000;
        color: white;
    }

    aside{
        background-color: #373737;
        border: 2px solid #5b5b5b;
        color: white;
    }

    #aside_contact{
        background-color: #373737;
        border: 2px solid #5b5b5b;
        color: white;
    }

    aside h3{
        border-bottom: 2px solid white;
    }

    aside a{
        color: white;
    }

    #send_contact{
        background-color: #707070;
        color: white
    }

    footer{
        background-color: #181818;
    }

    article{
        background-color: #3d3d3d;
        box-shadow: rgb(108 108 108 / 25%) 0px 4px 15.7px -4px;
        border: 1px solid rgb(30 30 30);
    }

    article h2{
        color: white;
    }

    article p{
        color: white
    }

    button{
        background-color: #373737;
        border: 1px solid #525252;
        color: white
    }

    body::selection{
        background: #DAD2D8;
        color: black;
    }
}