/* ----- STYLES POUR TOUTES LES PAGES ----- */
*{
   scroll-behavior: smooth; 
}

body {
    max-width: 100vw;
    min-width: 450px;
    /*pour les petites résolutions : smartphone et petits écrans de tablette*/
    overflow-x: hidden;
    box-sizing: border-box;
}

body a:hover {
    text-decoration: none;
}

::selection {
    color: white;
    background-color: #009970;
}


/* -- BOUTONS -- */
/* .bouton = classe commune à tous les boutons*/
.bouton {
    padding: 10px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    transition-duration: 0.8s;
    /*quand la souris quitte l'élément concerné par la transition*/
}

.bouton-plein {
    background-color: #009970;
    color: white;
}

.bouton-plein:hover {
    background-color: #009970c0;
    color: white;
    transition-duration: 0.6s;
}

.bouton-header {
    border: solid 3px white;
    width: 25%;
    font-weight: 500;
    color: white;
}

.bouton-header:hover {
    border: solid 3px #009970;
    color: white;
    background-color: #009970;
    transition-duration: 0.6s;
}

.bouton-secondaire {
    background-color: rgba(255, 255, 255, 0.35);
    color: white;
}

.bouton-secondaire:hover {
    background-color: white;
    color: #009970;
}

.bouton-secondaire-vert {
    background-color: #009970ac;
    color: white;
}

.bouton-secondaire-vert:hover {
    background-color: #009970;
    color: white;
}


/* -- LIENS -- */
.lien {
    color: #009970;
}

.lien:hover {
    color: #009970;
}


/* -- PROPRIETES FLEX -- */
.avantages,
.section-valeur,
.section-visite,
.itineraire-chateau {
    flex-wrap: wrap;
}


/* -- TITRE SECTION -- */
.section-visite hr,
.presentation-accueil hr,
.presentation-chateau hr,
.entete-formulaire hr {
    border: #009970 solid 3px;
    background-color: #009970;
    width: 10vw;
    margin: auto;
}


/* -- STYLES TYPOGRAPHIQUES -- */
.presentation-chateau h1,
.presentation-accueil h1 {
    text-align: center;
    font-weight: 600;
}

.presentation-chateau p,
.card-text,
.bloc-valeur p {
    font-weight: 300;
}


/* -- MENU -- */
nav {
    width: 100vw;
    min-height: 10vh;
    background-color: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.200);
}

.nav-link {
    color: black;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.active,
.active>.bouton-plein,
.dropdown-menu.show>.active {
    color: #009970;
    font-weight: 600;
}

.dropdown-menu>.dropdown-item {
    font-weight: 300;
}

.dropdown-menu.show>.active,
.dropdown-menu>.dropdown-item:hover {
    background-color: transparent;
}

.nav-link:hover,
.dropdown-menu>.dropdown-item:hover {
    color: #009970;
}

.dropdown-menu.show {
    border: 0px;
}

.nav-item>.bouton-plein {
    max-width: 20%;
    text-align: center;
    color: white;
}


/* -- HEADER = entête prenant la totalité de la hauteur de la fenêtre sur toutes les pages concernées (page d'accueil + pages des châteaux) -- */
header {
    position: relative;
    background-color: black;
    height: 100vh;
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
}

header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

header .container {
    position: relative;
    z-index: 2;
}

header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.3;
    z-index: 1;
}


/* -- FOOTER -- */
.lien-footer {
    color: gray;
}

.lien-footer:hover {
    color: #009970;
}

.bouton-footer {
    font-size: 14px;
    color: #009970;
    border: solid 1px #009970;
}

.bouton-footer:hover {
    background-color: white;
    color: #009970;
    border: solid 2px #009970;
    transition-duration: 0.6s;

}

.bande-footer {
    color: white;
    background-color: #009970;
    height: 5vh;
}

.bande-footer .lien-footer {
    color: white;
}




/* ----- STYLES POUR LA PAGE D'ACCUEIL ----- */
.presentation-accueil {
    padding: 35px;
}

.presentation-accueil > h1,
.presentation-accueil > p {
    text-align: center;
}

#section1-accueil::before {
    display: block;
    content: " ";
    margin-top: -100px;
    height: 100px;
    visibility: hidden;
    pointer-events: none;
}

/* -- BLOC VERT -- */
.bloc, 
.bloc-vert {
    border-radius: 10px;
}

.bloc-vert {
    color: white;
    background-color: #009970;
    padding: 25px;
}

.bloc-vert > h2 {
    text-align: center;
}

.bloc-vert > .bouton-plein:hover {
    background-color: white;
    color: #009970;
}

.bloc-valeur {
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 10px 10px 20px rgb(226, 226, 226);
    transition-duration: 0.4s;
    padding: 25px 50px;
    margin: 25px auto 10px auto;
}

.bloc-valeur:hover,
.card:hover {
    box-shadow: 20px 20px 35px rgb(226, 226, 226);
    transition-duration: 0.6s;
}

.bloc-valeur img {
    width: 50px;
}

