*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*En-tête sur toutes les pages*/
header {
    width: 100%;
    background-color: rgb(78, 65, 156);
}
header .container{
    display: grid;
    grid-template-columns: 2fr 8fr 2fr;
    grid-template-rows: 100px auto 100px;
    padding: 1% 1% 0 1%;
    
}
header h1 { /*Ecrivain Public*/
    color:rgb(223, 225, 228);
    text-shadow: 1px 1px 2px rgb(13, 13, 77);
    font-size: 200%;
    text-align: center; 
    padding: 10px;  
}
header .Banniere img{
    width: 100%;
    height: 100%;
}
header .logo img{ /*Logo*/
    width: 100px;
    height: 100px;
    border: 1px solid black;
}
header .DigiPlume img{ /*Digi-Plume bleu*/
    width: 100%;
    height: 70px;
}
nav ul{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    grid-template-rows: 70px;
    list-style-type: none;
    text-align: center;
    align-items: end;
    padding: 0 0 5px 0;
}
nav li a{
    color: #DAA53B;
    text-decoration: none;
    font-size: 20px;
}
nav li a:hover {
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 0 10%;
}
/*En-tête responsive pour petit écran*/
@media all and (max-width: 800px) {
    header .container{
        grid-template-rows: 50px auto 50px;
    }
    header .DigiPlume img{ /*Digi-Plume diminue de taille en-dessous des écrans de 768px*/
        width: 100%;
        height: 50%;
    }
    header .logo img{ /*Logo*/
        width: 50px;
        height: 50px;
    }
    header h1 { /*Ecrivain Public*/
        font-size: 100%;
        padding: 5px;
    }
    nav ul{
        grid-template-rows: 40px;
    }
    nav li a{
        font-size: 50%;
    }
    nav li a:hover {
        border: none;
        padding: 0;
    }
}

/*Décoration page principale sur toutes les pages*/
main{
    background-image: url("image/fond.jpg");
    background-size: 100% 100%;
    background-color: rgb(227, 229, 199);/* au cas où l'image n'est pas chargée */
}
main h1{
    text-align: center;
    font-size: 35px;
    padding-top: 15px;
}
main ul{
    padding: 0 0 0 30px;
}

/*Page index*/
.citation{
    text-align: center;
    padding: 5% 5% 0 5%;
}
.citation span{
    font-style: italic;
    font-weight: bold;
    font-size: 25px; 
}
main .container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    text-align: center;
    padding: 5% 0;
    align-items: center;
}
.texte {
    text-align: justify;
    padding: 5%;
    font-size: 20px;
    line-height: 200%;
}
.texte img{
    width: 50px;
    height: 50px;
    position: relative;
    top: 20px;
}
.Image img{
    border: 5px double black;
    width: 70%;
    height: 60%;
}
.Image p{
    font-style: italic;
    font-size: 10px;
}
main h2{
    font-size: 50px;
    font-family: "Great Vibes", sans-serif;
    text-align: center;
    padding: 5% 0;
}
.prestation2{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 3fr));
    text-align: center; 
}
.prestation2 img{
    width: 150px;
    height: 150px;
    
}
.prestation2 p{
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    padding: 30px 0px 70px 0px;
}

/*Page index responsive pour petit écran*/
@media all and (max-width: 800px) {
    .citation span{
        font-size: 15px; 
    }
    .citation p{
        font-size: 10px;
    }
    .texte {
        font-size: 15px;
    }
    .prestation2 img{
        width: 100px;
        height: 100px;
        
    }
    .prestation2 p{
        font-size: 20px;
    }
}

/*Onglet crédits*/
.icones{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 3fr));
    text-align: center;
    grid-gap: 50px;
}
.icones img {
    width: 100px;
    height: 100px;
    text-align: center;
}


/*Onglet addresses utiles*/

.Image2{/*Téléphone*/
    text-align: center;
    padding: 20px;
}
.Image2 img{
    width: 250px;
    height: 200px;
}
.Image2 p{
    font-style: italic;
    font-size: 10px;
}
.container2{/*pour CNFDI*/
    display: grid;
    grid-template-columns: 5fr 5fr;
    padding: 40px 0 0 40px;   
}
.container2 img{
    width: 250px;
    height: 100px;
}
.CNFDI{
    display: flex;
    align-items: center;
    justify-content: left;
}
/*Addresses utiles responsive pour petit écran*/
@media all and (max-width: 800px) {
    .Image2 img{
        width: 200px;
        height: 150px;
    }
    .container2{
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        padding: 10px 0 0 0;  
    }
    .container2 img{
        width: 150px;
        height: 80px;
    }
    .CNFDI{
        justify-content: center;
    }
}

/*Onglet ecrivain public*/

h4{
    text-decoration: underline;
    font-size: 25px;
}

.signature p{
    text-align: right;
    padding: 50px;
    font-size: 20px;
    line-height: 30px;
}

