/* ========================
   GLOBAL
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================
   PAGE D'ACCUEIL (index.html)
======================== */
body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
}

.page-accueil {
  
  background-size: cover;
  background-position: center top;
  min-height: 100vh;
}

.page-vieillissement {

h1 { font-size: 1em;text-align: center; padding: 2%;}
}
.page-logement {

h1 { font-size: 1em;text-align: center; padding: 2%;}
}

.page-espace_vert {
  
h1 { font-size: 1em;text-align: center; padding: 2%;}
}

.page-info {
h1 { font-size: 1em;text-align: left; padding: 2%;}
h2 {font-size: 1em ; padding: 2%;}
h3 {font-size: 85% ;padding:1%;}

}

.img-info {
  width: 35%;
  height: auto;    /* jamais de height fixe sur une image, ça déforme */
  display: block;
  margin: 1rem 0;
}

.page-texte {
  h2 {font-size: 1em;}
  h3 {font-size: 1%;  }
}

/* ========================
   CARTE AVEC PICTOGRAMMES
======================== */
.carte {
  position: relative;
  width: 100%;
  height: 100vh;       
  overflow: hidden;   
}

.carte-image {
  width: 100%;
  height: 100%;
  object-fit: cover;      
  object-position: center top;  

}

.picto {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.picto:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

/* règles communes à tous les pictos */
.picto img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}

/* ajustements individuels */
.picto-vielliesses img {
  width: 500px;
  height: 500px;
}

.picto-locataire img {
  width: 100px;
  height: 100px;
}

.picto-espacevert img {
  width: 150px;
  height: 150px;
}

.picto-info img {
  width: 100px;
  height: 100px;
}

.picto-span {
  font-size: 0.55rem;
}

/* ========================
   RESPONSIVE (mobile)
======================== */
@media (max-width: 768px) {

  /* les pictos rapetissent */
  .picto img {
    width: 80px;
    height: 80px;
  }

  .picto-vieillesse img {
    width: 100px;
    height: 100px;
     h1 {
    font-size: 0.85rem;
    padding: 3% 4%;
    text-align: center;
   }
  }

  .picto-locataire img {
    width: 20px;
    height: 20px;
     h1 {
    font-size: 0.85rem;
    padding: 3% 4%;
    text-align: center;
  }
  }

  .picto-page_espace-vert img {
    width: 35px;
    height: 35px;
   h1 {
    font-size: 0.85rem;
    padding: 3% 4%;
    text-align: center;
  } 

  }

  .picto span {
    font-size: 0.55rem;
  }

  /* le bouton nav rapetisse */
  .bouton-nav img {
    width: 100px;
    height: 50px;
    width: 90px;
    height: 45px;
  }

  .bouton-nav {
    margin-left: 4%;
    margin-top: 8%;
    margin-left: 4%;
    margin-top: 4%;
  }

/* page info */
  .page-info img {
    width: 100%;    /* l'image de la carte prend toute la largeur */
    height: auto;   /* garde les proportions */
  }

  .page-info article {
    padding: 4%;
  }

  blockquote {
    margin-left: 4%;
    font-size: 0.85rem;
  }
  
}


.bouton-nav {
  margin-left: 0.8%;
  margin-top: 2%;
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s;   /* active l'animation */
}

.bouton-nav:hover {
  transform: scale(1.1);        /* grossit au survol */
}

.bouton-nav img {
  width: 160px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));  /* ombre comme les pictos */
}

.bouton-nav span {
  position: absolute;      /* par-dessus l'image */
  bottom: 10px;
  left: 20px;
  top: 50px;
  text-align: center; 
  color: rgb(13, 240, 229);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.bouton-nav:hover img {
  opacity: 0.85;
}


  #iFrameAtlas {
                position: relative;
                width: 100%;
                padding-bottom: 55%;
            }

            @media (orientation:portrait) {
                #iFrameAtlas {
                    padding-bottom: initial;
                    height: 200vw;
                    max-height: 85vh;
                }
            }
.page-info img h1 {
width: 150px;
height: 150px;
left: 20%;
right: 20%;

}