:root {
    --green: #667864;
    --green-bold: #47583E;
    --green-light: #799782;
    --white: #ffffff;
    --gris: #f5f5f5;
    --texte: #333;
    --large:768px;
    --extra-large:1280px;
}

html {
    font-size:62.5%;
}

.m0 {
    margin:0;
}

.mt-10 {
    margin-top:10px;
}
.mt-30 {
    margin-top:30px;
}
.mt-50 {
    margin-top:50px;
}

.text-weeding {
    font-family: "Monsieur La Doulaise", cursive;
    font-weight: 400;
    font-style: normal;
}

.text-center {
    text-align: center;
}

.text-light {
    font-weight: 200;
}

.hide-mobile {
    @media (max-width: 767px) {
        display:none;
    }
}

.show-mobile {
    @media (min-width: 768px) {
        display: none !important;
    }
}

.input {
    color:white;
    background: transparent;
    padding: 20px 50px;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid var(--white);
    display: inline-block;
    font-weight: 300;
    font-size:16px;
    text-transform: uppercase;
}

.input::placeholder {
    color:#CFCFCF;
    font-size:16px;
    font-weight:100;
    text-transform: none;
}

.input:focus {
    color:white;
    outline: none !important;
}

.btn {
    background: var(--green);
    color: white;
    padding: 20px 50px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-weight: 300;
    transition: background-color ease-in 0.15s;
}

.btn.outlined {
    background:transparent;
    border:1px solid var(--white);
}

.btn:hover {
    background-color: var(--green-bold);
}



body {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--texte);
    background: var(----white);
    font-size:16px;
    line-height:25px;
}

h2 {
    font-size:30px;
    font-weight: 300;
    margin:0;

    /* Desktop */
    @media (min-width: 768px) {
        font-size:40px!important;
    }
}

.container {
    position:relative;
    left:50%;
    margin-left:-50%;
    width: 100%;

    /* Desktop */
    @media (min-width: 768px) {
        max-width: 960px;
        margin-left:-480px;
    }

    /* Extra-large */
    @media (min-width: 1280px) {
        max-width: 1200px;
        margin-left:-600px;
    }

}

.md-justify-center {
    @media (max-width: 767px) {
        justify-content: center!important;
    }
}

/* HEADER */
header {
    position:absolute;
    z-index:1000;
    width:100%;
    height:90px;
    top:0px;

    nav {
        padding: 10px 50px;
        position: relative;
        z-index: 2;
        text-align:center;
        display: flex;
        align-items: center;
        margin:0;
        justify-content: space-between;

        /* Mobile */
        @media (max-width: 767px) {
            flex-direction: column;
        }

    }

    nav ul {
        list-style: none;
        display: flex;
        gap: 30px;
        margin:0;

        /* Mobile */
        @media (max-width: 767px) {
            padding:0px;
        }

        li {
            padding:20px 0;
            border-bottom:1px solid transparent;
            position:relative;
        }

        li::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 2px;
            background-color: var(--white);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        li:hover::after {
            transform: scaleX(1);
        }

    }

    nav a {
        color: var(--white);
        text-decoration: none;
        font-weight: 300;
    }

}

/* HERO */
.hero {
    position: relative;
    background: url("/images/cover-site-2.jpg") left no-repeat;
    height: 100vh;
    color: var(----white);
    text-align: center;

    /* Desktop */
    @media (min-width: 768px) {
        background: url("/images/cover-site-2.jpg") center/cover no-repeat !important;
    }

    .container {
        display:flex;   
        align-items: center;
        justify-content: center;
        height:100%;

        /* Desktop */
        @media (min-width: 768px) {
            justify-content: right;
        }
    }

    .hero-content {
        position: relative;
        z-index: 2;
        color:var(--texte);

        h1 {
            margin-bottom: 10px;
            font-weight:normal;
            color:var(--white);
            line-height:55px;
            font-size:45px;
        }

        h2 {
            font-size:30px!important;
            color:white;
            line-height: 35px;
        }

        span {
            margin-left:5px;
            margin-right:10px;
        }

        .btn {
            background: transparent !important;
            border:1px solid white!important;
            font-weight: bold;
            border-radius:35px;
        }
        
    }

    .hero-content.overlay {
        padding: 30px;
        border-radius: 40px;
        background: #4d544cf7;
        color:white;
    }

}




/* INTRODUCTION */
.intro {
    padding: 60px 10%;
}

.intro-text {
    display:block;

    img {
        width: 250px;
    }

    /* Desktop */
    @media (min-width: 768px) {
        display: flex;
        gap: 40px;
        align-items: flex-start;

        p:first-child {
            margin-top:0;
        }

        img {
            display:block !important;
            margin-top: 25px;
        }

        > div {
            padding-bottom: 120px !important;
        }
    }

    > div {
        background: url(/images/itineraire-amour.png) no-repeat bottom right;
        padding-bottom: 180px;
    }
}

.signature {
    font-style: italic;
    margin-top: 10px;
}

.switches {
    display:flex;
    gap:20px;

    @media (max-width: 767px) {
        .btn {
            padding: 20px 20px!important;
        }
    }

    .btn.active {
        background: var(--green-light);
    }

    .btn {
        border-radius:30px;
        background-color: var(--green-bold);
    }

    .btn:hover {
        background-color: var(--green-light);
    }
}

