/*
 This file was generated by Dashcode.
 You may edit this file to customize your widget or web page
 according to the license.txt file included in the project.
 */

@viewport {
    width: device-width; /* largeur du viewport */
    zoom: 1; /* zoom initial à 1.0 (et clin d'oeil aux fans d'IE6/7) */
}

/* initialisation */
body,header,nav,section,footer,div,td,p{ margin:0px; padding:0px;}

/* ****** positionnement dans la page ****** */
/* structure de la page (1000px de large) */

/* positionnement */
html {
    height: 100%; /* pour que le gradient descende jusque en bas de la fenêtre. la fonction resize est encore nécessaire ! */
}

body{
    height: 100%;
}

#container {
    margin: 0 auto; /* marges nulles et centrer horizontalement le bloc dans la fenêtre */
    overflow: hidden;
}

header {
    margin: 0 auto; /* marges nulles et centrer horizontalement le bloc dans la fenêtre */
    height: 60px;
    overflow: hidden;
    width: 100%;
    background-attachment: fixed;
    background-position: 0% 0%;
}

header div {
    display: inline-block;
}

/* bloc menus à gauche, ils sortent du flux; il y a plusieurs nav : préciser lequel */
#container > nav {
    float: left;
    width: 15%;
    margin-right: 10px;
}

/* pied de page dans le flux; position fixe, les coordonnées sont par rapport à la fenêtre */
footer {
    width: 100%;
    overflow: hidden;
    height: 32px;
    padding: 5px;
}

/* ****** positionnement des blocs ****** */
/* * reste dans le flux :  * */

ul {
    list-style: none;
    margin: 10px; /* raz car l'initialisation n'est pas la même suivant les navigateurs */
    padding: 0;
}

/* ****** propriétés de classe ****** */

.contenu {
    overflow: auto;
    padding: 10px;
    margin-bottom: 10px;
}

table {
	border-collapse: separate;
	border: none;
}


/* ****** propriétés particulières ****** */

/* * éléments de la section * */
#indexnoms {
	max-height: 280px;/* ajuster en fonction de la hauteur du texte d'introduction */
	overflow: auto;
}

#listenoms {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

#rolodex {
	margin: 10px;
	height: 20px;
	text-align: center;
}

/* * recherche * */
.gridSaisie {
    display: grid;
    grid-template-columns: 5em 1fr 1fr;
    grid-gap: 5px;
}

.gridElem1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.gridElem2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gridElem3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

#resultatrecherche {
	height: 100%;
	overflow: auto;
}

#map {
	height: 600px;
	margin: 0px;
	overflow: hidden;
}

/* * Services * */
.conteneur-flexible{
    display: flex;
    font-size: 20px;
    box-sizing: border-box;
    margin: 10px 0px 0px 0px;
}
.ligne{
    flex-flow: row wrap;
}
.colonne{
    flex-flow: column wrap;
}
.element-flexible{
    flex-basis: 30%;
    flex-grow: 0;
    flex-shrink: 0;
    padding: 10px Opx;
    text-align: left;
    box-sizing: border-box;
    margin: 5px;
}
.dim .element-flexible{
    flex-basis: 64px;
    height: 50%;
}
.ef30{
    flex-basis: 30%;
}
.fg0{
    flex-grow: 0;
}
.fg1{
    flex-grow: 1;
}
.fg3{
    flex-grow: 3;
}


/* * arbres * */
#arbre {
	max-height: 560px;
	overflow: auto;
    position: relative; /* => les éléments contenus dans arbre peuvent être positionnées en relatif par rapport à arbre */
}

.calque-1 {
	visibility: hidden;
}


/* * vignettes * */
#diaporama {
    height: 120px;
    z-index: 1; /* pour que les liens sur les images fonctionnent */
	overflow: auto;
}

#menuVignettes {
    justify-content: left;
    height:100%;
    overflow: auto;
}

#menuVignettes a {
    margin: 0px;
    margin-right: 4px;
    width: 5em;/* 1em = 10px */
    height: 5em;
}

.contener_mediacentre a{
    display:flex;
    align-items: center;
    justify-content: center;
}


/* * saisie : mise en forme du tableau de saisie * */
#saisir > h4 {
    padding-left: 0px;
}

#tbSaisie { /*conteneur du tableau*/
	margin: 0px;
	padding: 4px;
	width: 100%;
}

.SaisieEvenement, .SaisieConjoint {
	padding: 5px 0px 5px 0px;
	border: 1px solid #996600;
    overflow: auto;
}

.saisieNom {
	float:left;
	margin:0 20px 0 0;
	width: 120px;
	text-align: left;
	height: 1em;
	background-color: #e6dcc5;
}

.saisieEvent {
    float: left;
    width: 99%;
}

.saisieLabel {
	float: left;
	margin: 0px 0 10px 5px;/* séparer les lignes */
	padding: 0;
	width: 6em;
	text-align: left;
	height: 1em;
}

.saisieLabelEvent, .saisiePreposition {
    float: left;
    margin:  0px 10px 10px 5px;/* séparer les lignes */
    padding: 0;
    text-align: left;
    height: 1em;
}

.saisieLabelEvent {
    width: 20px;
}

.saisieDate {
	float: left;
	margin: 0;
    margin-right: 20px;
	width: 120px;
	text-align: left;
	height: 1em;
	background-color: #e6dcc5;
}

.selectPays {
    float: left;
    margin: 0;
    width: 100px;
}