/* -- SECTION "CALL TO ACTION (CTA)" -- */
.cta {
    height: 250px;
    width: 100vw;
    align-items: center;
    justify-content: space-around;
    background-image: url(../images/loire.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    padding: 3vh;
    color: white;
    margin-top: 30px;
}

.cta > p {
    width: 75%;
    text-align: center;
    font-size: 14px;
}

/* -- PRESENTATION DES CHÂTEAUX -- */
.section-visite {
    padding-top: 30px;
}

.section-visite h1 {
    text-align: center;
    margin-top: 45px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.explication-chateau {
    text-align: center;
    width: 90%;
    margin: auto;
}

.vignette-chateaux {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.card {
    transition-duration: 0.6s;
    margin: 15px 50px 20px 50px;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.card-text {
    margin-bottom: 25px;
}




/* ----- STYLES PAGES DES CHATEAUX ----- */
.entete-chateau-amboise {
    height: 100vh;
    background-image: url(../images/amboise-entete.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.entete-chateau-chambord {
    height: 100vh;
    background-image: url(../images/chambord-entete.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.entete-chateau-cheverny {
    height: 100vh;
    background-image: url(../images/cheverny-entete.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

#section1-amboise::before {
    display: block;
    content: " ";
    margin-top: -100px;
    height: 100px;
    visibility: hidden;
    pointer-events: none;
}

#section1-chambord::before {
    display: block;
    content: " ";
    margin-top: -100px;
    height: 100px;
    visibility: hidden;
    pointer-events: none;
}

#section1-cheverny::before {
    display: block;
    content: " ";
    margin-top: -100px;
    height: 100px;
    visibility: hidden;
    pointer-events: none;
}

.presentation-chateau {
    flex-wrap: wrap;
    padding: 30px 0px;
}

.presentation-chateau div img {
    width: 100%;
}

.donnees-chateau {
    background-color: #009970;
    padding: 35px 0px;
    color: white;
}

.donnees-chateau h1 {
    padding-bottom: 20px;
    color: white;
}

table {
    padding-top: 50px;
}

.lien-tableau {
    color: white;
    text-decoration: underline;
}

.lien-tableau:hover {
    color: white;
}

.itineraire-chateau {
    width: 100vw;
    overflow-x: hidden;
}

.coordonnees-chateau {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.coordonnees-chateau {
    padding: 20px 0px;
}

.flex-coordonees-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-icone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex-coordonees {
    display: flex;
}

.carte {
    margin-top: 15px;
    padding: 0;
}

iframe {
    width:100%;
    border:0; 
}




/* ----- STYLES PAGE DE CONTACT ----- */
.entete-formulaire {
    margin-top: 100px;
    margin-bottom: 30px;
}

.asterisque-formulaire {
    color: red;
}

form .bouton {
    border: 0px;
}

form .bouton-contour-vert {
    border: solid 2px #009970;
    background-color: transparent;
    font-weight: 500;
    color: #009970;
}

form .bouton-contour-vert:hover {
    color: white;
    background-color: #009970;
    transition-duration: 0.6s;
}




/* ----- STYLES RESPONSIVE / MEDIA QUERIES ----- */

/*pour les moyennes résolutions : tablettes et petots écrans d'ordinateur*/
@media (min-width:768px) {
    /* -- PAGE D'ACCUEIL -- */
    .cta {
        height: 300px;
    }

    .cta > p {
        width: 65%;
        font-size: 16px;
    }

    /* -- PAGE DES CHÂTEAUX -- */
    .vignette-chateaux {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .card {
        margin: 15px 25px 20px 25px;
    }

}


/*pour les grandes résolutions : écrans d'ordinateur*/
@media (min-width:992px) {
    /* --- MENU --- */
    .navbar-nav {
        margin: auto;
        width: 45%;
        justify-content: space-around;
    }

    .nav-item > .bouton-plein {
        min-width: 175%;
        text-align: center;
    }


    /* --- PAGE D'ACCUEIL --- */
    .presentation-accueil > h1,
    .presentation-accueil > p {
        text-align: left;
    }

    .bloc-valeur {
        padding: 20px;
        margin: 0px
    }

    .section-valeur {
        justify-content: space-around;
    }

    .section-visite h1 {
        text-align: left;
        margin-top: 45px;
    }

    .section-visite hr,
    .presentation-accueil hr,
    .presentation-chateau hr {
        margin-top: 0;
        margin-left: 0;
        width: 5vw;
    }

    .cta {
        height: 250px;
    }

    .cta > p {
        width: 50%;
    }
    

    /* -- PAGE DES CHÂTEAUX -- */
    .presentation-chateau h1 {
        text-align: left;
    }

    .explication-chateau {
        text-align: left;
        margin-left: 0;
    }

    .coordonnees-chateau {
        margin-left: 15%;
        align-items: flex-start;
    }

    .flex-icone {
        flex-direction: row;
        align-items: center;
    }

    .flex-coordonees-btn {
        flex-direction: column;
        align-items: flex-start;
    }

    .flex-coordonees {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .carte {
        margin-top: 0px;
    }
}