/*
 Theme Name:     Twenty Eleven Child
 Template:       twentyeleven
 Version:        1.0
 Description:    Thème enfant de Twenty Eleven
 Author:         Pierre GIVAUDAN
*/



/* Tes personnalisations CSS commencent ici */
body {
    background-color: #f5f5f5;
}


#page {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Ajuster le contenu si besoin */
#content {
    padding: 0 2%;
}

#branding {
    background: url('images/nrw-bandeau-330.png') no-repeat center center;
    background-size: cover;
    height: 250px; /* ajuste selon ta bannière */
    padding:0px;
}

#site-title a {
    color: #ffffff !important;
}

#site-description {
  color: #ffffff !important;  
}

nav#access {
    background-image:none;
    background-color:rgb(40 60 69 / 80%)
}
.singular.page .hentry {
    padding: 0;
}

.singular .entry-title {
    color: #283C45;
    font-size: 24px;
    font-weight: bold;
    line-height: 32px;
}

.singular .entry-header, .singular .entry-content, .singular footer.entry-meta, .singular #comments-title {
    margin: 0 auto;
    /* width: 68.9%; */
}

#content {
    padding: 0;
}

.singular #content, .left-sidebar.singular #content {
    margin: 0%;
    position: relative;
    width: auto;
}

/* Bloc de présentation blanc sur fond gris */
.nrw-greyblock {
    padding: 40px 20px; 
    width: 100%; 
    position: relative; 
    /*font-family: Arial, sans-serif;"*/
}

.nrw-greyblock-grey {
    background-color: #4A4A4A; 
    color: white; 
}

.nrw-greyblock-white {
    background-color: white; 
    color: #4A4A4A; 
}

.nrw-greyblock-title {
    margin-top: 0 !important; 
    margin-bottom: 0.3em;
    font-size: 2em !important;
    padding: 0 !important;
}

.nrw-greyblock p {
    font-size: 1.1em !important;
    line-height: 1.6;
    margin-top: 0.3em;
}


/* ------------------------- */
/* Articles de type storymap */
/* ------------------------- */
.article-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

@media (min-width: 1200px) {
  .article-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.article-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  max-width: 300px; /* 🔸 largeur max de chaque carte */
  width: 100%;       /* 🔸 pour rester responsive */
  margin: 0 ;    /* 🔸 pour centrer si carte < colonne */
}

.article-card:hover {
  transform: scale(1.02);
}

.article-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.article-card-content {
  padding-top: 2px;
  padding-right: 15px;
  padding-left: 15px;
  padding-bottom: 15px;
}

.article-card-content h3 {
  margin: 0 0 10px;
  font-size: .8em;
  line-height: 1.1;
}

.article-card-content p {
  margin: 0;
  font-size: 0.7em;
  color: #555;
}

.article-card-tags {
  margin-bottom: 5px;
}

.article-tag {
  display: inline-block;
  /*background-color: #0073aa;*/
  color: #283C45;
  /*padding: 4px 8px;*/
  font-size: 0.7em;
  /*border-radius: 4px;*/
  margin-right: 5px;
  /*text-transform: uppercase;*/
}


/*---------------------------------------------*/
/* Gestion de la storymap à prpoprement parler */
/*---------------------------------------------*/

.page-slug-srwstory .entry-content {
    width: 95% !important;
}

.page-id-90 .entry-content {
    width: 95% !important;
}

.storymap-header h1 {
    font-size: 2.5em;
    text-align: center;
    padding-left:5%;
    padding-right: 5%;
}

.storymap-header p.slogan {
    font-size: 2em;
    text-align: center;
    padding-left:5%;
    padding-right: 5%;    
}

.storymap-header p.meta {
    padding-left:7%;
    padding-right: 5%;    
}

.storymap-content {
  display: flex;
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.story-paragraph {
    margin-bottom:200px;
}

.storymap-text {
  flex: 1;
  max-width: 33.33%;
  overflow-y: scroll;
  padding: 2em;
  box-sizing: border-box;
  height: 100vh;
  font-size: 1.1em;
}


.storymap-text {
  scrollbar-width: thin;            /* Firefox */
  scrollbar-color: #ccc transparent;
}

.storymap-text::-webkit-scrollbar {
  width: 6px;                       /* Chrome, Edge, Safari */
}

.storymap-text::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}


.storymap-text h3 {
    font-size: 1.5em;
    line-height: 1.2;
}

.storymap-media {
  flex: 2;
  max-width: 66.66%;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2em;
}

.story-media-item {
  display: none;
}
.story-media-item.active {
  display: block;
}

.storymap-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  /*margin-top: 15px;*/
  transition: background-color 0.3s ease;
}

.storymap-button:hover {
  background-color: #005f8d;
}

.grafana-wrapper_1 {
  position: relative;
  width: 100vw;            /* pleine largeur écran */
  height: 100vh;           /* pleine hauteur écran */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
}

.grafana-iframe_1 {
  width: 95%;
  height: 100%;
  border: 0;
}

.grafana-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 98vw;
  height: 90vh;
  z-index: 9999;
  background: white;
  padding-top: 70px;
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 20px;
}

.grafana-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bouton retour */
.grafana-back-btn {
  position: absolute;
  top: 35px;
  left: 15px;
  z-index: 10000;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #222;
  color: #fff;
  opacity: 0.85;
}

.grafana-back-btn:hover {
  opacity: 1;
  background: #444;
}