/* Global */
body {
    background: url('assets/bg.jpg') no-repeat center;
    background-size: cover;
    background: white;
    font-family: 'Roboto', cursive;
    color: white;
    background-color: white;
    font-weight: 300;
}
.body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 94, 59, 0.6); 
    border-radius: 10px;
}
p, .container {
    font-family: 'Roboto';
}
label {
    font-family: 'Roboto';
    color:black;
}
h1, h2, h3, h4, h5 {
    font-family: 'Raleway', cursive;
}
h5 {
    font-family: 'Raleway',;
    color: black;
}

.black-font {
    color: black;
    font-weight: 300;
}

/* Custom */
.modal {
    color:black;
    margin-top: 30px;
    z-index: 9999;
}
.title-modal-custom {
    margin:0 auto;
    width: 100%;
}
.container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.container label {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.container input, .container select, .container textarea {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.container button {
    font-size: 1.5rem;
    padding: 10px 20px;
    background-color: #1f74b0;
    border: none;
    border-radius: 5px;
}
.container button:hover {
    background-color: #6f482a;
}

/* Footer */
footer {
    background-color: #f2f2f2;
    color: white;
    padding: 20px;
    text-align: center;
}
/* Première section améliorée */
.hero {
    background: url(assets/img_first.jpeg) no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    text-shadow: 2px 2px 8px black;
    position: relative;
    display: flex;
    height: 500px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 170px;
}
/* Ajout d'une superposition sombre pour améliorer la lisibilité 
    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }
*/
.hero h1, .hero p {
    position: relative;
    z-index: 2;
}

.map-bg {
    background: url('assets/bg.jpg') no-repeat center;
    background-size: cover;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    padding: 20px;
    margin: 20px 0;
    flex-direction: column;
}
.map-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #346e927f;
    z-index: 1;
}
.map-bg p, .map-bg a    {
    position: relative;
    z-index: 2;
    width: 50%;
}
.map-bg a    {
    position: relative;
    z-index: 2;
    width: 20%;
}
.btn-rsvp {
    background-color: #1f74b0;
    color: white;
    border: none;
    font-weight: 300;
}
.btn-rsvp:hover {
    background-color: #1f74b0;
}


.transport-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.transport-container div {
    flex: 1;
    padding: 15px;
}

.btn-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    background-color: #1f74b0;
    color: white;
    font-weight: 300;
}

.text-white {
    color: white;
}

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

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

.img-blason {
    width: 50px;
    margin-right: 20px;
}

.img-card {
    height: 200px!important;
    height: auto;
    border-radius: 10px;
}

.card {
    border: none;
}

.background-card {
    background-color: #346e927f;
}

/* Header */

.header-custom {
    position:fixed;
    top: 0;
    width: 100%;
    height: 170px;
    z-index: 9999;
    background-color: white;
}

.logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: black;
}

.logo h1 {
    text-transform: uppercase;
    line-height: 1.41em;
    font-size: 10px;
    font-size: 22px;
    padding-top: 10px;
    border-bottom: 1px solid black;
    width: 50%;
    text-align: center;
    font-weight: 300;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}
nav a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-weight: 300;
}

/* Scroll hack */

#connaitre, #services, #contact {
    scroll-margin-top: 190px; /* remplace 100px par la hauteur de ton header */
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .hero {
        padding: 120px 10px;
        height: auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .map-bg {
        height: auto;
        padding: 60px;
    }

    .transport-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .btn-card {
        width: 100%;
    }

    .header-custom {
        height: 190px;
    }

    .map-bg p, .map-bg a {
        position: relative;
        z-index: 2;
        width: 100%;
    }

    .modal-content {
        padding: 10px;
    }

    .container h2 {
        font-size: 2rem;
    }

    .container p, .container label, .container input, .container select, .container textarea, .container button {
        font-size: 1rem;
    }

    .img-card {
        height: 150px!important;
    }

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