html {
    /* scroll plus fluide */
    scroll-behavior: smooth;
    font-size: 1rem; /* Base font size for better responsiveness */
    line-height: 1.6;
    background-color: #f4f4f4;
}

body {
    font-family: 'Roboto', sans-serif; 
    font-weight: 200;
    font-style: normal;

header.jumbotron {
    background-size: cover;
    background-position: center;
    background-image: url('elements/book.jpg');
    opacity: 0.8;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


h1.display-4 {
    font-size: 3rem;
    font-weight: 400;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
}

p.lead {
    font-size: 1.5rem;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
}

.navbar-toggler{
    justify-self: center;
}

.nav-link {
    color: #122261;
    font-size: 1.125rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.nav-link:hover {
    color: #9e168b;
}



section {
    margin: 30px auto;
    padding: 30px;
    border: 1px solid lightgrey;
    border-radius: 10px;
    background-color: whitesmoke;
}

.img-fluid{
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}
/* .text{
    font-size: 18px;
}
.titre{
    text-align: center;
    font-size: 25px;
    font-weight: bold;
}
.soustitre{
    margin: 20px;
    font-size: 23px;
    font-weight: 600;
} */
input[type="text"], textarea {
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
}

#mail {
    width: 40%;
    display: block;
    margin: auto;
    
}
#mail:hover{
    transform: scale(1.08);
    /* 8% plus gros */
    opacity: 0.7;
    transition: ease-out 0.2s;
}
}

/* footer {
    background-color: azure;
    padding: 20px 0;
    color: #122261;
} */
footer {
    background-color: azure;
    padding: 20px 0;
    color: #122261;
}
/* 
@media screen and (max-width: 1000px){
    header.jumbotron{
        height: 40vh;
    }
    h1.display-4{
        font-size: 35px;
    }
    p.lead{
        font-size: 20px;
    }
    .img-fluid{
        width: 15vh;
        display: block;
        margin: auto;
        
    }
    .text{
        font-size: 10px;
        
    }
    .titre {
        font-size: 15px;
        
    }
    
    .soustitre{
        font-size: 12px;
    }

    section {
        margin: 20px;
        padding: auto;
    }
    #mail{
        width: 10%;
    }
    .col-md-9{
        text-align: center;
    }
}

/* Navbar customizations for small screens 
@media screen and (max-width: 700px){
  
    nav {
        display: none !important;
    }
    header.jumbotron{
        height: 25vh;
    }
    h1.display-4{
        font-size: 15px;
    }
    p.lead{
        font-size: 10px;
    }
    .nav-link{
        text-align: center;
    }
    section {
        margin: 0px;
        border: none;
        padding: auto;
    }
    .img-fluid{
        width: 15vh;
     
        
    }
} */
/* Pour les écrans jusqu'à 1000px */
@media screen and (max-width: 1000px) {
    header.jumbotron {
        height: 20vh; /* Hauteur un peu plus grande que 15vh pour plus de visibilité */
    }

    h1.display-4 {
        font-size: 2rem; /* Réduction progressive pour une meilleure lisibilité */
    }

    p.lead {
        font-size: 1.1rem; /* Taille plus petite pour les petits écrans */
    }

    .img-fluid {
        width: 70%; /* Augmenter la taille de l'image pour une meilleure visibilité */
        height: auto;
        margin: 10px auto; /* Centrer l'image */
    }

    section {
        margin: 15px;
        padding: 15px;
    }

    #mail {
        width: 50%; /* Ajuster la taille des formulaires pour un meilleur alignement */
        margin: 10px auto; /*Centrer le bouton*/
    }


}

/* Pour les très petits écrans (téléphones) */
@media screen and (max-width : 700px) {
    nav {
        display: none !important; /* Cacher la navigation sur les petits écrans */
    }

    header.jumbotron {
        height: 30vh; /* Augmenter légèrement la hauteur pour plus d'espace */
    }

    h1.display-4 {
        font-size: 1.5rem; /* Ajuster la taille pour que le titre reste visible */
    }

    p.lead {
        font-size: 1rem; /* Réduire un peu plus la taille du texte */
    }

    .nav-link {
        text-align: center;
        font-size: 1rem; /* Adapter les liens */
    }

    section {
        margin: 10px;
        padding: 10px;
    }

    .img-fluid {
        width: 40%; /* Ajuster l'image à 40% de la largeur de l'écran */
        height: auto;
        display: block;
        margin: 10px auto;
    }

    #mail {
        width: 20% !important;
        margin: 10px auto !important; /*Centrer le bouton  Rendre le bouton mail plus large sur les petits écrans */
    }

    .col-md-9 {
        text-align: center;
        padding: 10px 0;
    }

    /* Formulaires et boutons plus accessibles */
    input[type="text"], textarea {
        font-size: 1rem;
        padding: 8px;
        width: 80%; /* Augmenter la largeur des champs */
        margin: 10px 0;
    }
}