@font-face {
    font-family: 'sosh-medium';
    src: url('fonts/MaPremierePolice.woff2') format('woff2'),
         url('fonts/MaPremierePolice.woff') format('woff'),
         url('../fonts/Sosh-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'sosh-black';
    src: url('fonts/MaPremierePolice.woff2') format('woff2'),
         url('fonts/MaPremierePolice.woff') format('woff'),
         url('../fonts/Sosh-Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body{
    margin: 0;
    padding: 0;
    height: 100vh;
    background: #fcf9eb;
    font-family: "Lora", serif;
  /*  background: linear-gradient(0deg, rgba(0,26,112,1) 40%, rgba(3,57,157,1) 80%, rgba(0,76,199,1) 100%);*/
}

.logo-top-right {
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 10; /* S'assure que le logo est au-dessus des autres éléments */
}

h1{
    font-size: 30px;
    line-height: 45px;
    font-family: "Lora", serif;
    color: #914e1b;
}

h2{
    line-height: 30px;
    line-height: 34px;
    font-family: "Lora", serif;
    color: #914e1b;
}

h3, h4{
    font-family: "Lora", serif;
    color: #914e1b;
}

.ecoCup{
    width: 300px;
}

.ecoCup img{
    width: 100%;
}


.foot p{
    font-size: 12px;
    font-family: 'sosh-medium', sans-serif;
}

.follow-insta a{
 color: #000;
 text-decoration: none;
 font-family: 'sosh-black', sans-serif;
}

.custom-input {
    background-color: #ac5e23;
    color: white;
    border: none;
    height: 60px;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    outline: none;
    font-family: 'sosh-black', sans-serif;
}
.custom-input::placeholder {
    color: #cccccc; /* Optional: to style the placeholder text */
    font-family: 'sosh-black', sans-serif;
}

.d-grid{
  justify-items: center;
}

.btn-sosh{
    background-color:#ac5e23 ;
    border-color:#fcf9eb ;
    color:#fcf9eb;
    text-transform: uppercase;  
    width: 90%; 
    border-radius: 50px;
    height: 50px;
    line-height: 40px;
    font-family: 'sosh-black', sans-serif;
}

.btn-sosh-2{
    background-color:#ffff ;
    border-color:#ffff ;
    text-transform: uppercase;  
    width: 60%; 
    border-radius: 50px;
    height: 45px;
    line-height: 35px;
    font-family: 'sosh-black', sans-serif;
}

.btn-sosh-3{
    background-color:#ac5e23 ;
    width: 100%; 
    border-radius: 50px;
    color: #f5f5f5;
    height: 60px;
    font-family: 'sosh-black', sans-serif;
}


.pink{
    color: #de2554;
}

.btn-primary:hover{
    background-color:#0894c2 ;
    border-color:#28bff2 ;
    text-transform: uppercase;   
}

.btn-defis{
    text-decoration: none;
    color: #3e3e3e;
    align-items: center;
    display: flex;
    justify-content: flex-start;
    height: 100px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.btn-defis:hover{
    color:#8d8d8e;
}

#video, #photoPreview{
    height: 100%;
    width: 100%;
}

.defis-btnInfo{
    margin-left: 10px;
    text-align: left;
    line-height: normal;
}

.defis-btnInfo .title{
    font-size: 24px;
    font-weight: 600;
}

.defis-btnInfo .descrip{
    font-size: 18px;
}

.defis-btnImg img{
    border-radius: 5px;
}

.back-rules{
    background-color: #fff;
    margin-top: 5%;
    border-radius: 30px;
    padding: 30px;
}

.def{
    max-width: 480px;
    margin: auto;
    margin-top: 30px;
}

.def-2{
    max-width: 480px;
    margin: auto;
    margin-top: 15px;
}

.def-diapo{
    max-width: 900px;
    margin: auto;
    margin-top: 100px;
}

#cameraContainer{
    background-color: #ac5e23;
    border-radius: 20px;
    padding: 20px;
}

#previewContainer{
    background-color: #ac5e23;
    border-radius: 20px;
    padding: 20px;
}

