*{
    padding: 0;
    margin: 0;
    font-family: arial;
    list-style-type: none;
    text-decoration: none;
}

.case, a, button  {
    cursor: pointer;
}

#letter{
    display: none;
}

.card button, #button-blog button{
    background-color: #3E3E3E;
}

nav button{
    margin-bottom: 0;
}

button, .row button, .btn-primary {
    background-color: #3BB895;
    font-size: 18px;
    color: white;
    border-radius: 10px;
    padding: 12px;
    font-weight: bold;
    border: none;
    margin-bottom: -45px; /* marge inférieure négative */
}

button:hover, .btn-primary:hover {
    background-color: #1d5747;
}

#bouton-card1 button:hover, #bouton-card2 button:hover, #bouton-card3  button:hover, #button-blog button:hover {
    background-color: #737373;
}

/*NAV BARRE*/
nav {
    background-color: white;
    height: 75px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 25px;
    padding-right: 25px;
    justify-content: space-between;
}

nav div:nth-child(2){
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    width: 180px;
    display: inline-block;
}

nav img {
    width: 250px;
    height: 50px;
}

nav p {
    margin-bottom: 0;
}

#size-big {
    font-size: 20px;
}

/*HEADER*/
header {
    width: 100%;
    background-image: url("/img/img-header.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

header div {
    margin: auto;
    padding-top: 5%;
    text-align: center;
    color: white;
}

h1 {
    margin-bottom: 25px;
    font-size: 55px;
}

header p {
    margin-bottom: 50px;
    font-size: 25px;
}

#texte-main-header button{
    margin-bottom: 50px;
}

/*2ème nav */
#nd-nav {
    width: 100%;
    background-color: #27334E;
    color: white;
    font-weight: bold;
}

.center {
    margin: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.case, .center {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.case:hover img {
    filter: brightness(500%);
}

.case img {
    margin-right: 15px;
}

.case {
    padding-right: 15px;
    padding-left: 15px;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

.case p {
    width: 150px;
    height: 50px;
    padding-top: 20px;
}

.case:focus img {
    filter: brightness(500%);
}

/*color*/
.case:focus:first-child, #one {
    background-color: #B3D84B;
}

.case:hover:first-child {
    background-color: #B3D84B;
}


.case:focus:nth-child(2), #two {
    background-color: #FF7B7B;
}
.case:hover:nth-child(2) {
    background-color: #FF7B7B;
}

.case:focus:nth-child(3), #three {
    background-color: #7BD0FF;
}
.case:hover:nth-child(3) {
    background-color: #7BD0FF;
}


.case:focus:nth-child(4) {
    background-color: #D8B94B;
}
.case:hover:nth-child(4), #four {
    background-color: #D8B94B;
}

.case:focus:nth-child(5) {
    background-color: #C291FF;
}
.case:hover:nth-child(5), #five {
    background-color: #C291FF;
}

/*LISTE DEROULANTE*/

.p {
    background-color: #27334E;
    color: white;
    border: none;
    cursor: pointer;
    padding:20px;
    margin-top:20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.p:hover {
    background-color: #27334E;
}

.dropdown {
    position: relative;
    display: flex;
    visibility: hidden;
    width: 300px;
}

@media (max-width: 610px) {
    .dropdown{
        /*display: unset !important;*/
        visibility: visible !important;
    }
}



#menu {
    margin-bottom: 50px;
}

.dropdown-child {
    display: none;
    background-color: #27334E;
    min-width: 200px;
    border-radius: 10px;
}


.dropdown-child li{
    color: white;
    padding: 20px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}
.dropdown:hover .dropdown-child {
    display: block;
}

.dropdown-child li:hover {
    background-color: #0b5ed7;
    border-radius: 10px;
}

/*PAGE*/
#page1, #page2 {
    margin: auto;
    width: 70%;
    padding-bottom: 75px;
}

.title, .container-card {
    display: flex;
    flex-direction: row;
}

.title {
    height: 75px;
    align-items: center;
    border-radius: 50px;
    color: white;
}

.title img {
    margin-left: 30px;
    margin-right: 30px;
}

.container-card {
    width: 100%;
    margin: auto;
    margin-top: 75px;
    justify-content: center;
    gap: 42px;
    flex-wrap: wrap;
}

.card {
    min-height: 550px;
    height: 100%;
    width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 1px 1px 20px 1px #5b5b5b;
    padding-bottom: 50px;
}


/*Card 1*/

#container-image-titre-1{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#container-image-titre-1 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#container-image-titre-1 h4{
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    margin-top: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    color: #212121;
}

#background-card-residence1{
    color: white;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 24px;
}

#sous-titre-texte-card1{
    width: 80% !important;
    margin: 0 auto;
    background-color: #ffffff !important;
}

#sous-titre-texte-card1 h4{
    color: #212121 !important;
    font-size: 24px;
}

#texte-case1{
    color: #212121 !important;
    font-size: 18px;
    padding-top: 10px;
}

#bouton-card1{
    margin-bottom: -50px;
}

/*Fin card 1*/

/*Card 2*/

#container-image-titre-2{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#container-image-titre-2 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#container-image-titre-2 h4{
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    margin-top: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    color: #212121;
}

#background-card-residence2{
    color: white;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 24px;
}

