
/*******************************************************************************
Gestion des appareils à largeur inférieure à 600px
On fait une cassure à 360px pour les écrans vraiment petits
*******************************************************************************/

@media only screen and (max-width: 600px) {
    /* Fenêtre modale de résultats */
    #modalResultats .img-essentiel:not(.active) {
        max-height: 60px !important;
        max-width: 80px !important;
    }
    
    /* Bulles de rappel de critères choisis. S'affiche sur une ligne avec scroll auto sur petit écran */
    #main-chips {
        display: flex;
        flex-flow: row nowrap;
        align-items: flex-start;
        overflow-x: auto;
        min-height: auto;
    }
    #main-chips .chip {
        flex: none;
    }
    #main-chips {
        bottom: 45px;
    }
    .chips .chip {
        height: 24px;
        line-height: 24px;
        font-size: 11px;
    }
    .chip .close {
        cursor: pointer;
        float: right;
        font-size: 12px;
        line-height: 24px;
        padding-left: 8px;
    }
    
    /* Réduction police sur boutons de démarrage */
    .btn-commencer {
        font-size: 0.8em;
    }
    
    /* Affichage des résultats sur une seule colonne */
    .selection-accessoires {
        width:99%;
        border-left: none !important;
        border-right: none !important;
    }
    /* Sur petit écran les sélections sont les une en-dessous des autres. Les sélections 3&4 ont toujours
    une bordure haute, la sélection 2 en a besoin d'une */
    .selection-accessoires#selection2 {
        border-top: 1px solid #e0e0e0;
    }
	
    /* Boutons contextuels au carousel vertical.
    En bas à droite sur smartphone, en haut séparés gauche/droite sur tablette */
    a#btnHelp {
        position: absolute;
        bottom: 10px;
        right: 20px;
        z-index: 10;
    }
    a#btnReset {
        position: absolute;
        bottom: 10px;
        right: 65px;
        z-index: 10;
    }
    
    .slider-container h2 {
        margin-top: 0px;
        font-size: 32px !important;
    }
    .slider-container h6 {
        font-size: 14px !important;
    }
    
    .resultatsTxt {
        font-size: 18px;
    }
    #btnFermerResultats {
        margin-right: -15px;
    }
}

@media only screen and (min-width : 361px) and (max-width: 600px) {
    html {
        font-size: 15px;
    }
    
    /* Boutons de sélection de choix */
    .btn-animaux .btn-large, 
    .btn-alim .btn-large, 
    .btn-type-alim .btn-large, 
    .btn-mobilite .btn-large, 
    .btn-piquet .btn-large, 
    .btn-vegetation .btn-large, 
    .btn-perimetre .btn-large {
        line-height: 17.5px !important;
        font-size: 15px !important;
        padding: 10px 0 5px !important;
    }
    .btn-animaux .btn-large {
        padding: 5px !important;
    }
    .btn-animaux label .btn-large span, 
    .btn-alim label .btn-large span, 
    .btn-type-alim label .btn-large span, 
    .btn-mobilite label .btn-large span, 
    .btn-piquet label .btn-large span, 
    .btn-vegetation label .btn-large span, 
    .btn-perimetre label .btn-large span {
        font-size: 11px !important;
    }
}

@media only screen and (max-width : 360px) {
    html {
        font-size: 14px;
    }
    
    /* Boutons de sélection de choix */
    .btn-animaux .btn-large, 
    .btn-alim .btn-large, 
    .btn-type-alim .btn-large, 
    .btn-mobilite .btn-large, 
    .btn-piquet .btn-large, 
    .btn-vegetation .btn-large, 
    .btn-perimetre .btn-large {
        line-height: 15.5px !important;
        font-size: 13px !important;
        padding: 5px 0 !important;
    }
    .btn-animaux .btn-large {
        padding: 5px !important;
    }
    .btn-animaux label .btn-large span, 
    .btn-alim label .btn-large span, 
    .btn-type-alim label .btn-large span, 
    .btn-mobilite label .btn-large span, 
    .btn-piquet label .btn-large span, 
    .btn-vegetation label .btn-large span, 
    .btn-perimetre label .btn-large span {
        font-size: 10px !important;
    }
    
    /* Sur très petit écran on ne cherche pas à centrer les pages */
    .slider-container:not(.a-propos) {
        top: 40px !important;
        -ms-transform: none !important;
        transform: none !important;
    }
    
    /* Réduction police sur boutons de démarrage */
    .btn-commencer, .btn-commencer-perm {
        font-size: 0.7em;
    }
    
    /* Pour gagner en hauteur on enlève/réduit certains margin/padding */
    .slider-container h2 {
        margin-top: 0 !important;
        font-size: 24px !important;
    }
    .slider-container h6 {
        font-size: 13px !important;
    }
    #config-alim h2 {
        margin-bottom: 5px !important;
    }
    #config-alim .row {
        margin-bottom: 10px !important;
    }
    .slider-container .row > .col > .section {
        padding-top: 0.75rem;
    }
    .slider-container#config-terrain .row > .col > .section:not(:first-child) {
        padding-top: 0.5rem;
    }
    .slider-container .row > .col > .section:first-child {
        padding: 0;
    }
    #choix-animaux .row {
        margin-bottom: 10px;
    }
    #btnMapsTerrain {
        width: 24px;
        height: 24px;
        line-height: 24px;
    }
    #btnMapsTerrain i {
        line-height: 24px;
        font-size: 14px;
    }
    #config-terrain .collapsible {
        margin: 0;
    }
    #config-terrain .collapsible-header {
        font-size: 13px !important;
    }
    #config-terrain .collapsible-header,
    #config-terrain .collapsible-body {
        padding: .5rem;
    }
    #config-terrain h2,
    #config-terrain h6 {
        margin: 0.46rem 0;
    }
    #config-terrain h6 {
        font-size: 12px !important;
    }
}