
@media screen and (min-width : 1280px) {

/* acceuil.php */

    #cont-acc {
        margin-left: 12vw;
        height: 330vh;
        flex-direction: column;
    }
    .horizontal-container {
        display: flex;    
        width: 243vw;
        height: 140vh;
    }


/* Section1 */

    #section1 { 
        display: grid;
        grid-template-columns: repeat(20, 5vw);
        grid-template-rows: repeat(10, 8.5vh);
        width: 88vw;
        height: 90vh;
    } 
    #section1 :nth-child(1) {
        grid-column: 3/11;
        grid-row: 4/5;
        font-family: 'autography';
        font-size: 4em;
    }
    #section1 :nth-child(2) {
        grid-column: 5/14;
        grid-row: 5/6;
        font-family: 'autography';
        font-size: 4em;
    }
    #section1 :nth-child(3) {
        grid-column: 10/15;
        grid-row: 6/7;
        font-size: 1.5em;
    }
    #section1 :nth-child(4) {
        grid-column: 7/15;
        grid-row: 7;
        border-top: solid var(--main-color) 0.07vw;
    }
    #section1 :nth-child(5) {
        z-index: -5;
        grid-column: 12/20;
        grid-row: 2/11;
        width: 90%;
    }

/* Section2 */

    #section2 {
        display: flex;
        flex-direction: column;
        width: 88vw;
        padding: 2vh 0;
    }
    #s2_1 {
        font-family: 'autography';
        font-size: 4em;
        padding-left: 4vw;
    }
    #s2_2 {
        background-color: var(--main-color);        
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2vw;
        padding-bottom: 1vw;
    }
    #s2_2 > p, span {
        color: #ffffff;
        text-align: center;
        width: 55vw;
    }
    #s2_2 > p:first-of-type {
        font-family: 'bellerose';
        font-size: 1.8em;
        line-height: 80%;
    }
    #s2_3 > p:last-of-type {
        text-align: end;
        font-family: 'autography';
        font-size: 2em;
        margin-top: 1vw;
        margin-right: 1.5vw;
    }
    .galerie-container {
        height: 40vh;
        width: 88vw;
        padding: 4vh 0;
        background-color: var(--main-color);
        overflow: hidden;
    }
    .galerie {
        height: 32vh;   
        width: 120vw;
        padding-left: 2vw;
        gap: 1vw;
        display:flex;
    }
    .galerie-item {
        height: 100%;
        padding: 0 5px;
        transition: transform 0.1s ease-out;
    }
    #s2_3 {
        width: 30vw;
        height: 60vh;
        padding: 4vw;
        text-align: justify;
        margin-left: 5vw;
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }
    #s2_3 > h3 {
        padding-bottom: 2vh;
        text-align: center;
    }
    #s2_3 span, #s3_1 span, #s5_1 span {
        color: var(--main-color);
    }
    #s2_4 {
        height: 60vh;
        padding: 2vh;
        margin-right: 8vw;
    }

/* Section3 */

    #section3 {
        margin-top: 40vh;
        display: flex;
        width: 155vw;
    }
    #s3_1 {
        padding-left: 1vw;
        padding-right: 23vw;
        text-align: justify;
        width: 40vw;
        padding-top: 48vh;
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }
    #s3_2 {
        width: 60vw;
        padding-top: 32vh;
        margin-left: 15vw;
    }
    #s3_3 {
        padding-left: 12vw;
        padding-right: 12vw;
        text-align: justify;
        width: 40vw;
        padding-top: 48vh;
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }
    #s3_3 a {
        font-weight: 900;
    }
    #s3_3 > h3 {
        text-align: center;
        margin-bottom: 3vh;
    }
    #s3_3 > div {
        display: flex;
        align-items: center;
        gap: 0.5vw;
    }
    #s3_3 img {
        width: 1.5vh;
        height: 1.5vh;
        transform: rotate(-45deg);
    }

/* Section5 */

    #downward-section {  
        margin-left: 155vw;
        width: 88vw;
        height: 100vh;
        display: grid;
        grid-template-columns: repeat(20, 4vw);
        grid-template-rows: repeat(8, 4vw);
    }
    #s5_1 {
        grid-column: 1/10;
        grid-row: 3/8;
        padding: 2vh 8vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2vh;
        text-align: justify;
    }
    #s5_2_mobile {
        display: none;
    }
    #s5_2 {
        grid-column: 11/18;
        grid-row: 2/9;
        background-color: var(--main-color);
        padding: 0.25vw;
        display: grid;
        grid-template-columns: repeat(3, 9vw);
        grid-template-rows: repeat(3, 9vw);
        gap: 0.25vw;
        cursor: pointer;
    }
    #s5_2 > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #s5_2 > div {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #s5_2 >div > p {
        font-size: 2em;
        color: #ffffff;
        text-align: center;
    }
    #s5_2 :nth-child(4) {
        object-position: 50% 15%;
    }
    #footeracc {
        margin: 0;
        padding-top: 5vh;
        grid-column: 1/19;
        grid-row: 10/13;
    }
}

