body {
    font-family: Arial, sans-serif;
    height: 100vh;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

.index {
    background-image: url('img/familledurget.jpg');
    background-size: cover;
    background-position: center top;
}

.sabine {
    background-image: url('img/sabine.JPG');
    background-size: cover;
    background-position: center top;
}

.livret {
    background-color: white;
    background-size: 100% auto;
}


header {
    top: 0;
    width: 100%;
    font-size: 1.1em;
}

.indexh {
    background: rgba(255, 255, 255, 0.3);
    position: fixed;
    z-index: 2;
    padding: 1px;
}

.sabineh {
    background: rgba(255, 255, 255, 0.2);
    position: fixed;
    z-index: 2;
    padding: 1px;
}

.livreth {
    background: rgb(173, 173, 173);
    position: fixed;
    z-index: 2;
    padding: 1px;
}

.dessinh {
    background: rgb(173, 173, 173);
    padding: 1px;
}

.container {
    width: 100%;
    margin: 0;
}

.bandeau {
    width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0;
}

#bandeau ul {
    list-style: none;
}

.menu li {
    float: left;
    width: 16%;
    text-align: center;
    position: relative;
}

.menu2 li {
    float: left;
    width: 16%;
    text-align: center;
    position: relative;
}


#bandeau ul::after {
    content: "";
    display: table;
    clear: both;
}

#bandeau a {
    display: block;
    text-decoration: none;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    border-bottom: 2px solid transparent;
    padding: 20px 0 20px 0;
}

#bandeau a:hover {
    opacity: 1;
    border-bottom: 2px solid white;
}


.dispo {
    color: #fff;
}

.nondispo {
    color: grey;
}

.sous {
    display: none;
    box-shadow: 0px 1px 2px #CCC;
    background-color: rgb(202, 202, 202);
    position: absolute;
    width: 100%;
    z-index: 1000;
    padding: 0;
}

nav>ul li:hover .sous {
    display: block;
}

.sous li {
    float: none;
    width: 100%;
    text-align: center;
}

.sous a {
    border-bottom: none;
}

.sous a:hover {
    border-bottom: none;
    background-color: RGBa(200, 200, 200, 0.1);
}

.deroulant>a::after {
    content: "▼";
}

.main-section {
    text-align: center;
}

.section_livret {
    margin: 5% 5%;
    margin-top: 120px;
    padding: 5px;
    box-shadow: 0px 0px 10px 3px rgba(131, 131, 131, 0.2);
    font-size: 0.8em;
    position: relative;
    display: flex;
    height: 100%;
}

.section_livret ul {
    margin: 0;
    padding: 0;
    padding-bottom: 20px;
    list-style: none;
    justify-content: center;
}

.section_livret ul li {
    margin-bottom: 5px;
    /* Vous pouvez ajuster la valeur selon vos besoins */
}

.section_livret a {
    text-decoration: none;
    color: black;
}


.citation {
    position: fixed;
    top: 60%;
    left: 15%;
    transform: translateY(-50%);
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: bold;
    border-radius: 10px;
    width: 350px;
}

.citation a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

#photo_gauche {
    width: 50%;
    box-sizing: border-box;
    border-right: 1px solid #ccc;
    box-shadow: 0px 0px 10px 3px rgba(131, 131, 131, 0.2);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#photo_maman {
    box-shadow: 0px 0px 15px 13px rgba(131, 131, 131, 0.2);
}

#txt_droite {
    width: 50%;
    box-sizing: border-box;
    border-left: 1px solid #ccc;
    box-shadow: 0px 0px 10px 3px rgba(131, 131, 131, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#div_collecte {
    width: 50%;
    box-sizing: border-box;
    border-left: 1px solid #ccc;
    box-shadow: 0px 0px 10px 3px rgba(131, 131, 131, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#txt_sommaire {
    text-align: left;
}

#txt_collecte {
    text-align: left;
    padding-bottom: 20px;
}

.columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9em;
}

.columns_benmazue {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9em;
}

.column {
    flex: 1;
    padding: 20px 5px;
    overflow: hidden;
}

