/* Configuration de base */
* {
    box-sizing: border-box;
    letter-spacing: -4px;
}

/* Attribution de l'animation pour le main */
main{
    min-width: 500;
    max-width: 1000;
    width: 70%;
    border-left-style: solid;
    padding-left: 10px;
    margin-left: auto;
    margin-right: auto;
    animation-name: main;
    animation-duration: 2s;
}

/* Couleur de fond */
body{
    background-color: #FFF7E7;
}

/* Configuration de la charte graphique des paragraphes */
p {
    color: black;
    margin: 45px 70px;
    font-family: "Policetres", impact; /* Police personnalisée */
    width: 80%;
    font-size: 18px;
    letter-spacing: 4px;  /* espacement entre les caractères */
}

.comp li {
    color: black;
    margin: 45px 70px;
    font-family: "Policetres", impact; /* Police personnalisée */
    width: 80%;
    font-size: 18px;
    letter-spacing: 4px;  /* espacement entre les caractères */
}

/* La police ne comprenant pas de chiffre il à fallu improviser */
em{
    font-family: "PoliceTitre", impact;
    font-style: normal;
    font-size: 20px;
}

h1 {
    /* On veut mettre un cadre coloré au titre. */
    border-color: #FFDE86;
    /* Par défaut, le cadre est invisible ; on le rend visible. */
    border-style: ridge;
    /* On centre le texte dans le cadre. */
    text-align: center;
    border-width: 10px;
    border-radius: 15px;
    width: 80%;
    /* Centrage */
    margin-left: auto;
    margin-right: auto;
    font-family: "PoliceTitre", impact;
    
}

h2{
    margin-top: 50px;
    border-bottom: 10px;
    border-bottom-style: groove;
    width: 151px;
    border-bottom-color: blanchedalmond;
    font-family: "PoliceTitre", impact;
}

h3 {
    margin: 25px;
    
    border-color: dimgray;
    font-family: "Policebis";
    letter-spacing: 10px;
    font-size: 20px;
}

h4{
    margin-top: 50px;
    width: 151px;
    font-family: "PoliceTitre", impact;
}

.btn {
text-decoration: none;
letter-spacing: 1px;
margin-right: 50px;
padding: 5px;
font-size: 1.2em;
color: #ffffff;
background-color: orange;
border-radius: 25px;
border-radius: 25px;
border: 4px solid #ffffff;
    
}
/* Date sur la ligne de gauche */
.date::before{
    content: "●----------------------------------------------";
    font-family: "PoliceTitre", impact;
    font-size: 30px;
    margin-left: -20.3px;
    animation-name: anim_date;
    animation-duration: 4s;
    
}
.date2::before{
    content: "● 2011";
    font-family: "PoliceTitre", impact;
    font-size: 30px;
    margin-left: -20.3px;
    animation-name: anim_date;
    animation-duration: 4s;
    
}


/* Configuration des survole de la souris */
h1:hover {
    color: red;
}

h2:hover {
    color: red;
}

h3:hover {
    color: red;
}

h4:hover {
    color: red;
}

cite::before {
    content: " « ";
}

cite::after {
    content: " » "
}

cite {
    background-color: azure;
}


.longtitre {
    margin-top: 50px;
    border-bottom: 10px;
    border-bottom-style: groove;
    width: 100%;
    border-bottom-color: blanchedalmond;
}



/* Configuration du menu */
nav>ul{
    list-style-type: none;
    text-align: center;
    border-top-style: solid;
    border-color: black ;
}
nav>ul>li{
    display: inline-block;
    text-align: center;
    margin: 0px 100px;
    padding: 0px;
    font-size: 25px;
    position: relative;
    
}



nav>ul>li>a{
    color: black;
    font-family: "PoliceTitre", impact;
}
strong{
    font-size: 0.7em;
}

nav>ul>li:hover {
    background-color: black;
    border-radius: 0px 0px 0px 0px;
}
nav>ul>li>a:hover{
    color: white;
    font-family: "PoliceTitre", impact;
}
nav>ul>li>a{
   text-decoration-line: none;
}



.infobullemenu {
    display: none;
    background-color: black;
    position: absolute;
    top: calc(100% + 2px);
    left: 20%;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 10px 10px 10px grey;
}




nav>ul>li:hover span {
    
    display: inline;
}

/* Configuration des images */
.img{
    /* Positionnement par rapport au texte */
    float: right;
    margin-right: 100px;
    border-radius: 15px;
    transition-property: scale;
    transition-duration: 1s;
}
.img:hover{
    transform: scale(1.1);
}


/* Animation CSS */
@keyframes anim_date { /* Animation de la date */
  from {
    font-size: 0px;
      opacity: 0%;
    
  }
    45% {
  opacity: 0%;
    }
     46% {
  opacity: 100%;
    }
  50% {
  font-size: 15px;
  transform: scale(1.3);
  
}
    75% {
  font-size: 30px;
  transform: scale(1.3) ;
  
}
 

  to {
    font-size: 30px;
    transform: scale(-1.3);
  }
}

@keyframes main {   /* Animation du main */
  from {
    width: 0%;
    opacity: 0%;
  }
  50% {
  width: 45%;
  opacity: 75%;
    }
  
  to {
    width: 70%;
    opacity: 100%;
    
  }
}




/* Ajout des polices personnalisée */

@font-face {
    font-family: "PoliceTitre";
    src: url("../fonts/Code.ttf");
}
@font-face {
    font-family: "Policebis";
    src: url("../fonts/RvD_CODE28.ttf");
}

@font-face {
    font-family: "Policetres";
    src: url("../fonts/Codec-Warm-Bold-trial.ttf");
}


