/*
font-family: "antique-olive-nord", sans-serif;
font-weight: 400;
font-style: normal;

font-family: "antique-olive-nord", sans-serif;
font-weight: 400;
font-style: italic;
*/

@font-face {
  font-family: "Compagnon-Roman";
  src: url("Compagnon-Roman.otf");
}

@font-face {
  font-family: "Compagnon-LightItalic";
  src: url("Compagnon-LightItalic.otf");
}

@font-face {
  font-family: "antique-olive-nord", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body, html {
  margin: 0;
  padding: 0;
}

.parent {
  display: grid;
  grid-template-columns: 16.5% 18% 18% 18% 18% 11.434%;
  grid-template-rows: 5% 20% 20% 18.33% 18.33% 12.33% 6%;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  height: 100vh;
  width: 100vw;
  align-content: space-between;
  box-sizing: border-box;
}

.div1 { 
    grid-area: 1 / 1 / 3 / 2; 
    border-right: 1px solid #e4deed;
    border-bottom: 1px solid #e4deed;
    background-color: #765ba7;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10%;
}

.logo-image {
    max-width: 100%;
    height: auto;
}

.div2 { 
    grid-area: 1 / 2 / 2 / 3; 
    border-right: 1px solid #e4deed;
    border-bottom: 1px #765ba7;
    background-color: #765ba7;
    width: 99.5%; 
    max-height: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div3 { 
    grid-area: 1 / 3 / 2 / 4; 
    border-right: 1px solid #e4deed;
    border-bottom: 1px #765ba7;
    background-color: #765ba7;
    margin: auto;
    width: 99.5%; 
    max-height: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div4 { 
    grid-area: 1 / 4 / 2 / 5;
    border-right: 1px solid #e4deed;
    border-bottom: 1px #765ba7;
    background-color: #765ba7;
    margin: auto;
    width: 99.5%; 
    max-height: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div5 { 
    grid-area: 1 / 5 / 2 / 6; 
    border-right: 1px solid #e4deed;
    border-bottom: 1px #765ba7;
    background-color: #765ba7;
    margin: auto;
    width: 99.5%; 
    max-height: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div6 { 
    grid-area: 1 / 6 / 2 / 7; 
    border-bottom: 1px #765ba7;
    background-color: #765ba7;
    margin: auto;
    width: 99.5%; 
    max-height: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div7 { 
    grid-area: 3 / 1 / 4 / 2; 
    border-right: 1px solid #e4deed;
    border-bottom: 1px solid #e4deed;
    background-color: #765ba7;
    display: flex;
    align-items: center;
}

.div8 { 
    grid-area: 4 / 1 / 5 / 2; 
    border-right: 1px solid #e4deed;
    border-bottom: 1px solid #e4deed;
    background-color: #765ba7;
    display: flex;
    align-items: center;
}

.div9 {
    grid-area: 5 / 1 / 6 / 2;
    border-right: 1px solid #e4deed;
    border-bottom: 1px solid #e4deed;
    background-color: #765ba7;
    display: flex;
    align-items: center;
}

.div10 { 
    grid-area: 6 / 1 / 7 / 2; 
    border-right: 1px solid #e4deed;
    border-bottom: 1px solid #e4deed;
    background-color: #765ba7;
    display: flex;
    align-items: center;
}

.div11 {
    grid-area: 7 / 1 / 8 / -1;
    margin-bottom: 0;
    width: 100%;
    margin: auto;
    max-height: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.div12 { 
    grid-area: 2 / 2 / 3 / 7; 
    background-color: #e4deed;
    border-bottom: 1px solid #765ba7;
    margin-top: 0;
}

/* Masquer div13 */
.div13 { 
    display: none;
}

.div14 { 
    grid-area: 3 / 2 / 7 / 4; 
    background-color: white;
    border-right: 1px solid #765ba7;
    border-bottom: 1px solid #765ba7;
    overflow: auto;
}

.div15 { 
    grid-area: 3 / 4 / 7 / 7; /* Étend div15 pour occuper l’espace de div13 */
    background-color: white;
    border-right: 1px solid #765ba7;
    border-bottom: 1px solid #765ba7;
    overflow: auto;
}

mark {
  background-color: #765ba7;
  color: white;
}

h1 {
    font-family: "antique-olive-nord", sans-serif;
    text-align: center;
    padding: 5%;
    color: white;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2vw;
    }
}

@media (min-width: 769px) {
    h1 {
        font-size: 1vw;
    }
}

h2 {
    font-family: "antique-olive-nord", sans-serif;
    font-style: normal;
    padding: 10px;
    color: #765ba7;
}

@media (max-width: 768px) {
    h2 {
        font-size: 6vw;
    }
}

@media (min-width: 769px) {
    h2 {
        font-size: 3.5vw;
    }
}

h3 {
    font-family: "antique-olive-nord", sans-serif;
    margin: 5%;
    color: #765ba7;
}

@media (max-width: 768px) {
    h3 {
        font-size: 5vw;
    }
}

@media (min-width: 769px) {
    h3 {
        font-size: 1.5vw;
    }
}

#txtfr {
    font-family: "Compagnon-Roman";
    margin: 5%;
    color: #765ba7;
}

@media (max-width: 768px) {
    #txtfr {
        font-size: 3vw;
    }
}

@media (min-width: 769px) {
    #txtfr {
        font-size: 1.2vw;
    }
}

#txten {
    font-family: "Compagnon-LightItalic";
    margin: 5%;
    color: #765ba7;
}

@media (max-width: 768px) {
    #txten {
        font-size: 1.6vw;
    }
}

@media (min-width: 769px) {
    #txten {
        font-size: 0,8vw;
    }
}