.saisiePays {
    float: left;
    margin: 0 20px 0 0;
    width: 80px;
    text-align: left;
    height: 1em;
    background-color: #e6dcc5;
}

.selectDepartement {
    float: left;
    margin: 0;
    margin-right: 5px;
    width: 50px;
}

.saisieDepartement {
    float: left;
    margin: 0;
    margin-right: 5px;
    width: 35px;
    text-align: right;
    height: 1em;
    background-color: #e6dcc5;
}

.selectCommune {
    float: left;
    margin: 0;
    width: 160px;
}

.saisieCommune {
	float: left;
	margin: 0;
	width: 150px;
	text-align: left;
	height: 1em;
	background-color: #e6dcc5;
}

.saisieComment {
	margin: 5px 0px 0px 115px;
	padding: 0px 5px 0px 5px;
	width: calc(99% - 120px);
	height: 3em;
	background-color: #e6dcc5;
    overflow: auto;
}

/* placement du commentaire final (20005) */
.saisie_20005 .saisieLabel {
	width: 130px;
}

.saisie_20005 .saisieComment {
    padding: 0px;
    margin: 10px;
	width: 95%;
}

#indexalbums {
	max-height: 400px;/* ajuster en fonction de la hauteur du texte d'introduction */
	overflow: auto;
}

#media_affiche {
	display: block;
	margin: 0 auto;
}

/* onglet */
.page{
    display:none;
}
.page:target{
    display:block;
}

/* tableau */
.liste {
    display: table;
    table-layout:fixed;
    width: 600px;
}
.cellule{
    display: table-cell;
    vertical-align: top;
}
.cellule:first-child{
    width: 60%;
}

/* pied de page : position fixe, les coordonnées sont par rapport à la fenêtre */
#logo {
	position: fixed;
    left: 0px;
    bottom: 0px;
	width: 84px;
	padding-left: 10px;
}

#logo img {
    max-width: 100%;
    max-height: 100%;
}

#loi {
    position: fixed;
    width: 100%;
    bottom: 0px;
    text-align: center;
	margin-left: 100px;
	margin-right: 10px;
	margin-top: 0px;
    margin-bottom: 0px;
    padding-bottom: 10px;
}


/* Gestion des petits écrans */
@media screen and (max-width: 640px) and (orientation:portrait), screen and (max-width: 768px) and (orientation:landscape) {
    /* Compatibilité avec la version grands écrans (rf AlsaCréation) */
    * {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
 
    /* passer body (et tous les éléments de largeur fixe) en largeur automatique */
    body {
        width: auto;
        margin: 0;
        padding: 0;
    }
    /* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */
    img,
    table,
    td,
    blockquote,
    code,
    pre,
    textarea,
    input,
    iframe,
    object,
    embed,
    video {
        max-width: 100%;
    }
/*    /* conserver le ratio des images */*/
/*    img {*/
/*        height: auto;*/
/*    }*/
    /* gestion des mots longs */
    textarea,
    table,
    td,
    th,
    code,
    pre,
    samp {
        -webkit-hyphens: auto; /* césure propre */
        -moz-hyphens: auto;
        hyphens: auto;
        word-wrap: break-word; /* passage à la ligne forcé */
    }
    code,
    pre,
    samp {
        white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe */
    }
    /* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */
    element1,
    element2 {
        float: none;
        width: auto;
    }
    /* masquer les éléments superflus */
    .hide_mobile {
        display: none !important;
    }
    /* Un message personnalisé
     
     body:before {
     content: "Version mobile du site";
     display: block;
     text-align: center;
     font-style: italic;
     color: #777;
     */
    
    
    /* spécificités ALV : suppression du bandeau - menus en ligne */

    header {
        display: none;
    }

    .barreMenus span {
        display: none;
    }
    
    .contenu {
        margin: 0 auto; /* marges nulles et centrer horizontalement le bloc dans la fenêtre */
    }
    
/*    #indexnoms {*/
/*        max-height: 100px;/* ajuster en fonction de la hauteur du texte d'introduction */*/
/*    }*/
    
    #listenoms {
        columns:2;
    }
    
    #map_canvas {
        margin: 0px;
        padding:0px;
    }

    footer {
        width: 100%;
        height: 35px;
        margin: 0px;
        padding: 0px;
    }
    
    h2 {
        margin-top: 0px;
    }
    
    h5 {
        margin: 0px;
        padding: 0px;
    }
    
    #logo {
        position: static;
        float: left;
        left: 0px;
        top: 0px;
        margin: 2px;
        padding: 0px;
        width: 40px;
    }
    
    #logo img {
        max-width: 100%;
        max-height: 100%;
    }
    
    #loi {
        position: static;
        text-align: left;
        margin: 0px;
        padding: 0px;
    }
    
    #menuVignettes a {
        width: 2em;/* 1em = 10px */
        height: 2em;
    }

}

/* ****** spécificités portrait ****** */
@media screen and (max-width: 640px) and (orientation:portrait) {
    header {
        display: none;
    }
    
    #container > nav {
        float: none;
        width: auto;/* menu sur toute la ligne */
        margin: 0px;
    }
    
    .barreMenus {
        position: static;
        display: inline;
        width: 100%;
        margin: 0px;
        text-align: center;
    }
    
    #listenoms {
        grid-template-columns: 1fr 1fr;
    }

}

/* ****** spécificités paysage ****** */
@media screen and (max-width: 768px) and (orientation:landscape) {
}