h1 {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

audio {
    width: 70%;
    height: 20px;
    margin-left: auto;
    margin-right: auto;
}


.arrow-button-r {
    background-color: rgb(216, 216, 216);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 9px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.arrow-button-r::after {
    content: "\25B6";
    margin-left: 0px;
}

.arrow-button-r2 {
    background-color: rgb(216, 216, 216);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 9px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 40px;
}

.arrow-button-r2::after {
    content: "\25B6 \25B6";
    margin-left: 0px;
}

.arrow-button-l {
    background-color: rgb(216, 216, 216);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 9px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px;
}

.arrow-button-l::before {
    content: "\25C0";
    margin-right: 0px;
}

.arrow-button-l2 {
    background-color: rgb(216, 216, 216);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 9px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 40px;
}

.arrow-button-l2::before {
    content: "\25C0 \25C0";
    margin-right: 0px;
}

p {
    text-indent: 1.5em;
    padding: 0 20px;
}

p:not(:last-child) {
    text-align: justify;
    display: inline-block;
}

#lecture_texte {
    text-align: center;
    padding: 0 20px;
}

#liste_p {
    text-align: justify;
    padding: 0 20px 0 40px;
    list-style-type: disc;
    /* Utilise des disques comme marqueurs de liste */
}

.liens {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.laligue,
.telethon {
    flex: 1;
    /* Faites en sorte que les boutons prennent toute la largeur disponible */
    margin-right: 5px;
    margin-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.libramemoria {
    flex: 1;
    /* Faites en sorte que les boutons prennent toute la largeur disponible */
    margin: 0px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.laligueb {
    background-color: #e87722;
    font-size: 0.9em;
    color: #fff;
    border-radius: 23px;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    /* Faites en sorte que le bouton prenne toute la largeur du conteneur parent */
    height: 30px;
    border: none;
    font-weight: bold;
}

.telethonb {
    background-color: #d01900;
    font-size: 0.9em;
    color: #fff;
    border-radius: 23px;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    /* Faites en sorte que le bouton prenne toute la largeur du conteneur parent */
    height: 30px;
    border: none;
    font-weight: bold;
}

.libramemoriab {
    background-color: #8f8f8f6f;
    font-size: 0.9em;
    color: #fff;
    border-radius: 23px;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    /* Faites en sorte que le bouton prenne toute la largeur du conteneur parent */
    height: 30px;
    border: 2px solid white;
}

.section_photos {
    margin-top: 10%;
    padding: 5px;
    position: relative;
    display: flex;
    height: 100%;
}

.photos {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.rounded-button {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 20px;
}

.custom-slider {
    display: none;
}

.slide-container {
    max-height: calc(90vh - 50px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 200px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    background-color: rgba(116, 116, 116, 0.6);
    transition: background-color 0.6s ease;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-text {
    position: absolute;
    color: black;
    font-size: 15px;
    padding: 15px;
    bottom: 15px;
    width: 100%;
    bottom: 0;
}

.slide-index {
    color: #ffffff;
    font-size: 13px;
    padding: 5px;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    margin-left: 5px;
}

.slide-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    margin-top: 10px;
}

.container_post {
    display: block;
    margin-top: 10%;
    margin-left: 20%;
    margin-right: 20%;
    margin-bottom: 5%;
}

.consigne_post {
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h2 {
    margin: 0;
    padding: 5px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.message_post {
    justify-content: center;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
}

.lab_prenom {
    margin-right: 20px;
}

.lab_message {
    height: 200px;
}

input,
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-size: 0.8em;
}

.fileupload {
    margin-bottom: 0;
}

.deletephoto {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}


.nomprenom {
    display: flex;
    align-items: center;
}

.form-container {
    position: relative;
}

.submit_form {
    background-color: rgb(105, 105, 255);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.submit_form:hover {
    background-color: rgb(75, 75, 255);
}

.container_messages {
    width: 100%;
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    grid-gap: 25px;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 120px;
}

.message-container-red {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
    height: auto;
    background-color: rgb(255, 191, 191);
    display: flex;
    flex-direction: row;
    width: 100%;
}

.message-container-green {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
    height: auto;
    background-color: rgb(191, 240, 191);
    display: flex;
    flex-direction: row;
    width: 100%;
}

.message-container-blue {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
    height: auto;
    background-color: rgb(191, 191, 255);
    display: flex;
    flex-direction: row;
    width: 100%;
}

.sender-info-red {
    position: absolute;
    top: -15px;
    left: -5px;
    z-index: 1;
    background-color: rgb(255, 154, 154);
    padding: 5px;
    border-radius: 5px;
    display: block;
    border: 1px solid #ddd;
    color: white;
    font-size: 0.8em;
}

.sender-info-green {
    position: absolute;
    top: -15px;
    left: -5px;
    z-index: 1;
    background-color: rgb(154, 240, 154);
    padding: 5px;
    border-radius: 5px;
    display: block;
    border: 1px solid #ddd;
    color: white;
    font-size: 0.8em;
}

.sender-info-blue {
    position: absolute;
    top: -15px;
    left: -5px;
    z-index: 1;
    background-color: rgb(154, 154, 255);
    padding: 5px;
    border-radius: 5px;
    display: block;
    border: 1px solid #ddd;
    color: white;
    font-size: 0.8em;
}

.message-div {
    display: block;
    margin-top: 15px;
    width: 100%;
}

.date-div {
    display: block;
    padding: 5px;
    font-size: 0.5em;
    font-style: italic;
    color: white;
}

.message-content {
    display: flex;
    flex-direction: row;
}

.img-content {
    max-width: 30%;
    margin: 10px 20px 20px 20px;
    display: flex;
    align-items: center;
}

.no-img-content {
    display: none;
}

.img-only-content {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.img-only-content img {
    width: 90%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.img-content img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-text {
    flex: 1;
    margin: 10px 20px 20px 20px;
    text-align: left;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid white;
}

.errorMessage {
    text-align: center;
    font: bold;
}

.txt_sabine {
    padding-bottom: 30px;
    border-bottom: 1px solid white;
}

.liens_sabine {
    margin-top: 10px;
}

@keyframes fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}


@media screen and (max-width: 767px) {
    body {
        font-size: 12px;
    }

    .index {
        background-image: url('img/familledurget_ftel4.jpg');
        background-size: cover;
        background-position: center bottom;
    }

    .sabine {
        background-image: url('img/349.jpg');
        background-size: cover;
        background-position: center top;
    }

    header {
        top: 0;
        width: 100%;
        padding: 1% 0 1% 0;
    }

    #bandeau a {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #bandeau ul {
      margin-bottom: 0px;
    }

    .indexh {
        position: fixed;
        z-index: 2;
    }

    .sabineh {
        position: fixed;
        z-index: 2;
    }

    .livreth {
        position: fixed;
        z-index: 2;
    }


    #bandeau {
        font-size: 13px;
    }

    #bandeau ul {
        padding: 0;
    }

    #bandeau li {
        display: block;
    }

    .menu li {
        float: none;
        width: 100%;
    }

    .menu2 li {
        font-size: 10px;
    }

    .citation {
        top: 75%;
        margin: 30px;
        font-size: 12px;
        padding: 5px;
        left: 0;
    }

    .columns {
        font-size: 7px;
    }

    .columns_benmazue {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        font-size: 6.5px;
    }

    .section_livret {
        margin: 5% 5%;
        margin-top: 20%;
        padding: 5px;
        box-shadow: 0px 0px 10px 3px rgba(131, 131, 131, 0.2);
        font-size: 7px;
        position: relative;
        display: block;
        height: 90%;
    }

    #photo_gauche {
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0px 0px 10px 3px rgba(131, 131, 131, 0.2);
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 50%;
    }

    #div_collecte {
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0px 0px 10px 3px rgba(131, 131, 131, 0.2);
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 50%;
    }

    #txt_droite {
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0px 0px 10px 3px rgba(131, 131, 131, 0.2);
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 50%;
    }

    .arrow-button-r {
        font-size: 7px;
    }

    .arrow-button-r2 {
        font-size: 7px;
    }

    .arrow-button-l {
        font-size: 7px;
    }

    .arrow-button-l2 {
        font-size: 7px;
    }

    .laligue,
    .telethon {
        flex: 1;
        /* Faites en sorte que les boutons prennent toute la largeur disponible */
        margin-right: 5px;
        margin-top: 5px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
    }

    .laligueb,
    .telethonb {
        font-size: 5.5px;
    }

    .container_messages {
        padding-left: 2%;
        padding-right: 2%;
        margin-top: 100px;
    }

    .message-div {
        margin-top: 10px;
    }

    .date-div {
        font-size: 6px;
    }

    .img-content {
        max-width: 40%;
        margin: 0px 5px 5px 10px
    }

    .img-only-content {
        display: flex;
        justify-content: center;
        padding: 20px;
    }

    .img-only-content img {
        width: 90%;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .message-text {
        margin: 0px 10px 5px 5px;
    }

    .container_post {
        margin-top: 100px;
        margin-left: 2%;
        margin-right: 2%;
        margin-bottom: 10px;
    }

    input,
    textarea {
        font-size: 11px;
    }

    .submit_form {
        font-size: 10px;
    }
}

@media screen and (min-width: 1500px) {
    body {
        font-size: 23px;
    }
    .section_livret{
        margin-top: 200px;
    }
    .container_messages{
        margin-top: 200px;
    }
    .container_post{
        margin-top: 200px;
    }
    .citation{
        width: 500px;
    }
    audio{
        height: 30px;
    }
}