/* Copyright 2024 - Les Filons De Lest - lesfilonsdelest@gmail.com /* ============= STYLES CONTENU SPE PAGE ============= */ main { width: 100%; flex-direction: column; } @media only screen and (max-device-width: 768px) { main { display: flex; } } section { display: flex; align-items: center; justify-content: center; } /* ========== STYLES CONTENU SPE SECTION 1 =========== */ .section1 { margin-left: 25px; margin-right: 25px; height: 75px; padding-top: 20px; align-items: center; } @media only screen and (max-device-width: 768px) { .section1 { padding-top: 0px; } } .title { color: rgba(235, 235, 235, 0.9); /* cetait ca mais avec opacité : color: #ebebeb; */ font-family: raleway_bold; font-size: 27px; } @media only screen and (max-device-width: 768px) { .title { font-size: 24px; text-align: center; } } .leftseparator, .rightseparator { position: absolute; top: 137px;/* calc(70px + calc(200% - 70px) * 0.05 - 25px - 10px); /* varbar + taille du main * proportion section 1 + marge texte et taille texte*/ height: 1px; /* Épaisseur de la ligne */ background-color: #ccc; /* Couleur de la ligne */ } @media only screen and (max-device-width: 768px) { .leftseparator, .rightseparator { top: 107px; } } .leftseparator { left: calc(5% + 75px); right: max(60%, calc(50% + 130px)); } @media only screen and (max-device-width: 768px) { .leftseparator { left: 5%; } } .rightseparator { right: 5%; left: max(60%, calc(50% + 130px)); } .backbutton { white-space: pre-wrap; position: absolute; left: 5%; top: 128px; font-family: raleway_semibold; font-size: 14px; color: #ebebeb; text-decoration: none; /* Supprime le soulignement du texte */ } @media only screen and (max-device-width: 768px) { .backbutton { display: none; } } .backbutton:hover { font-family: raleway_bold; } /* ========== STYLES CONTENU SPE SECTION 2 =========== */ .section2 { margin-left: 5%; margin-right: 5%; margin-top: 20px; margin-bottom: 10px; flex-direction: column; justify-content: space-between; } @media only screen and (max-device-width: 768px) { .section2 { margin-top: 0px; } } .filter_img { position: absolute; height: 18px; left: 10px; } .desc { display: block; font-family: raleway_regular; font-size: 19px; color: #ebebeb; text-align: center; margin: 0; /* Reset les marges par defaut des paragraphes */ margin-bottom: 20px; margin-right: 120px; /* pour pas que ca rentre dans le menu filtre si on resize */ margin-left: 120px; } @media only screen and (max-device-width: 768px) { .desc { display: none; } } .descTel { display: none; font-family: raleway_regular; color: #ebebeb; text-align: center; margin: 0; /* Reset les marges par defaut des paragraphes */ font-size: 17px; margin-right: 0px; margin-left: 0px; margin-bottom: 0px; } @media only screen and (max-device-width: 768px) { .descTel { display: block; } } .searchShowButton { position: absolute; width: 60px; margin-top: 45px; align-self: flex-end; display: inline-block; font-family: opensans_semibold; font-size: 14px; padding: 8px 15px; text-decoration: none; border: 2px solid white; border-radius: 4px; background-color: rgba(150, 150, 150, 0.5); color: #ebebeb; text-decoration: none; /* Supprime le soulignement du texte */ } .searchShowButton:hover { animation: sursaut-filter-categos 0.45s ease; background-color: rgba(150, 150, 150, 0.25); } @media only screen and (max-device-width: 768px) { .searchShowButton { position: relative; bottom: 0px; border: 1px solid white; font-size: 13px; padding: 5px 15px; margin-top: 12px; } } #filter_btn { padding-left: 30%; } @media only screen and (max-device-width: 768px) { #filter_btn { padding-left: 35%; } } @keyframes sursaut-filter-categos { 0% { transform: translateY(0); } 50% { transform: translateY(-3px); } 100% { transform: translateY(0); } } .searchPanel { display: none; width: calc(100% - 10px); height: 100%; margin-top: 5px; background-color: rgba(255, 255, 255, 0.35); justify-content: center; align-items: center; border: 2px solid white; border-radius: 4px; padding: 5px; } .searchPanel form { text-align: center; margin-top: 15px; } @media only screen and (max-device-width: 768px) { .searchPanel form { margin-top: 0px; } } button.selected { border: 1px solid white !important; font-weight: bold !important; color: black !important; background-color: white !important; } .tagsJsonButtonRow button { margin-right: 5px; margin-bottom: 5px; background-color: transparent; border: 1px solid white; border-radius: 4px; color: white; } .tagsJsonButtonRow button:hover { cursor: pointer; } @media only screen and (max-device-width: 768px) { .tagsJsonButtonRow button:hover { cursor: none; } } .actionBtn { all: initial; /* reset style btn */ background-color: white; border: 1px solid white; border-radius: 4px; color: black; font-family: raleway_regular; font-size: 14px; padding: 3px; } .actionBtn:hover { cursor: pointer; } @media only screen and (max-device-width: 768px) { .actionBtn:hover { cursor: none; } .actionBtn { margin-top: 5px; } } /* Checkbox */ .toggle-checkbox { display: none; } .toggle-label { display: inline-block; width: 48px; height: 24px; background-color: #282828; border-radius: 24px; position: relative; cursor: pointer; margin-left: 5px; margin-right: 5px; } @media only screen and (max-device-width: 768px) { .toggle-label { cursor: none; } } .toggle-inner { width: 24px; height: 24px; background-color: #282828; border-radius: 50%; position: absolute; left: 0; transition: transform 0.3s; } .toggle-switch { width: 24px; height: 24px; background-color: white; border-radius: 50%; position: absolute; top: 0; left: 0; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); transition: left 0.3s; } .toggle-checkbox:checked + .toggle-label .toggle-inner { transform: translateX(24px); } .toggle-checkbox:checked + .toggle-label .toggle-switch { left: 24px; } .filterModeLabelDiv { display:flex; flex-direction: row; align-items: center; padding-top: 10px; } .filterModeDiv { display:flex; flex-direction: row; align-items: center; padding-bottom: 10px; } .filterModeDiv p { margin: 0px; font-family: raleway_regular; font-size: 15px; color: #ebebeb; } .filterSectionLabel { margin-bottom: 3px; margin-top: 5px; font-family: raleway_regular; font-size: 15px; color: #ebebeb; } /* info bulle */ .info-icon { position: relative; display: inline-block; } .info_img { height: 20px; width: auto; aspect-ratio: 1; } .info-bubble { position: absolute; display: none; background-color: #f9f9f9bf; color: #333; padding-left: 10px; padding-right: 10px; padding-top: 5px; padding-bottom: 5px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); left: calc(100% + 5px); /* Position de départ à droite de l'icône */ top: 50%; transform: translateY(-50%); max-width: 60vw; /* Largeur maximale de l'info-bulle */ white-space: nowrap; /* Gestion des retours à la ligne */ word-wrap: break-word; /* Gestion des mots longs */ } @media only screen and (max-device-width: 768px) { .info-bubble { white-space: wrap; width: 50vw; } } .info-icon:hover .info-bubble { display: block; } /* ========== STYLES CONTENU SPE SECTION 3 =========== */ .section3 { flex: 1.5; /* Utiliser flex pour que les sections se partagent l'espace disponible dans main */ } .grid-container { width: 90%; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .grid-item { aspect-ratio: 1; /* pour que la hauteur soit égale à la largeur */ position: relative; width: 100%; height: 100%; border: 1px solid white; border-radius: 2px; } .card_overlay { position: absolute; width: 100%; height: 100%; cursor: pointer; /* Changement de curseur au survol */ object-fit: cover; /* Assure que l'image couvre toute la div carrée */ background-color: rgba(35, 35, 35, 0.6); } @media only screen and (max-device-width: 768px) { .card_overlay { cursor: none; } } .card_overlay:hover { background-color: rgba(75, 75, 75, 0.3); /* Changement de couleur au survol */ } .card_overlay:hover .show_on_over { /* Au survol de la div, on affiche la class show_on_over */ display: flex; flex-direction: column; width: 100%; height: 100%; animation: fondu-card-overlay 0.4s ease-in-out; } .card_overlay .show_on_over { /* Quand on survol pas la div, on masque la class show_on_over */ display: none; } .card_overlay:hover .hide_on_over { /* Au survol de la div, on masque la class hide_on_over */ display: none; } .card_overlay .hide_on_over { /* Quand on survol pas la div, on affiche la class hide_on_over */ display: block; animation: fondu-card-overlay 0.4s ease-in-out; } @keyframes fondu-card-overlay { 0% { opacity: 0; } 100% { opacity: 1; } } .card_overlay a { /* Texte du */ position: absolute; top: 50%; transform: translateY(-50%); width: 70%; padding-left: 15%; padding-right: 15%; text-align: center; margin: 0px; /* Supprime la marge par défaut du paragraphe */ font-family: raleway_semibold; font-size: 27px; color: #ebebeb; text-decoration: none; /* Supprime le soulignement du texte */ } .card_detail_element_1, .card_detail_element_2, .card_detail_element_3, .card_detail_element_4 { display: flex; position: relative; justify-content: center; text-align: center; padding: 0px; margin: 0px; } .card_detail_element_1 { padding-top: 15px; padding-left: 20px; padding-right: 20px; flex: 1; align-items: start; font-family: raleway_semibold; font-size: 22px; color: #ebebeb; text-decoration: none; /* Supprime le soulignement du texte */ background: linear-gradient(to bottom, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.0) 100%); } .card_detail_element_2 { flex: 3; align-items: start; font-family: raleway_bold; font-size: 20px; color: #ebebeb; text-decoration: none; /* Supprime le soulignement du texte */ padding-top: 15px; } .card_detail_element_3 { /* utiliser flex pas fonctionner pour ca donc c'est juste l'img qui va def la taille du container parent*/ align-items: start; background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.0) 100%); } .card_detail_element_4 { flex: 1; align-items: start; font-family: raleway_regular; font-size: 20px; color: #ebebeb; text-decoration: none; /* Supprime le soulignement du texte */ background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.45) 100%); } .open_img { height: 60px; width: auto; aspect-ratio: 1; } .grid-item img:not(.open_img) { width: 100%; height: 100%; object-fit: cover; /* Assure que l'image couvre toute la div carrée */ } /* ================= SECTION 4 =================== */ .section4 { margin-left: 5vw; margin-right: 5vw; padding-left: 2vw; padding-right: 2vw; padding-top: 10px; padding-bottom: 10px; margin-bottom: min(7vw, 30px); align-items: center; } @media only screen and (max-device-width: 768px) { .section4 { margin-top: 5vw; } } .moreComing { display: flex; flex-direction: column; } .moreComingText { font-family: raleway_regular; font-size: 17px; color: #ebebeb; text-align: center; padding: 0; margin: 0; margin-bottom: 10px; } @media only screen and (max-device-width: 768px) { .moreComingText { font-size: 15px; } } .formLabelAndInput { display: flex; flex-direction: column; margin-bottom: 10px; } .form { text-align: center; width: 50%; align-self: center; } @media only screen and (max-device-width: 768px) { .form { width: 100%; margin-bottom: 50px; } } .formInput { font-family: raleway_regular; font-size: 15px; padding: 5px; padding-left: 5px; border-color: rgba(255, 255, 255, 0.8); border: 2px solid white; border-radius: 4px; text-decoration: none; background-color: rgba(150, 150, 150, 0.5); text-decoration: none; /* Supprime le soulignement du texte */ color: #ffffff; } @media only screen and (max-device-width: 768px) { .formInput { font-size: 15px; } } .formLabel { font-family: raleway_regular; font-size: 19px; color: #ebebeb; text-align: left; padding-left: 5px; padding-bottom: 5px; } @media only screen and (max-device-width: 768px) { .formLabel { font-size: 17px; } } .formInput::placeholder { color: white; font-style: italic; opacity: 0.8; } .formSubmit { border: none; margin: 0; overflow: visible; background-color: white; color: #252525; font-family: opensans_semibold; font-size: 15px; text-align: center; padding: 4px; text-decoration: none; border: 1px solid white; border-radius: 99px; width: calc(100% - 30px); cursor: pointer; } @media only screen and (max-device-width: 768px) { .formSubmit { font-size: 15px; cursor: none; } } .captcha { padding-left: 2px; padding-right: 0px; align-self: center; /*transform: scale(0.77); transform-origin:0.5 0.5;*/ } .formResultError { color: red; width: 40%; text-align: center; align-self: center; } @media only screen and (max-device-width: 768px) { .formResultError { width: 80%; } } .formResultSuccess { color: rgb(0, 200, 0); font-family: raleway_bold; width: 40%; text-align: center; align-self: center; position: relative; top : -20px; } @media only screen and (max-device-width: 768px) { .formResultSuccess { width: 80%; } } /* =========== STYLE BOUTON NEXT ET PREVIOUS SPOT =============== */ #nextAndPreviousPagePcOnly { margin-top: 2.5vh; display: flex; width: 90%; margin-left: 5%; background-color: rgba(150, 150, 150, 0.25); } @media only screen and (max-device-width: 768px) { #nextAndPreviousPagePcOnly { display: none; } } #nextAndPreviousPagePcOnly a { background-color: rgba(150, 150, 150, 0.5); color: #ebebeb; text-decoration: none; /* Supprime le soulignement du texte */ font-family: raleway_regular; font-size: 15px; text-align: center; border: 2px solid white; border-radius: 4px; outline: none; background-color: #333; color: white; cursor: pointer; padding-left: 15px; padding-top: 7px; padding-right: 15px; padding-bottom: 7px; margin-left: 25px; margin-right: 25px; } #nextAndPreviousPagePcOnly a:hover { animation: sursaut-filter-categos 0.45s ease; background-color: rgba(150, 150, 150, 0.25); } #nextAndPreviousPagePcOnly p { color: #ebebeb; font-family: raleway_regular; font-size: 15px; text-align: center; padding-left: 15px; padding-top: 7px; padding-right: 15px; padding-bottom: 7px; } #nextAndPreviousPagePhoneOnly { margin-top: 2.5vh; display: none; width: 90%; margin-left: 5%; background-color: rgba(150, 150, 150, 0.25); } @media only screen and (max-device-width: 768px) { #nextAndPreviousPagePhoneOnly { display: flex; } } #nextAndPreviousPagePhoneOnly a { background-color: rgba(150, 150, 150, 0.5); color: #ebebeb; text-decoration: none; /* Supprime le soulignement du texte */ font-family: raleway_regular; font-size: 13px; text-align: center; border: 2px solid white; border-radius: 4px; outline: none; background-color: #333; color: white; cursor: none; padding-left: 10px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; margin-left: 10px; margin-right: 10px; } #nextAndPreviousPagePhoneOnly a:hover { animation: sursaut-filter-categos 0.45s ease; background-color: rgba(150, 150, 150, 0.25); } #nextAndPreviousPagePhoneOnly p { color: #ebebeb; font-family: raleway_regular; font-size: 13px; text-align: center; padding-left: 10px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; } @keyframes sursaut-filter-categos { 0% { transform: translateY(0); } 50% { transform: translateY(-3px); } 100% { transform: translateY(0); } } .arrow { font-size: 15px; font-weight: bold; position: relative; top: -1px; } @media only screen and (max-device-width: 768px) { .arrow { font-size: 13px; } }