#captureBtn{
    border-radius: 50%;
    background-color:#fcf9eb;
    color: #ac5e23;
    height: 80px;
    width: 80px;
    border: none;
}



#switchCameraBtn{
    display: inline-flex; /* Utilise Flexbox pour le positionnement */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    border-radius: 50%;
    background-color:#fcf9eb;
    color: #ac5e23;
    height: 40px;
    width: 40px;
    border: none;
    padding: 0;
}

#switchCameraBtn i {
    margin: 0;

}

.form-take{
    background: #fff;
    display: flex;
    border-radius: 20px;
    min-height: 420px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
}

#btnPreview{
    margin-top: 20px;
}

#confirmBtn{
    border-radius: 50%;
    background-color:#fcf9eb;
    color: #ac5e23;
    height: 60px;
    width: 60px;
    border: none;
}

.btnContainer{
    display:inline-grid;
}

.btn-title{
    font-size: 25px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #fcf9eb;
    font-family: 'sosh-medium', sans-serif;
}

.b-title{
    font-size: 25px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #fcf9eb;
    font-family: 'sosh-black', sans-serif;

}

#cancelBtn{
    border-radius: 50%;
    background-color:#fcf9eb;
    color: #ac5e23;
    height: 60px;
    width: 60px;
    border: none;
}

.back-rules h3{
    color: #0451e0;
}

.photo-feed {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 30px;
}
.photo-item {
    width: 30%; /* Ajustez la taille selon vos besoins */
    margin-bottom: 15px;
    border-radius: 10px; /* Arrondir les coins des images */
}
.photo-in-feed {
    width: 100%; /* Assurez que l'image prend toute la largeur de son conteneur */
    border-radius: 10px;
}

/* ======= Upload photo ==========*/

.photo-preview-canvas {
    border: 1px solid #ddd;
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

#photoPreviewCanvas {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain; /* Maintient le ratio sans couper */
    display: block;
    margin: 0 auto;
}

textarea#comment {
    width: 90%; /* Taille proportionnelle à la largeur */
    height: 100px; /* Hauteur fixe */
    margin: 10px auto;
    display: block;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc; /* Bordure légère */
    border-radius: 5px; /* Arrondi pour un effet plus moderne */
}

#submitPhoto:disabled {
    background-color: grey !important;
    color: white !important;
}

/* Loader en cercle */
.loader {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px; /* Ajoute un espace avant le texte */
}

/* Animation du loader */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ======= feed ==========*/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #fcf9eb;
}

#comment{
    margin:10px 0;
}

#photoDescription{
    font-size: 18px;
    margin-top: 25px;
    font-style: italic;
}

.heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: #de2554;
    opacity: 0;
    transition: opacity 0.5s;
}

.modal-content {
    position: relative;
    cursor: pointer;
    margin: auto;
    margin-top: 25px;
    display: block;
    width: 90%;
    max-width: 700px;
}

.return-feed {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 0px 20px;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 16px;
    background-color:#ffff ;
    text-transform: uppercase;  
    border-radius: 50px;
    height: 50px;
    line-height: 40px;
    font-family: 'sosh-black', sans-serif;
    
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 80px;
    padding: 16px;
    margin-top: -50px;
    color: white;
    background: none;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    border: none;
    user-select: none;
    -webkit-user-select: none;
}
.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}
.next {
    right: 0;
    border-radius: 0 3px 3px 0;
}
.back-to-feed {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    font-size: 16px;
    color: white;
    background-color: #fccf02;
    border: none;
    cursor: pointer;
}

.likeContain {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.likeContain button {
    background-color: #de2554;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

.likeContain #likeCount {
    color: #de2554;
    font-size: 16px;
    font-family: 'sosh-black', sans-serif;

}


/* ======= feed end ==========*/