/* Styles généraux */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    min-height: 90vh;
}

#imageDeFondPresentation {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 60vh;
    display: table;
}

#titreEtDescr {
    padding: 10vh 0 0.5em 0;
    margin: auto 0;
}

h1 {
    text-align: center;
    color: white;
    font-size: 60px;
    margin: 0;
}

h1 span {
    color: #dd3062;
}


.textCenter {
    text-align: center;
}

.smallerBottomMargin {
    margin-bottom: 0;
    margin-top: 0.5em;
}


.container {
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 20px;
    border-radius: 8px;
}



#listeIdees {
    list-style: none;
    padding: 0;
    
    width: 75%;
    min-width: min(900px, 95%);
    margin: auto;
}


#listeIdees li {
    background-color: rgba(255, 255, 255, 0.8);
    margin: 15px 0;
    padding: 15px;
    border-left: 5px solid #dd3062;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

#listeIdees li:hover {
    transform: scale(1.02);
}

#wrapperIdee {
    display: inline-flex;
    flex-direction: row;
}

#wrapperIdee iframe {
    width: 100%;
}

#wrapperIdeeTextuel {
    width: 100%;
    min-width: min(95%, 500px);
    padding: 1em 2em 1em 3em;
    margin: auto;
    box-sizing: border-box;
}


h2 {
    margin: 0;
    color: #dd3062;
    font-size: 1.4em;
}

/* Liens */
#listeVilles li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
  height: 100%;
  width: 100%;
}

a:hover {
    text-decoration: none;
}

/* Bouton de retour ou d'action */
.button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background: #dd3062;
    color: white;
    text-align: center;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background 0.3s;
}

.button:hover {
    background: #c02450;
}

.afficherCarte {
    display: none;
}

a {
    text-decoration: none;
}

#boutonVoirMaVille {
    border-left: none !important;
    border-radius: 10px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
}


@media (max-width:800px){
    #imageDeFondPresentation{
        height: 100vh;
        max-height: 800px;
    }
    
    #listeVilles {
        padding: 0;
        margin: 0 5%;
    }
    
    
    h1 {
        position: relative;
        font-size: 40px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    #introductionVille {
        position: relative;
        width: 100%;
        padding: 1.5em 15px;
        box-sizing: border-box;
    }
    
    #wrapperIdee{
        flex-direction: column-reverse;
    }
    
    .lazy-load-map {
        display: none;
    }
    
    .afficherCarte {
        display: block;
        background-color: #dd3062;
        padding: 0.5em;
        border-radius: 1em;
        width: 10em;
        color: white;
        margin-left: auto;
        text-align: center;
        margin-top: 0.5em;
    }
    
    #wrapperIdeeTextuel {
        padding: 1em;
    }
}