:root {
    --couleur-fond-page: #4246b1;
    --couleur-fond-menu: #2b2e83;
    --couleur-fond-footer: #212467;
    --couleur-1: #fff;
    --couleur-2: #ffed00;
    --couleur-footer-clair: #ddd;
    --couleur-footer-sombre: #6d6fad;

    --hauteur-menu: 70px;

    --margin-top-prochaine-conference: calc(var(--hauteur-menu));
    --hauteur-prochaine-conference: calc(100vh - var(--margin-top-prochaine-conference));
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/Montserrat-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/Montserrat-Regular.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/Montserrat-Bold.otf') format('opentype');
  font-weight:bold;
  font-style: normal;
}


html {
    margin:0;
    background-color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

body {
    margin:0;
}

body.no-scroll {
    overflow: hidden;
}

header {
    background-color: var(--couleur-fond-menu);
    height: var(--hauteur-menu);
    position: fixed;
    top:0;
    width: 100%;
    z-index: 10;
}

p {
    text-align: justify;
}

nav {
    max-width:1280px;
    margin:auto;
    display: flex;
    justify-content:space-around ;
    align-items: center;
    color:var(--couleur-1);
    line-height: var(--hauteur-menu);
    padding:0px 20px;

    p {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5em;
        font-weight: 500;
        margin:0;
    }

    p > img {
        height: 50px;
    }

    ul {
        flex:1;
        display: flex;
        justify-content: flex-end;
        list-style-type: none;
        column-gap: 40px;
        padding-left:0px;
        margin:0;
    }

    ul li {
        text-transform: uppercase;
    }

    p#menu-bar {
        display: none;
    }

    a {
        color:var(--couleur-1);
        text-decoration: none;
        text-underline-offset: 5px;
    }

    a.active, a:hover {
        color: var(--couleur-1);
        text-decoration: underline;
    }
}

main {
    color:var(--couleur-1);
}

section#prochaine-conference {

    position: relative;
    min-height: var(--hauteur-prochaine-conference);
    margin-top: var(--margin-top-prochaine-conference);

    article {
        max-width: 1200px;
        margin:auto;
        display: flex;
        justify-content: space-between;
    }

    div:first-child {
        width: 65%;
    }

    h1 {
        font-size: 3em;
        font-weight: bold;
    }

    h2 {
        font-size: 1.8em;
        font-weight: 500;
    }

    h3 {
        font-size: 1.6em;
        font-weight: 500;
    }

    strong {
        color: var(--couleur-2);
        font-weight: inherit;
        font-size: 1.1em;
    }

    p#lieu-conference {
        font-style: italic;
    }

    p#infos-invite {
        font-size: 1.1em;
        margin-bottom: 50px;
    }
                                            
    p:last-child {
        margin-bottom: 50px;
    }

    p.bouton-play {
        border-radius: 10px;
        width: 250px;
        margin:auto;
        margin-top:50px;
        text-align: center;
    }

    div#image-conferencier > p {
        text-align: center;
    }

    img {
        margin-top: 60px;
        max-width: 300px;
        border-radius: 20px;
        box-shadow: 5px 5px 15px #222;
    }

    p.bouton-play a {
        display: inline-block;
        border-radius: 60px;
    }

    p.bouton-play img {
        margin-top:0px;
        box-shadow: none;
        height: 100px;
    }

    div.background {
        background-color: var(--couleur-fond-page);
        z-index: -1;
        width: 100%;
        height: 100%;
        top:0;
        position: absolute;
    }

    div.background::before {
        content: '';
        width:100%;
        height:100%;
        position:absolute;
        bottom:0px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.3)), url('../../img/tour.png');
        background-attachment: fixed;
        background-size:auto 80%;
        background-repeat: no-repeat;
        background-position-y: bottom;
        filter:blur(5px);
        opacity: 0.3;
    }
}

section#association {
    position: relative;
    padding:100px 0px;

    article {
        max-width: 1200px;
        margin:auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    article > div {
        flex:1;
    }

    article > div:first-child {
        display: flex;
        align-items: center;
    }

    h1 {
        font-size: 2em;
    }

    article p {
        margin: 20px;
        line-height: 2em;
    }
}

section#association::before {
    content: '';
    width:100%;
    height:100%;
    position:absolute;
    bottom:0px;
    background-image: url('../../img/conferences_100d.jpg');
    background-size:cover;
    background-repeat: no-repeat;
    background-position-y: bottom;
    filter:blur(2px);
    opacity: 0.3;
    z-index: -1;
}

section#conferences {
    position: relative;
    padding:100px 0px;

    article {
        max-width: 80%;
        margin:auto;
    }

    article > div {
        display: flex;
        justify-content: space-around;
        align-items: stretch;
        flex-wrap: wrap;
        row-gap: 40px;
    }

    article > div > div {
        width: 28%;
        min-height: 600px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 5px 5px 5px #222;
        color:#111;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    article > div > div:hover {
        img {
            transform:scale(1.05);
        }
    }

    h1 {
        font-size: 2em;
        border-bottom: 1px solid white;
        flex:1;
    }

    h2 {
        margin: 15px;
        text-align: center;
        align-content: center;
    }

    p {
        margin: 10px 20px;
        line-height: 1.5em;
    }

    p.date {
        position: absolute;
        top:calc(260px - 2*25px - 2*10px - 10px);
        left:0;
        margin:0px;
        background-color: var(--couleur-fond-menu);
        padding:10px;
        color:var(--couleur-2);
        font-weight: bold;
        font-size: 1.3em;
        line-height: 25px;
    }

    p.activite-conferencier {
        margin-top:-10px;
        font-size: 0.9em;
    }

    p.descriptif-conference {
        flex:1;
        position: relative;
    }

    span.nom-conferencier {
        font-weight: bold;
    }

    div.img {
        overflow: hidden;
        width: 100%;
        height: 260px;
    }

    img {
        display: block;
        width: 100%;
        height: 100%;
        transition: all 0.2s ease;
        object-fit:cover;
    }

    .img {
        position: relative;
        width: 600px;
        height: 400px;
    }

    .image1, .image2 {
        position: absolute;
        height: 100%;
    }

    .image1 {
        width:60%;
        left:40%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .image2 {
        width: 100%;
        clip-path: polygon(
        0 0,
        60% 0,
        40% 100%,
        0 100%
        );
    }


}

