header{
    position: relative; 
    height: 200px; 
    width: 100%;
    margin-top: 0px;
    z-index: 1000;
}

h1{
text-align: center;
color: #a10829;
font-family: "Lateef", serif;
font-weight: 500;
font-style: normal;
font-size: 80px;
margin-top: 7px;
}

nav{
    display:flex;
    justify-content:center;
    margin-top: -50px;
}

nav a {
  text-decoration: none;
  padding: 8px 15px;
  color: #333;
  border-bottom: 3px solid transparent;
  font-size: 30px;
}

nav a:hover, 
nav a.active {
  border-bottom: 3px solid #a10829;
  
}

.rectangle {
    display: flex; /* Utilisation de flexbox pour mettre l'image et le texte côte à côte */
    align-items: center; /* Centrer verticalement l'image et le texte */
    justify-content: space-between; /* Espacement entre les deux éléments */
    border: 2px solid #a10829; /* Bordure du rectangle */
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px; /* Largeur maximale du rectangle */
    border-radius: 30px;
}

/* Conteneur de l'image */
.peau {
    flex: 1; /* L'image prend une largeur flexible */
    padding-right: 20px; /* Espacement entre l'image et le texte */
}

.peau img {
    width: 100%; /* L'image prend toute la largeur du conteneur */
    height: auto; /* Maintient les proportions de l'image */
    border-radius: 8px; /* Arrondir les coins de l'image si nécessaire */
}

/* Conteneur du texte */
.texte_accueil {
    flex: 2; /* Le texte prend deux fois plus de place que l'image */
    padding-left: 20px;
}

.texte_accueil h2 {
    font-size: 30px;
    font-weight: bold;
    color: #333;
}

.texte_accueil p {
    font-size: 23px;
    color: #555;
}

.panel {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.card {
    width: 300px;
    border: 2px solid #a10829;
    border-radius: 15px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 4px 15px #b88a94;
    
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    text-align: center;
}

.card-title {
    font-size: 40px;
    color: #a10829;
    font-weight: bold;
}

.card-text {
    font-size: 20px;
    color: #555;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Lateef', serif;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    width: 100%;
    box-sizing: border-box;
}

/* Formulaire */
.form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px #b88a94;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Titre du formulaire */
.form-container h2 {
    font-size: 28px;
    color: #a10829;
    margin-bottom: 20px;
}

/* Input du formulaire */
.form-container input[type="text"] {
    width: 95%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #e0a8b2;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f1f3;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Focus sur les champs de texte */
.form-container input[type="text"]:focus {
    border-color: #a10829;
    background-color: #fff;
    outline: none;
    font-size: larger;
}

/* Bouton de soumission */
.form-container input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: none;
    background-color: #a10829;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover sur le bouton */
.form-container input[type="submit"]:hover {
    background-color: #8c0724;
}

/* Message d'erreur */
.form-container span {
    display: block;
    background-color: #ffdddd;
    color: #d8000c;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #d8000c;
    font-weight: bold;
}

footer {
    border-top: 2px solid #a10829;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

footer h2 {
    color: #a10829;
    font-family: "Lateef", serif;
    font-size: 50px;
    margin: 0;
}

footer nav {
    margin-top: 5px;
}

footer p {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

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

    /* HEADER */
    header {
        height: auto;
        padding-bottom: 15px;
    }

    h1 {
        font-size: 50px;
        margin-top: 10px;
    }

    /* NAV */
    nav {
        margin-top: 5px;
        flex-wrap: wrap;
        gap: 5px;
    }

    nav a {
        border:1px #a10829 solid; 
        border-radius: 10px;
        font-size: 20px;
        padding: 6px 10px;
        gap:10px;
    }

    nav a.active {
        background-color: #a10829;
        color:#fff;
    }


    /* RECTANGLES INDEX */
    .rectangle {
        flex-direction: column;
        margin: 10px 15px;
        padding: 15px;
    }

    .peau {
        padding-right: 0;
        width: 100%;
    }

    .peau img {
        width: 100%;
    }

    .texte_accueil {
        padding-left: 0;
        margin-top: 15px;
    }

    .texte_accueil h2 {
        font-size: 20px;
    }

    .texte_accueil p {
        font-size: 16px;
    }

    /* FORMULAIRE */
    .container {
        padding: 15px;
        min-height: auto;
    }

    .form-container {
        padding: 25px 20px;
        margin: 15px;
        width: 100%;
    }

    .form-container h2 {
        font-size: 22px;
    }

    .form-container input[type="text"],
    .form-container input[type="submit"] {
        font-size: 16px;
        padding: 10px;
        width:85%;
    }

    footer{
        height: 10px;
    }

 footer nav {
        display: none; /* cache la nav du footer sur mobile */
    }

    footer h2 {
        display: none; /* cache le titre du footer sur mobile */
    }

    footer p {
    font-size: 14px;
    color: #555;
    margin-top:0,3px;
}

}





