/***** Image Section (1) *****/

#section-1 {
    height: calc(100vh - 100px);
    min-height: 600px;
}

#section-1 > .content {
    padding: 5% 0;
}

#pourcent-img-mobile,
#pourcent-img {
    width: 100%;
    height: 600px;
}

#pourcent-img-mobile {
    display: none;
}

/***** Definition Section (2) *****/

#section-2 {
    height: calc(45vh - 50px);
    min-height: 350px;
    align-items: center;
}

#section-2 h3 {
    margin: 0;

    font-size: 2.0625em;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.33px;
}

#section-2 > .content {
    padding-right: 17.5%;
    padding-left: 17.5%;
}

#section-2 > .content > p {
    font-size: 1.125em;
}

/***** Publication Section (3) *****/
#section-3 {
    height: calc(55vh - 50px);
    min-height: 300px;
    align-items: center;
}

#section-3 h2.title {
    margin-bottom: 4.1vh;
}

#articles-container {
    min-height: 135px;          /* 17vh ?*/
    border: 1px solid #14181E;
}

#articles-container > .article {
    width: 100%;
    justify-content: space-between;
    padding-top: 1.3em;
    padding-bottom: 0.8em;
    padding-left: 1.5vw;
    padding-right: 1.5vw;
    border-right: 1px solid #14181E;
}

#articles-container > .article:last-child {
    border-right: none;
}

#articles-container > .article > h3 {
    margin: 0;
    font-weight: 500;
    font-size: 1em;
    letter-spacing: 0.01em;
}

#articles-container > .article:hover > time {
    color: white;
}

#articles-container > .article > time {
    font-weight: 500;
    font-size: 0.6875em;
    letter-spacing: 0.02125em;
    padding-top: 10px;
}

#more-articles {
    padding-top: 30px;
}

#more-articles > .btn > a {
    text-align: center;
}


/***** Black Button common to section 3 & 4 *****/

#manifest > h3,
#more-articles > h3 {
    min-width: calc(100% / 3);
    margin: 0;
    padding: 1em 0;
    font-size: 1.35em;
    font-weight: 400;
}

#manifest > h3 > a,
#more-articles > h3 > a {
    padding: 0 1.25em;
}

/***** Explanations Section (4) *****/

#section-4 {
    border-top: 1px solid #14181E;
    border-bottom: 1px solid #14181E;
}

#section-4 .side:first-child {
    border-right: 1px solid #14181E;
    border-left: 1px solid transparent;
}
#section-4 .side:last-child {
    border-right: 1px solid transparent;
    border-left: 1px solid #14181E;
}

#section-4 .segment {
    padding: 7vh 0;
    border-bottom: 1px solid #14181E;
}

#section-4 .segment:first-child {
    padding-top: 0;
}
#section-4 .segment:last-child {
    border-bottom: none;
}

#section-4 .segment > p {
    padding: 0 calc(20px + 3vw);
    font-size: 1em;
    line-height: 1.9em;
    letter-spacing: 0.03em; /* mesure de la maquette */
}

#section-4 .segment > p.highlight {
    text-align: center;
    font-size: 1.2em;
    font-weight: 400;
}

#manifest {
    padding-top: calc(14vh - 16px); /* padding segment + content - <p> */
}


/***** Actions Section (5) *****/
#section-5 {
    height: calc(100vh - 100px);
    align-items: center;
}

#section-5 > .content {
    padding-top: 0;
    padding-bottom: 14vh;
}

#section-5 h2.title {
    margin-bottom: 5.56vh;
}

#actions-container {
    border: 1px solid #14181E;
}

#actions-container > .box-action {
    width: 100%;
    justify-content: space-between;
    border-right: 1px solid #14181E;
}
#actions-container > .box-action:last-child {
    border-right: none;
}

#actions-container .action {
    padding: 3vh 2.5vw;
}

#actions-container .action > p {
    margin-top: 0;
    font-size: 1.125em;
    letter-spacing: 0.039375em;
    line-height: 1.75em;
    font-weight: 300;
}