/* Tablette */
@media  screen and (min-width : 768px) and (max-width : 1279px) {
    #cont-acc {
        display: flex;
        flex-direction: column;
        width: 80%;
        margin: 11vh auto 3vh auto;
    }
    .section {
        display: flex;
            flex-direction: column;
            width: 100%;
    }

    /* Section 1 */
    
        #section1 p:first-of-type {
            font-family: 'autography';
            font-size: 2em;
            font-weight: 600;
            margin-left: 10vw;
        }
        #section1 p:nth-of-type(2) {
            font-family: 'autography';
            font-size: 2em;
            font-weight: 600;
            align-self: center;
        }
        #section1 p:last-of-type {
            font-size: 1.4em;
            align-self: flex-end;
            margin-right: 10vw;
        }

    /* Section 2 et 3 */

        #s2_1 {
            font-family: 'autography';
            font-size: 2em;
            font-weight: 600;
        }
        .galerie-container {
            width: 100%;
            height: 60vh;
            background-color: var(--main-color);
        }
        .galerie {
            position: relative;
            width: 92%;
            height: 96%;
            left: 50%;
            top: 50%;
            transform: translateX(-50%) translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .galerie-item {
            position: absolute;            
            opacity: 0;
            object-fit: contain;
            z-index: 1;
            transition: transform 0.5s, opacity 0.5s;
        }
        .galerie-item.active {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0);
            z-index: 2;
        }
        .galerie-item.slide-left {
            transform: translateX(-100%);
            opacity: 0;
        }
        .galerie-item.slide-right {
            transform: translateX(100%);
            opacity: 0;
        }
        #s2_2, #s2_3, #s3_1, #s3_3 {
            width: 80%;
            margin: 0 auto;
            text-align: justify;
        }
        #s2_3 > h3 {
            text-align: center;
            margin: 2vh auto;
        }
        #s2_3 p:last-of-type {
            font-family: 'autography';
            font-size: 2em;
            font-weight: 600;
        }
        #s3_3 > h3 {
            text-align: center;
            margin: 2vh auto;
        }
        #s3_3 > a::before {
            content: '\2BC6';
        }
        #s2_4 {
            margin-bottom: 2vh;
        }
        #s3_2 {
            margin-top: 2vh;
        }
        #s3_3 > div {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 2vh;
        }

        /* Section 5 */

        #s5_1 > p {
            width: 80%;
            margin: 0 auto;
            text-align: justify;
        }
        #s5_1 > h3 {
            text-align: center;
            margin: 2vh auto;
        }
        #s5_2 {
            display: none;
        }
        #s5_2_mobile {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1vw;
            background-color: var(--main-color);
            margin-top: 2vh;
            margin-bottom: 2vh;
        }
        #s5_2_mobile div {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        #s5_2_mobile p {
            color: #ffffff;
        }
        #s5_2_mobile img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
}

/* Mobile */
@media screen and (max-width : 767px) {
    #cont-acc {
        display: flex;
        flex-direction: column;
        width: 96%;
        margin: 12vh auto 3vh auto;
    }
    .section {
        display: flex;
            flex-direction: column;
            width: 100%;
    }

    /* Section 1 */
    
        #section1 p:first-of-type {
            font-family: 'autography';
            font-size: 1.6em;
            font-weight: 600;
        }
        #section1 p:nth-of-type(2) {
            font-family: 'autography';
            font-size: 1.6em;
            font-weight: 600;
            align-self: center;
        }
        #section1 p:last-of-type {
            align-self: flex-end;
        }

    /* Section 2 et 3 */

        #s2_1 {
            font-family: 'autography';
            font-size: 1.6em;
            font-weight: 600;
        }
        .galerie-container {
            width: 100%;
            height: 60vh;
            background-color: #ffffff;
            border: 8px solid var(--main-color);
        }
        .galerie {
            position: relative;
            width: 99%;
            height: 100%;
            left: 50%;
            top: 50%;
            transform: translateX(-50%) translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .galerie-item {
            position: absolute;            
            opacity: 0;
            object-fit: contain;
            z-index: 1;
            transition: transform 0.5s, opacity 0.5s;
        }
        .galerie-item.active {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0);
            z-index: 2;
        }
        .galerie-item.slide-left {
            transform: translateX(-100%);
            opacity: 0;
        }
        .galerie-item.slide-right {
            transform: translateX(100%);
            opacity: 0;
        }
        #s2_2, #s2_3, #s3_1, #s3_3 {
            width: 80%;
            margin: 0 auto;
            text-align: justify;
        }
        #s2_3 > h3 {
            text-align: center;
            margin: 2vh auto;
        }
        #s2_3 p:last-of-type {
            font-family: 'autography';
            font-size: 1.4em;
            font-weight: 600;
        }
        #s2_4 {
            margin-bottom: 2vh;
        }
        #s3_2 {
            margin-top: 2vh;
        }
        #s3_3 > h3 {
            text-align: center;
            margin: 2vh auto;
        }
        #s3_3 > div {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 3vh;
        }

        /* Section 5 */

        #s5_1 > p {
            width: 80%;
            margin: 0 auto;
            text-align: justify;
        }
        #s5_1 > h3 {
            text-align: center;
            margin: 2vh auto;
        }
        #s5_2 {
            display: none;
        }
        #s5_2_mobile {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1vw;
            background-color: var(--main-color);
            margin-top: 2vh;
            margin-bottom: 2vh;
        }
        #s5_2_mobile div {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        #s5_2_mobile p {
            color: #ffffff;
        }
        #s5_2_mobile img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
}