/*
CSS du subwidget popin.php
S1F0 9/8/16 création par extraction de popin.php
S1F1 27/3/19 Z-index passé de 10 à 1000 dans .smart-popin et inhibé dans .smart-popin .sp-body
S1F2 10/5/20 pas mal de modif pour permettre le scrolling du contenu quand plus grand que la fentre => attention aux conséquences non vues ....
S1F3 06/03/26 : ajout de smart-popin.is-open (pour popin2.php)
*/

.smart-popin {
 	z-index: 1000; /* 10 */
	position: fixed;
    left: 0;
	right: 0;
    top: 0;
	bottom: 0;
    background-color: rgba(0,0,0,0.5);
    /*overflow: auto; /* inhibé 10/5/20* pour permettre le scrolling du contenu en cas de dépassement */
    opacity: 0;
    visibility: hidden;
	transition: all 0.4s ease;
}
.smart-popin:target, .smart-popin.is-open {
    opacity: 1;
    visibility: visible;
}
.smart-popin .sp-body {
    position:relative;
	/*z-index: 1000;*/
	width: auto;
    min-width: 300px;
    margin: 0 auto;
	background-color: rgba(249, 170, 2, .8);
    padding: 6px; /* était 2em */
    -webkit-box-shadow: 0 3px 5px 1px rgba(0,0,0,0.25);
    box-shadow: 0 3px 5px 1px rgba(0,0,0,0.25);
    width: 66.66%;
	border-radius: 1em;
	/*height: 100%; /* ajouté 10/5/20* pour permettre le scrolling du contenu en cas de dépassement */
	overflow: auto; /* ajouté 10/5/20* pour permettre le scrolling du contenu en cas de dépassement */
	max-height: 90vh;
}
.smart-popin .sp-body * {
    max-width: 100%;
}
.smart-popin .sp-table {
    /*display: table; /* inhibé 10/5/20* pour permettre le scrolling du contenu en cas de dépassement */
    height: 100%;
    width: 100%;
}
.smart-popin .sp-cell {
    /*display: table-cell; /* inhibé 10/5/20* pour permettre le scrolling du contenu en cas de dépassement */
    vertical-align: middle;
    padding: 10px;
	height: 100%; /* ajouté 10/5/20* pour permettre le scrolling du contenu en cas de dépassement */
}
.smart-popin .sp-back {
    position: fixed;
    left: 0;
	right: 0;
    top: 0;
	bottom: 0;
    display: block;
}
.smart-popin .sp-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 1.6em;
    color: #000000;
    font-weight: 900;
    text-decoration: none;
}
.smart-popin h2{
	color: white; /* titre du popin en blanc */
}