#sous-titre-texte-card2{
    width: 80% !important;
    margin: 0 auto;
    background-color: #ffffff !important;
}

#sous-titre-texte-card2 h4{
    color: #212121 !important;
    font-size: 24px;
}

#texte-case2{
    color: #212121 !important;
    font-size: 18px;
    padding-top: 10px;
}

#bouton-card2{
    margin-bottom: -50px;
}

/*Fin card 2*/

/*Card 3*/

#container-image-titre-3{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#container-image-titre-3 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#container-image-titre-3 h4{
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    margin-top: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    color: #212121;
}

#background-card-residence3{
    color: white;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 24px;
}

#sous-titre-texte-card3{
    width: 80% !important;
    margin: 0 auto;
    background-color: #ffffff !important;
}

#sous-titre-texte-card3 h4{
    color: #212121 !important;
    font-size: 24px;
}

#texte-case3{
    color: #212121 !important;
    font-size: 18px;
    padding-top: 10px;
}

#bouton-card3{
    margin-bottom: -50px;
}

/*Fin card 3*/

.button button {
    background-color: #3E3E3E;
}

.none {
    /*display: none;*/
}

/*couleur des pages*/
#page1 .title, #page1 .card div:nth-child(2){
    width: 100%;
    background-color: #a3c245;
}

#sous-titre-texte-card1{
    background-color: #ffffff !important;
}

#sous-titre-texte-card1 h4{
    color: #212121 !important;
}

#sous-titre-texte-card2{
    width: 80% !important;
    margin: 0 auto;
    background-color: #ffffff !important;
}

#sous-titre-texte-card2 h4{
    color: #212121 !important;
    font-size: 24px;
}

#texte-case2{
    color: #212121 !important;
    font-size: 18px;
    padding-top: 10px;
}

#bouton-card2{
    margin-bottom: -50px;
}

/*Card 3*/

#sous-titre-texte-card3{
    width: 80% !important;
    margin: 0 auto;
    background-color: #ffffff !important;
}

#sous-titre-texte-card3 h4{
    color: #212121 !important;
    font-size: 24px;
}

#texte-case3{
    color: #212121 !important;
    font-size: 18px;
    padding-top: 10px;
}

#bouton-card3{
    margin-bottom: -50px;
}

/*Fin card 3*/

/*Card 4*/

#card4{
    display: none;
}

#container-image-titre-4{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#container-image-titre-4 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#container-image-titre-4 h4{
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    margin-top: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    color: #212121;
}

#background-card-residence4{
    color: white;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 24px;
}

#sous-titre-texte-card4{
    width: 80% !important;
    margin: 0 auto;
    background-color: #ffffff !important;
}

#sous-titre-texte-card4 h4{
    color: #212121 !important;
    font-size: 24px;
}

#texte-case4{
    color: #212121 !important;
    font-size: 18px;
    padding-top: 10px;
}

#bouton-card4{
    margin-bottom: -50px;
}

/*Fin card 4*/

#page2 .title, #page2 .card div:nth-child(2){
    background-color: #FF7B7B;
}

/*BLOG*/
#blog {
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    margin: auto;
    margin-top: 75px;
    /*width: 75%;*
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 50px;*/
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("/img/filter.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(59, 184, 149, 0.5); /* Couleur #3BB895 avec une opacité de 0.5 */
    color: white;	
}


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

.row {
    width: 70%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    border: none;
    transition: all 0.3s ease;
}

#c-height {
    height: 600px;
}

.card:hover {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.card-img-top {
    width: 350px;
    object-fit: cover;
    height: 250px;
}

.card-title {
    font-weight: bold;
}

.card-body {
    padding: 50px;
}

.card-body h4 {
    margin-bottom: 15px;
}

.card-text {
    font-size: 1.1rem;
}

.card-footer {
    background-color: #fff;
    border-top: none;
    padding: 1rem;
}

main {
    margin-bottom: 175px;
    margin-top: 25px;
}

main h2 {
    text-align: center;
    margin-bottom: 25px;
}

#button-blog {
    display: flex;
    justify-content: center;
    margin-top: 75px;
}

.t {
    display: flex;
    justify-content: center;
    margin-top: 75px;
}

.selected-blog {
    margin: auto;
}

#selected-blog {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    height: 50px;
    align-items: center;
}

#selected-blog button {
    margin-bottom: 0;
    margin-left: 5px;
}

#selected-blog label {
    margin-right: 5px;
}

#presentation {
    text-align: center;
    width: 60%;
    margin: auto;
}

/*MAIN SECTION*/
#main-section {
    background-color: #27334E;
    height: 700px;
    padding-bottom: 75px;
    padding-top: 75px;
}

#main-section, #main-section div:last-child {
    display: flex;
    flex-direction: row;
}

#main-section div:first-child {
    width: 40%;
    padding: 100px;
    color: white;
    font-size: 25px;
}

#main-section p, #main-section div:first-child img {
    margin-bottom: 35px;
}



#main-section div:nth-child(2) {
    width: 60%;
    justify-content: center;
    align-items: center;
}

#main-section div:nth-child(2) img {
    width: 80%;
}



/*FOOTER*/
footer {
    height: 75px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

@media (max-width: 571px) {
    .t-card {
        width: 80%;
    }
}