#actions-container .action > p > b {
    display: block;
    font-size: 1.25em;
    letter-spacing: 0.025em;
    line-height: 2em;
}

#actions-container .link {
    min-height: 90px;
    border-right: 1px solid #F8F9FB;
}
#actions-container > .box-action:last-child > .link {
    border-right: none;
}

#actions-container .link > a {
    font-size: 1.0625em;
    letter-spacing: 0.02125em;
}



/***** Agir Section (6) *****/

#section-6 {
    height: 43.375vh;
}

#section-6 > .content {
    padding: 6.75vh 0;
}

#section-6 > .content > h2::before,
#section-6 > .content > h2,
#agir-container h3,
#agir-container p {
    color: #F8F9FB;
}

#agir-container {
    margin-left: calc(20px + 3vw);
}

#agir-container > .agir {
    width: 100%;
    padding: 0 0.625em;
}

#section-6 h2.title {
    margin-top: 0;
    margin-bottom: 2.4em;
}


#agir-container > .agir > h3 {
    margin: 0;
    font-size: 1.25em;
    letter-spacing: 0.025em;
    font-weight: 500;
    height: 2.5em;
}

#agir-container > .agir > p {
    padding: 0;
    margin-top: 1.0625em;
    padding-left: 1.4em;
    font-size: 1em;
    line-height: 1.4375em;
    letter-spacing: 0.035em;
}



/***** Form Section (7) *****/

#section-7 > .content {
    padding-top: 5.25vh;
}

#form-container > .segment {
    width: 100%;
}

#contact-form > input,
#contact-form > textarea,
#contact-form > select {
    padding: 0.46875em;
    margin: 0.7em 0;
    font-size: 0.875em;
    letter-spacing: 0.035em;
    box-sizing: border-box;
    border: 1px solid #14181E;
    background-color: #f0eff4;
    color: #14181E;
    resize: none;
}

#contact-form > input:focus,
#contact-form > textarea:focus {
    border-color: #8e9095;
    border-radius: 0;
}

#contact-form > textarea {
    padding: 0.75em 0.9375em;
    height: 13.75vh;
    min-height: 6em;
}

#contact-form > select {
    color: #8e9095;
    font-weight: 400;

    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url("../img/Icon/Down_Arrow.svg");
    background-size: 1.5vw;
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 50%;
}

::placeholder {
    font-weight: 400;
    color: #8e9095;
}

#contact-form > button {
    margin: 0.6125em 0;
    padding: 1.25em;
}

#contact-form > button > span.a,
#contact-form > button > a {
    font-size: 1.35em;
    font-weight: 600;
    letter-spacing: 0.027em;
}

#contact-form > #name {
    margin-top: 0;
}


#write-us > h5,
#write-us > a {
    padding-left: 4.2vw;
    font-size: 1em;
    line-height: 1.4em;
}

#write-us > h5 {
    font-weight: 400;
    margin: 0;
}

#write-us > h5:before {
    color: #FF314F;
}

#write-us > a {
    font-weight: 700;
    margin-left: 1em;
}

/*----------------------------------------------------------------*/

/* Change header and sides width when < 1200px */
/* Move to mobile version when < 900px */

@media screen and (max-width:1200px) {
    #section-1 {
        height: calc(100vh - 70px);
        min-height: 600px;
    }

    #contact-form > button {
        margin: 1em 0;
    }

}