/* PROGRAM */
.program {
    background: var(--green);
    color: var(--white);
    padding: 60px 10%;

    .program-head {
        display:flex;
        justify-content: space-between;

        img {
            display: none;
        }

        @media (min-width: 768px) {
            img {
                display: block !important;
            }
            
        }

        
    }

    .timeline {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 30px;
        border-top:none;
        border-left:2px solid var(--white);
        flex-direction: column;

        @media (min-width: 768px) {
           flex-direction: row !important;
           border-top:2px solid var(--white) !important;
           border-left:none!important;
           gap:100px !important;
        }

    }

    .event {
        text-align: center;
        position:relative;
        display: flex;
        flex-direction: row;
        padding-left: 34px;
        gap: 20px;

        @media (min-width: 768px) {
            display: block !important;
            padding-left: 0 !important;
        }

        p {
            font-size:20px;
            margin:10px 0;
            text-transform: uppercase;
            min-width:80px;

            @media (min-width: 768px) {
                font-size:30px!important;
            }
        }

        span {
            text-align: left;

            @media (min-width: 768px) {
                text-align: center;
            }
        }

        .circle {
            position: absolute;
            left: 0;
            margin-left: -12px;
            border-radius: 20px;
            background: white;
            top: 12px;
            height: 20px;
            width: 20px;

            @media (min-width: 768px) {
                left:50% !important;
                top:-12px !important;
            }
        }

        .line {
            width:50px;
            height:1px;
            border-top:2px solid var(--white);
            position: absolute;
            top:55px;
            left:12px;
        }
    }
}

.faq {
    padding-top:100px;
    background-color:var(--green);
    color:var(--white);

    h1 {
        margin-bottom:50px;
        font-weight:300;
        height:100px;
        line-height: 100px;
        font-size: 40px;

        @media (max-width: 768px) {
            font-size: 27px !important;
        }

    }

    iframe {
        width: 560px !important;
        height: 315px !important;

        @media (max-width: 768px) {
            width: 350px !important;
            height: 197px !important;
        }
    }

    p {
        font-weight: normal;
    }

    .faq-part {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin-bottom:50px;

        @media (min-width: 768px) {
            grid-template-columns: repeat(2, 1fr);
        }

        .faq-title {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;

            @media (max-width: 767px) {
                margin-bottom: 30px;
            }

            h2 {
                font-size:30px !important;
            }

            p {
                font-weight: 200;
                font-size: 22px;
            }
        }
    }

    .faq-part:last-child {
        margin-bottom:0px;
    }

    .question {
        border: 1px solid var(--green-light);
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 15px;
        cursor:pointer;

        h3, p {
            margin:0;
            font-weight: 300;
        }

        p {
            height:0px;
            transition: height 0.2s ease-in;
            overflow: hidden;
        }

        &.collapse {
            p {
                padding-top:20px;
                height:auto;
            }
        }
    }

    .question:hover {
        background-color:var(--green-light);
    }
}

/* PLACE */
.lieu {
    padding: 60px 10%;

    .container {
        gap:50px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);

        @media (min-width: 768px) {

            grid-template-columns: repeat(2, 1fr);
            flex-direction: row!important;

            > img {
                width:auto!important;
                height:auto;
            }

        }

        > img {
            width: 100%;
        }
    }

    .lieu_name {
        display:flex;
    }
}


/* HEBERGEMENTS */
.hebergements {
    background: var(--green);
    padding: 60px 10%;
    color:var(--white);
}

.hotels {
    display: flex;
    justify-content: space-between; 
    flex-direction: column;
    gap:20px;

    @media (min-width: 768px) {
        flex-direction: row !important;
    }

    .hotel {
        text-align: center;
        display:flex;
        justify-content: space-between;

        @media (min-width: 768px) {
            display:block !important;
        }

        p {
            margin:0;

            @media (min-width: 768px) {
                margin-top:10px !important;
            }
        }

        .btn {
            padding: 5px 30px;

            @media (min-width: 768px) {
                padding: 15px 50px !important;
            }
        }
    }

    .hotel:hover img {
        opacity:1;
    }

    .hotel img {
        border-radius: 6px;
        width: 150px;
        height: 96px;
        object-fit: cover;
        opacity:0.7;
        transition:opacity ease-in 0.15s;

        @media (min-width: 768px) {
            display:block !important;
            width: 250px;
            height: 160px;
        }
    }

}


/* FORMULAIRE */
.rsvp {
    padding: 60px 10%;
}

.rsvp form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .form-component {
        @media (min-width: 768px) {
            flex-direction: row !important;
            display:grid;
            grid-template : "form1 form2"
                            "form3 form3"
                            "form4 form4"
                            "submit submit";

            .main_form {
                grid-area: form1;
            }

            .participation_types {
                grid-area: form2;
            }

            .allergies {
                grid-area: form3;
            }

            .comment {
                grid-area: form4;
            }

            button {
                grid-area: submit;
            }

        }

    }

    button {
        grid-area: submit;
        width:100%;
        margin-top:30px;
    }

    button:disabled {
        background:grey;
    }
}

.radio-group, .checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

textarea {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    padding: 10px;
    border:1px solid var(--green-light);
}

textarea:focus {
    outline: none !important;
    border:1px solid var(--green-bold);
}

footer {
    background: var(--green);
    color: white;
    text-align: center;
    padding: 20px 0;

    a {
        text-decoration:none;
        color: white;
    }
}


.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
}

/* Cache la checkbox native */
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Carré custom */
.checkmark {
    width: 26px;
    height: 26px;
    border: 2px solid var(--green-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Check */
.checkmark::after {
    content: "";
    width: 26px;
    height: 26px;
    background:var(--green-bold);
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* État checked */
.checkbox input:checked + .checkmark::after {
  opacity: 1;
}

/* Hover */
.checkbox:hover .checkmark {
  background-color: #e8f5e9;
}