/* FIRELEC PHP 5.5 - corrections mobiles ciblees.
   Le menu et l'affichage ordinateur ne sont pas modifies. */

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .container-fluid,
    .site_container.container,
    .header.container,
    .header .container {
        width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Supprime le grand vide sous la recherche tout en gardant un visuel. */
    #camera_wrap_2.camera-mobile-static {
        display: block;
        position: relative;
        width: 100%;
        height: 0 !important;
        min-height: 0 !important;
        margin: 8px 0 12px !important;
        padding-top: 47%;
        overflow: hidden;
        background: #111;
    }

    #camera_wrap_2.camera-mobile-static > div {
        display: none;
    }

    #camera_wrap_2.camera-mobile-static > div:first-child {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-image: url('../images/Patchwork.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    #camera_wrap_2.camera-mobile-static .camera_caption {
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 8px 12px;
        background: rgba(0, 0, 0, .55);
        color: #fff;
    }

    #camera_wrap_2.camera-mobile-static .camera_caption h2,
    #camera_wrap_2.camera-mobile-static .camera_caption h4 {
        margin: 0;
        font-size: 18px;
        line-height: 1.25;
    }

    /* Les hauteurs fixes de 200 px provoquaient des textes superposes. */
    .whoarewe,
    .whoarewe .box-1,
    .whoarewe .box-3,
    .whoarewe .box-3 .item,
    .whoarewe #carousel,
    .whoarewe .carousel-inner {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .whoarewe {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .whoarewe .box-1,
    .whoarewe .box-3 {
        float: none;
        width: 100%;
        margin-bottom: 14px;
    }

    .whoarewe .box-1 {
        padding: 14px;
    }

    .whoarewe .box-3 .item {
        padding: 12px 22px 18px;
    }

    .whoarewe .box-3 .item > [class*="col-"] {
        float: none;
        width: 100%;
        margin: 0 0 10px;
    }

    .whoarewe .box-3 .item img {
        display: block;
        max-width: 100%;
        max-height: none;
        margin: 0 auto 12px;
    }

    .whoarewe .carousel-control {
        width: 30px;
    }

    .headline {
        height: auto !important;
        min-height: 0 !important;
        padding: 14px;
    }

    /* Footer PHP 8.5 adapte au telephone. */
    .footer [class*="col-"] {
        float: none;
        width: 100%;
        margin-bottom: 18px;
    }

    .footer table {
        width: 100%;
    }

    .footer td,
    .footer a,
    .footer h5 {
        white-space: normal !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .footer iframe {
        width: 100%;
        max-width: 425px;
        height: 250px;
        border: 0;
    }
}
