/*************************************************************/
/* Popup Carpediem — habillage PCIDF                         */
/* Version responsive modernisée                             */
/*************************************************************/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #f3f5f7;
    color: #20252b;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 13px;
}

h2 {
    margin: 10px 0;
    padding: 0;
    color: #e72f73;
    font-size: 20px;
}

h4 {
    margin: 10px 0;
    padding: 0;
    color: #e72f73;
    font-size: 16px;
}

p {
    padding: 5px 10px;
}

.pull-center {
    margin: 0 auto;
    text-align: center;
}

.pinkText {
    color: #c70c69;
}

.smallText {
    font-size: 12px;
    text-align: justify;
}

.container-fluid {
    width: 98%;
    max-width: 840px;
}

.panel {
    width: 96% !important;
    margin: 10px auto !important;
}

.panel-info {
    overflow: hidden;
    border: 1px solid #e72f73;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: none;
}

.panel-info > .panel-heading,
.panel-info .panel-heading {
    border: 0;
    background: #c70c69;
    color: #ffffff;
}

.panel-body {
    background: #ffffff;
}

.form-group {
    position: relative;
}

.form-control {
    height: 35px;
    border-color: #d2d6dc;
    font-size: 16px;
    box-shadow: none;
}

.form-control:focus {
    border-color: #e72f73;
    box-shadow: 0 0 0 3px rgba(231, 47, 115, 0.12);
}

.btn-success,
.btn-success:focus {
    border: 1px solid #f00073;
    background: #f00073;
    color: #ffffff;
    text-shadow: none;
    box-shadow: none;
}

.btn-success:hover,
.btn-success:active {
    border-color: #c70c69;
    background: #c70c69;
    color: #ffffff;
}

.btn-download {
    display: block;
    width: 100%;
}

.btn-download .btn-text {
    line-height: 24px;
    text-align: left;
}

.breadcrumb {
    padding: 5px 2px;
    font-size: 11px;
}

header {
    width: 100%;
    height: 78px;
    background: url(../img/header.png) #f00073;
    background-size: cover;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 30px;
    line-height: 78px;
}

header h1 .highlight {
    color: #38b7ee;
}

.thumb {
    display: block;
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.thumb img {
    max-height: 100%;
}

/* Validation */
.form-group .form-control-feedback {
    padding-top: 2px;
}

.form-group label.error {
    position: absolute;
    top: 27px;
    right: 30px;
    display: block;
    width: auto;
    min-height: 20px;
    margin: 0;
    padding: 5px;
    color: #a94442;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media only screen and (max-width: 767px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        background: #f3f5f7;
    }

    body {
        padding: 10px;
    }

    br:first-child {
        display: none;
    }

    .panel {
        width: 100% !important;
        margin: 0 auto !important;
    }

    .panel-info {
        border: 0;
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(24, 31, 40, 0.14);
    }

    .panel-info > .panel-heading,
    .panel-info .panel-heading {
        padding: 12px 15px !important;
        border-radius: 0;
        background: #c70c69;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
    }

    .panel-body {
        padding: 17px 15px 18px;
    }

    /*
     * L'ancien script imposait col-xs-5 / col-xs-7 :
     * labels à gauche et champs écrasés à droite.
     * Sur mobile, chaque label passe désormais au-dessus de son champ.
     */
    #regForm .form-group.row,
    #regFormFinal .form-group.row {
        margin-right: 0;
        margin-bottom: 15px;
        margin-left: 0;
    }

    #regForm .form-group.row > [class*="col-xs-"],
    #regFormFinal .form-group.row > [class*="col-xs-"] {
        float: none;
        width: 100%;
        min-height: 0;
        padding-right: 0;
        padding-left: 0;
    }

    #regForm label,
    #regFormFinal label {
        display: block;
        margin: 0 0 7px;
        color: #20252b;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
    }

    #regForm .form-control,
    #regFormFinal .form-control {
        width: 100%;
        height: 47px;
        padding: 10px 12px;
        border: 1px solid #ccd2da;
        border-radius: 8px;
        background: #ffffff;
        color: #161b22;
        font-size: 16px;
        line-height: 1.4;
        -webkit-appearance: none;
        appearance: none;
    }

    #regForm .form-control::placeholder,
    #regFormFinal .form-control::placeholder {
        color: #8a929d;
        opacity: 1;
    }

    #regForm .form-control-feedback,
    #regFormFinal .form-control-feedback {
        top: 35px;
        right: 8px;
    }

    #regForm .btn-success,
    #regFormFinal .btn-success,
    #regFormFinal a.btn-success {
        display: block;
        width: 100%;
        min-height: 49px;
        margin-top: 4px;
        padding: 12px 16px;
        border: 0;
        border-radius: 8px;
        background: #f00073;
        color: #ffffff;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.35;
        text-align: center;
        text-shadow: none;
        box-shadow: 0 9px 20px rgba(240, 0, 115, 0.20);
    }

    #regForm .btn-success:active,
    #regFormFinal .btn-success:active {
        transform: translateY(1px);
    }

    .form-group label.error {
        position: static;
        display: block;
        width: 100%;
        min-height: 0;
        margin: 6px 0 0;
        padding: 0;
        color: #b3264b;
        font-size: 12px;
        line-height: 1.4;
    }

    #regFormFinal p {
        margin: 0 0 14px;
        padding: 0;
        color: #454d57;
        font-size: 13px;
        line-height: 1.6;
    }

    .smallText {
        padding-right: 0;
        padding-left: 0;
        text-align: left;
    }
}

@media only screen and (max-width: 380px) {
    body {
        padding: 7px;
    }

    .panel-body {
        padding: 15px 12px 16px;
    }

    .panel-info > .panel-heading,
    .panel-info .panel-heading {
        padding: 11px 12px !important;
    }
}