/*Onglet formulaire*/
.container3{
    position: relative;
    height: 800px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container3 img{
    height: 250px;
    Width: 38%;
    position: absolute;
    top: 50px;
    left: 60%;
    z-index: 2;
}
form {
    width: 70%;
}
.formulaire{ /*parchemin derrière le formulaire de contact*/
    display: flex;
    justify-content: center;
    align-items: center; /*ces 3 lignes servent à aligner le formulaire de contact au milieu du parchemin*/
    background-image: url("image/parchemin.png");
    background-size: 100% 100%;
    height: 80%;
    width: 90%;
    background-position: center;
    position: absolute;
    z-index: 1;
}
textarea{/*case message*/
    width: 100%;
    height: 200px;
    font-size: 85%;
    border: 3px solid rgb(140, 66, 23);
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
    filter: opacity(70%);
    margin-top: 30px;
}
input{ /*champs du formulaire de contact*/
    font-size: 85%;
    border: 3px solid rgb(140, 66, 23);
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
    filter: opacity(70%); /*rendre la case transparente*/
    width: 70%;
    margin-top: 30px;
}
input[type=email]{/*taille de la case email*/
    width: 100%;
    margin-top: 80px;
}
input[type=submit]{
     width: 50%;
}

/*Contact responsive pour grand écran*/
@media all and (min-width: 800px) {
    .container3{
        height: 1100px;
    }
    .container3 img{
        height: 500px;
        Width: 325px;
        top: -50px;
        left: 60%;
    }
    .formulaire{ /*parchemin derrière le formulaire de contact*/
        height: 1000px;
        width: 800px;
    }

    textarea{/*case message*/
        width: 580x;
        font-size: 25px;
        border: 5px solid rgb(140, 66, 23);
    }
    input{ /*champs du formulaire de contact*/
        font-size: 25px;
        border: 5px solid rgb(140, 66, 23);
    }
    input[type=email]{/*taille de la case email*/
        width: 580px;
    }
    input[type=submit]{
        width: 150px;
    }
}


/* Onglet mes écrits*/
.container4{ /*lettre 1 et 2 dans mes écrits*/
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    place-items: center;
}
.container4 img{
    width: 280px;
    height: 400px;
    transition: transform .1s;  
}
@media all and (min-width: 800px){
    .container4 img:hover{
        -ms-transform: scale(2.5); /* IE 9 */
        -webkit-transform: scale(2.5); /* Safari 3-8 */
        transform: scale(2.5);
        overflow: auto;
    }
    .container4 .lettre1 img:hover {
        transform-origin: 0 center;
        -ms-transform-origin: 0 center; /* IE 9 */
        -webkit-transform-origin: 0 center; /* Safari 3-8 */
    }
}

/*Onglet mes écrits - Diaporama */
.custom-slider { display: none; }
.slide-container {
    max-width: 1100px;
    position: relative;
    margin: auto;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    background-color: rgba(0,0,0,0);
    transition: background-color 0.6s ease;
}
.prev{ left: 15px; }
.next { right: 15px; }
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.5);
}
.slide-img{
    width: 100%;
    height: 700px;
}
.slide-dot{ 
    text-align: center;
    padding-bottom: 50px; 
}
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #999999;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.active, .dot:hover { background-color: #111111; }
.fade {
    animation-name: fade;
    animation-duration: 1s;
}
@keyframes fade {
    from {opacity: 0}
    to {opacity: 1}
}
@media all and (max-width: 800px){
    .slide-img{
        height: 400px;
    }
}
@media all and (max-width: 450px){
    .slide-img{
        height: 200px;
    }
    .dot {
        cursor: pointer;
        height: 5px;
        width: 5px;
    }
    .prev, .next {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
}



/*Onglet tarifs*/
.container5{
    width: 100%;
}
.card-container{
    display: grid;
    grid-template-columns: 3fr 3fr 3fr;
    grid-gap: 50px;
}
@media all and (max-width: 1000px){
    .card-container{
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}
@media all and (max-width: 320px) {
    .card-container{
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 0;
        margin: 0;
    }
}
.card-wrapper {
    position: relative;
    height: 350px;
    perspective: 1000px; /*perspective utiliser sur les enfants, ne touche pas l'élément mais les enfants de l'élément*/
    perspective-origin: top;
    margin: 70px 0;
}
.card-wrapper:hover .card {
    transform: rotateY(180deg);
}
.card {
    position: relative;
    height: 350px;
    width: 100%;
    transform-style: preserve-3d;/*garde l'univers 3d qu'on a créé*/
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}
.card-front,
.card-back {
    position: absolute;
    height: 350px;
    width: 100%;
    padding: 0 10px;
    backface-visibility: hidden;/*backface-visibility utilisé pour voir l'un ou l'autre mais pas les deux en même temps*/
    -webkit-backface-visibility: hidden;/*webkit ajouté pour Safari et chrome*/
}
.tarif{
    border-radius: 8px 8px 0px 0px;
    height: 300px;
}
.titretarif{
    height: 50px;
}
.card-back {
    transform: rotateY(180deg);
    text-align: justify;
    font-size: 20px;
    overflow: auto;
    border-radius: 8px;
}
.card-front img{
    display: flex;
    height: 90%;
    margin: auto;
    padding: 40px 0;
}
.card-front p {
    display: flex;
    padding: 2%;
    font-size: 25px;
    background-color: white;
    border-radius: 0px 0px 8px 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/*Footer sur toutes les pages*/
footer {
    width: 100%;
    background-color: #4E419C;
}
footer ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    grid-template-rows: 90px;
    list-style-type: none;
    text-align: center;
    align-items: center;
    padding: 30px 0 30px 0;
}
footer li a{
    color: white;
    text-decoration: none;
    font-size: 20px;
}
/*Coloration bouton blanc quand l'écran est suffisamment grand*/
@media all and (min-width: 800px){
    footer li a:hover{ /*bouton blanc apparaissant dans le menu du footer quand on passe la souris*/
        border: 2px solid white;
        border-radius: 10px;
        padding: 0 10%;
    }
}

/*Foorter responsive pour petit écran*/
@media all and (max-width: 800px) {
    footer li a{
        font-size: 10px;
    }
}