section#conferences::before {
    content: '';
    width:100%;
    height:100%;
    position:absolute;
    bottom:0px;
    background-image: url('../../img/livres.jpg');
    background-size:cover;
    background-repeat: no-repeat;
    background-position-y: bottom;
    filter:blur(5px);
    opacity: 0.7;
    z-index: -1;
}

section#qui-sommes-nous {
    position:relative;
    padding:100px 0px;
    color: white;

    article {
        max-width: 1280px;
        margin:auto;
    }

    h1 {
        font-size: 2em;
        border-bottom: 1px solid white;
        flex:1;
    }

    img {
        float:right;
    }

    p {
        text-align: left;
        line-height: 24px;
    }
}

section#qui-sommes-nous::before {
    content: '';
    width:100%;
    height:100%;
    position:absolute;
    bottom:0px;
    /*background-image: url('../../img/sanguinaires.jpg');*/
    background-color: var(--couleur-fond-page);
    background-size:cover;
    background-repeat: no-repeat;
    background-position-y: bottom;
    filter:blur(5px);
    opacity: 1;
    z-index: -1;
}

footer {
    background-color: var(--couleur-fond-footer);
    display: flex;
    flex-direction: column;
    color:var(--couleur-footer-clair);
    
    div#footer-infos {
        flex:1;
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 70%;
        margin:auto;
        gap: 10%;
    }

    div#footer-infos > div {
        flex:1;
    }

    h3 {
        color:var(--couleur-footer-clair);
        position: relative;
        margin-bottom: 20px;
        font-weight: normal;
        font-size: 1em;
    }

    h3::after {
        content: '';
        position: absolute;
        left:0;
        bottom:-3px;
        width: 80%;
        height: 2px;
        background-color: var(--couleur-footer-sombre);
    }

    ul {
        list-style-type: none;
        padding-left:10px;
    }

    ul li {
        min-height: 35px;
    }

    a {
        text-decoration: none;
        color: var(--couleur-footer-clair);
        font-size: 0.95em;
        transition: all 0.2s;
    }

    a:hover {
        color: var(--couleur-footer-sombre);
    }

    #suivez-nous img {
        width: 36px;
        filter: grayscale(100%);
        transition: all 0.3s ease;
        margin-right:10px;
    }

    #suivez-nous img:hover {
        filter:none;
    }

    div#footer-contact img {
        width: 24px;
        vertical-align: middle;
        margin-right: 10px;
    }
    
    div#partenaires {
        width: 70%;
        margin:auto;
    }

    div#partenaires h3:after {
        width: 50%;
    }

    div#partenaires > p {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        row-gap: 10px;
        column-gap: 10px;
    }

    div#partenaires img {
        display: block;
        object-fit: contain;
        width: auto;
        height: 70px;
    }

    div#copyright {
        text-align: center;
        padding:10px;
        margin:0px;
        background-color: #114;
    }
}

/* Responsive */

@media (max-width: 1280px) {

    nav {
        justify-content: space-between;
        position: relative;

        ul {
            position: absolute;
            left:0;
            top:var(--hauteur-menu);
            width: 100%;
            display: none;
            flex-direction: column;
            justify-content: start;
            text-align: center;
            height: 100vh;
            background-color: var(--couleur-fond-footer);
        }

        ul.open {
            display: flex;
        }

        ul a {
            display: block;
            border-bottom: 1px solid var(--couleur-footer-sombre);
        }

        p#menu-bar {
            display: block;
        }

        p#menu-bar img {
            display: block;
            object-fit: contain;
            width: auto;
            height: 32px;
            padding: 10px;
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
        }

        p#menu-bar img.open {
            transform: rotate(-90deg);
        }
    }

    section article {
        width: 90%;
    }

    section#prochaine-conference {
        article {
            flex-direction: column;
            width: 90%;
        }

        article > div {
            width: 100% !important;
            margin:auto;
        }

        h1 {
            font-size: 2.5em;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        p:last-child {
            margin-bottom: 20px;
        }

        img {
            margin-top: 0px;
        }

        div.background::before {
            display: none;
        }
    }

    section#association {
        article {
            flex-direction: column;
        }

        article > div:first-child {
            flex-direction: column;
        }
    }

    section#conferences {
        padding:var(--hauteur-menu) 0px;

        article > div {
            flex-direction: column;
        }

        article > div > div {
            width: 100%;
        }
    }

    section#qui-sommes-nous {
        padding:var(--hauteur-menu) 0px;

        h1 {
            font-size: 1.8em;
        }
    }

    footer {
        div#footer-infos {
            width: 90%;
            flex-direction: column;
        }

        div#partenaires {
            width: 90%;
        }

        h3:after {
            width: 90% !important;
        }
    }
}