@media screen and (max-width:900px) {
    #pourcent-img {
        display: none;
    }

    #pourcent-img-mobile {
        display: flex;
    }

    #section-1,
    #section-2,
    #section-3,
    #section-5,
    #section-6 {
        height: auto;
    }

    /***** Image Section (1) *****/

    #section-1 {
        height: calc(69vh - 70px);
        min-height: 490px;
    }

    #section-1 > .content {
        padding: 0;
    }

    #pourcent-img-mobile, #pourcent-img {
        height: 600px;
    }

    /***** Definition Section (2) *****/

    #section-2 {
        height: 31vh;
        min-height: 280px;
    }

    #section-2 > .content {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    #section-2 h3 {
        font-size: 22pt;
        font-weight: 400;
    }

    #section-2 > .content > p {
        font-size: 10pt;
        color: #D7D7D9;
    }

    /***** Publication Section (3) *****/

    #articles-container {
        flex-direction: column;
        border: none;
    }

    #articles-container > .article {
        width: inherit;
        margin: 0.9em 0;
        padding: 1.75em;
        border: 1px solid #14181E !important;
    }

    #articles-container > .article > h3 {
        font-size: 1.42em;
        letter-spacing: 0.0142em;
    }

    #articles-container > .article > time {
        font-size: 1em;
        letter-spacing: 0.03em;
        font-weight: 400;
    }

    #manifest > h3,
    #more-articles > h3 {
        min-width: 70vw;
        min-height: auto;
        padding: 1.3em 0;
        font-size: 1.25em;
    }

    /***** Explanations Section (4) *****/

    #section-4 h2.title {
        margin-top: 0;
    }

    #section-4 .segment > p {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 8vw;
        padding-right: 1.625em;
        font-size: 1.25em;
        letter-spacing: 0.05em;
        line-height: 1.5625em;
    }

    #section-4 .segment > p.highlight {
        text-align: left;
        font-size: 1.42em;
    }

    #section-4 .segment:last-child {
        padding-bottom: 0;
    }


    /***** Actions Section (5) *****/

    #section-5 > .content {
        padding: 7vh 0;
    }

    #section-5 h2.title {
        margin-top: 0;
    }

    #section-5 .side  {
        border-right: 1px solid #14181E;
        border-left: 1px solid transparent;
    }

    #section-5 .side:last-child {
        border-right: 1px solid transparent;
        border-left: 1px solid #14181E;
    }

    #actions-container {
        flex-direction: column;
        border: none;
        margin: 0 3vw;
    }

    #actions-container > .box-action {
        margin: 1vh 0;
        border: 1px solid #14181E !important;
    }

    #actions-container .link {
        border-right: none;
        min-height: auto;
        padding: 1em;
        font-size: 15pt;
    }

    #actions-container .link > a {
        font-size: 15pt;
    }

    #actions-container .action {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }

    #actions-container .action > p {
        margin-top: 1.3em;
        margin-right: 1.3em;
        margin-left: 1.3em;
    }

    /***** Agir Section (6) *****/

    #section-6 h2.title {
        margin-bottom: 5vh;
    }

    #agir-container {
        flex-direction: column;
        margin: 0 3vw;
    }

    #agir-container > .agir > h3 {
        margin-bottom: 0;
        align-items: center;
        height: auto;
        font-size: 1.33em;
        letter-spacing: 0.0133em;
    }

    #agir-container > .agir > p {
        font-size: 1.25em;
        letter-spacing: 0.056em;
        line-height: 1.5625em;
        margin-bottom: 5vh;
    }

    /***** Form Section (7) *****/
    #section-7 > .content {
        padding-top: 8vh;
        padding-bottom: 10vh;
    }


    #form-container {
        flex-direction: column;
        margin: 0 3vw;
    }

    #contact-form > input, #contact-form > textarea, #contact-form > select {
        font-size: 1.17em;
        padding: 0.5625em;
        margin: 0.40625em 0;
    }

    #contact-form > select {
        background-size: 1.42em;
    }

    #contact-form > textarea {
        height: 11.8em;
        margin-bottom: 1.5em;
    }

    #contact-form > button {
        margin: 1em 6vw;
    }

    #write-us {
        margin-top: 1.5em;
    }

    #write-us > h5,
    #write-us > a {
        padding-left: 0;
        font-size: 1.42em;
    }
}


@media screen and (max-height:800px) and (orientation: portrait) {

    /***** Image Section (1) *****/

    #section-1 {
        height: calc(60vh - 70px);
        min-height: 420px;
    }

    #pourcent-img-mobile, #pourcent-img {
        height: 400px;
    }

    /***** Definition Section (2) *****/

    #section-2 {
        height: 40vh;
        min-height: 300px;
    }

}