#txtinfo {
    font-size: 1vw;
    font-family: "Compagnon-Roman";
    text-align: center;
    padding: 10%;
    color: white;
}

@media (max-width: 768px) {
    #txtinfo {
        font-size: 2vw;
    }
}

@media (min-width: 769px) {
    #txtinfo {
        font-size: 1.1vw;
    }
}

#txtbandeau {
    font-family: "antique-olive-nord";
    margin-left: 5%;
    color: #765ba7;
    animation: scrollText 25s linear infinite;
    white-space: nowrap;
}


@media (max-width: 768px) {
    #txtbandeau {
        font-size: 2.5vw; /* Taille de police pour les petits écrans */
    }
}

@media (min-width: 769px) {
    #txtbandeau {
        font-size: 1vw; /* Taille de police pour les écrans plus larges */
    }
}

/* Définition de l'animation */
@keyframes scrollText {
    0% {
        transform: translateX(100%); /* Départ à droite */
    }
    100% {
        transform: translateX(-100%); /* Retour à droite après avoir traversé l'écran */
    }
}


a:link {
  text-decoration: none;
  color: white;
}

a:visited {
  text-decoration: none;
  color: white;
}


/* Media query pour les petits écrans (max-width: 600px) */
@media only screen and (max-width: 600px) {
  .parent {
    display: grid;
    grid-template-columns: 20% 20% 20% 20% 20%; 
    grid-template-rows: 12% 6% 6% 10% 25.5% 10% 25.5% 5%; /* Redéfinissez le comportement des lignes en mode responsive */
  }

  .div1 {
    grid-area: 1 / 1 / 2 / 6;
    max-width: 100%;
  }

.logo-image {
        width: auto; /* Laisse la largeur s'ajuster automatiquement en fonction de la hauteur */
        height: 400%; /* L'image s'affichera à 100% de la hauteur de sa div parente */
    }


.div7 {
    grid-area: 2 / 1 / 3 / span 2; /* .div7 occupe les deux premières colonnes */
}

.div8 {
    grid-area: 2 / 3 / 3 / 4; /* .div8 occupe la troisième colonne */
}

.div9 {
    grid-area: 2 / 4 / 3 / 5; /* .div9 occupe la quatrième colonne */
}

.div10 {
    grid-area: 2 / 5 / 3 / 6; /* .div10 occupe la cinquième colonne */
}

.div2 {
    grid-area: 3 / 1 / 4 / 2;
    height: 150px;
}

.div3 {
    grid-area: 3 / 2 / 4 / 3;
    height: 150px;
}

.div4 {
    grid-area: 3 / 3 / 4 / 4;
    height: 150px;
}

.div5 {
    grid-area: 3 / 4 / 4 / 5;
    height: 150px;
}

.div6 {
    grid-area: 3 / 5 / 4 / 6;
    height: 150px;
}

  .div12 {
    grid-area: 4 / 1 / 5 / -1; /* div 12 sur une ligne, toute la largeur */
  }

  .div14 {
    grid-area: 5 / 1 / 6 / -1; /* div 14 qui prend toute la place qu'il lui faut */
  }

  .div13 {
    display: none; /* Ne pas afficher la div 13 */
  }

  .div15 {
    grid-area: 6 / 1 / span 7 / -1; /* div 15 qui prend toute la place nécessaire */
  }


  .div11 {
    grid-area: 7 / 1 / 8 / -1; /* Supprimez la définition spécifique pour les petits écrans */
    width: 100%; /* Définissez la largeur à 100% pour occuper toute la largeur sur les petits écrans */
    margin-top: 0; /* Supprimez la marge si nécessaire */
    padding: 0;
    border:none;
    box-sizing: border-box;
     /* Désactivez l'animation pour les petits écrans */
    white-space: normal; /* Permettez au texte de revenir à la ligne sur les petits écrans */
    transform: none; /* Réinitialisez la transformation */
  }
}

@media (max-width: 768px) {
  .div1 .logo-image {
    content: url("logo_petit_ecran.png");
    /* Ajoutez d'autres styles spécifiques si nécessaire */
  }
}


.div14, .div15 {
    position: relative;
}


.image-hover {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.show-image {
    display: block;
}


