Autosave: 20260415-121623
This commit is contained in:
parent
4dadf7797d
commit
253188b46d
@ -1,151 +1,236 @@
|
|||||||
/* General styles for the modal */
|
/* General styles for the modal */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Styles for the html/body for special modal where we want 3d effects
|
Styles for the html/body for special modal where we want 3d effects
|
||||||
Note that we need a container wrapping all content on the page for the
|
Note that we need a container wrapping all content on the page for the
|
||||||
perspective effects (not including the modals and the overlay).
|
perspective effects (not including the modals and the overlay).
|
||||||
*/
|
*/
|
||||||
.md-perspective,
|
.md-perspective,
|
||||||
.md-perspective body {
|
.md-perspective body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-perspective body {
|
.md-perspective body {
|
||||||
background: #d4c6a1;
|
background: #d4c6a1;
|
||||||
-webkit-perspective: 600px;
|
-webkit-perspective: 600px;
|
||||||
-moz-perspective: 600px;
|
-moz-perspective: 600px;
|
||||||
perspective: 600px;
|
perspective: 600px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-modal {
|
.md-modal {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 50%;
|
width: min(92vw, 1100px);
|
||||||
max-width: 1400px;
|
max-width: calc(100vw - 32px);
|
||||||
min-width: 1200px;
|
min-width: 320px;
|
||||||
height: auto;
|
max-height: calc(100vh - 32px);
|
||||||
z-index: 2000;
|
height: auto;
|
||||||
visibility: hidden;
|
overflow-y: auto;
|
||||||
-webkit-backface-visibility: hidden;
|
z-index: 2000;
|
||||||
-moz-backface-visibility: hidden;
|
visibility: hidden;
|
||||||
backface-visibility: hidden;
|
-webkit-backface-visibility: hidden;
|
||||||
-webkit-transform: translateX(-50%) translateY(-50%);
|
-moz-backface-visibility: hidden;
|
||||||
-moz-transform: translateX(-50%) translateY(-50%);
|
backface-visibility: hidden;
|
||||||
-ms-transform: translateX(-50%) translateY(-50%);
|
-webkit-transform: translateX(-50%) translateY(-50%);
|
||||||
transform: translateX(-50%) translateY(-50%);
|
-moz-transform: translateX(-50%) translateY(-50%);
|
||||||
}
|
-ms-transform: translateX(-50%) translateY(-50%);
|
||||||
|
transform: translateX(-50%) translateY(-50%);
|
||||||
.md-show {
|
}
|
||||||
visibility: visible;
|
|
||||||
}
|
.md-show {
|
||||||
|
visibility: visible;
|
||||||
.md-overlay {
|
}
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
.md-overlay {
|
||||||
height: 100%;
|
position: fixed;
|
||||||
visibility: hidden;
|
width: 100%;
|
||||||
top: 0;
|
height: 100%;
|
||||||
left: 0;
|
visibility: hidden;
|
||||||
z-index: 1000;
|
top: 0;
|
||||||
opacity: 0;
|
left: 0;
|
||||||
background: rgba(145,120,30,0.8);
|
z-index: 1000;
|
||||||
-webkit-transition: all 0.3s;
|
opacity: 0;
|
||||||
-moz-transition: all 0.3s;
|
background: rgba(145,120,30,0.8);
|
||||||
transition: all 0.3s;
|
-webkit-transition: all 0.3s;
|
||||||
}
|
-moz-transition: all 0.3s;
|
||||||
|
transition: all 0.3s;
|
||||||
.md-show ~ .md-overlay {
|
}
|
||||||
opacity: 1;
|
|
||||||
visibility: visible;
|
.md-show ~ .md-overlay {
|
||||||
}
|
opacity: 1;
|
||||||
|
visibility: visible;
|
||||||
/* Content styles */
|
}
|
||||||
.md-content {
|
|
||||||
color: #fff;
|
/* Content styles */
|
||||||
background: #544c37;
|
.md-content {
|
||||||
position: relative;
|
color: #fff;
|
||||||
border-radius: 3px;
|
background: #544c37;
|
||||||
margin: 0 auto;
|
position: relative;
|
||||||
}
|
border-radius: 3px;
|
||||||
|
margin: 0 auto;
|
||||||
.md-content h3 {
|
max-width: 100%;
|
||||||
margin: 0;
|
overflow: hidden;
|
||||||
padding: 0.4em;
|
}
|
||||||
text-align: center;
|
|
||||||
font-size: 2.4em;
|
.md-content img {
|
||||||
font-weight: 300;
|
max-width: 100%;
|
||||||
opacity: 0.8;
|
height: auto;
|
||||||
background: rgba(0,0,0,0.1);
|
}
|
||||||
border-radius: 3px 3px 0 0;
|
|
||||||
}
|
.md-content h3 {
|
||||||
|
margin: 0;
|
||||||
.md-content > div {
|
padding: 0.4em;
|
||||||
padding: 15px 40px 30px;
|
text-align: center;
|
||||||
margin: 0;
|
font-size: 2.4em;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-size: 1.15em;
|
opacity: 0.8;
|
||||||
}
|
background: rgba(0,0,0,0.1);
|
||||||
|
border-radius: 3px 3px 0 0;
|
||||||
.md-content > div p {
|
}
|
||||||
margin: 0;
|
|
||||||
padding: 10px 0;
|
.md-content > div {
|
||||||
text-align: justify;
|
padding: 15px 40px 30px;
|
||||||
}
|
margin: 0;
|
||||||
|
font-weight: 300;
|
||||||
.md-content > div ul {
|
font-size: 1.15em;
|
||||||
margin: 0;
|
}
|
||||||
padding: 0 0 30px 20px;
|
|
||||||
}
|
.md-content > div p {
|
||||||
|
margin: 0;
|
||||||
.md-content > div ul li {
|
padding: 10px 0;
|
||||||
padding: 5px 0;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-content button {
|
.md-content > div ul {
|
||||||
display: block;
|
margin: 0;
|
||||||
margin: 0 auto;
|
padding: 0 0 30px 20px;
|
||||||
font-size: 0.8em;
|
}
|
||||||
}
|
|
||||||
|
.md-content > div ul li {
|
||||||
/* Individual modal styles with animations/transitions */
|
padding: 5px 0;
|
||||||
|
}
|
||||||
/* Effect 1: Fade in and scale up */
|
|
||||||
.md-effect-1 .md-content {
|
.md-content button {
|
||||||
-webkit-transform: scale(0.7);
|
display: block;
|
||||||
-moz-transform: scale(0.7);
|
margin: 0 auto;
|
||||||
-ms-transform: scale(0.7);
|
font-size: 0.8em;
|
||||||
transform: scale(0.7);
|
}
|
||||||
opacity: 0;
|
|
||||||
-webkit-transition: all 0.3s;
|
/* Individual modal styles with animations/transitions */
|
||||||
-moz-transition: all 0.3s;
|
|
||||||
transition: all 0.3s;
|
/* Effect 1: Fade in and scale up */
|
||||||
}
|
.md-effect-1 .md-content {
|
||||||
|
-webkit-transform: scale(0.7);
|
||||||
.md-show.md-effect-1 .md-content {
|
-moz-transform: scale(0.7);
|
||||||
-webkit-transform: scale(1);
|
-ms-transform: scale(0.7);
|
||||||
-moz-transform: scale(1);
|
transform: scale(0.7);
|
||||||
-ms-transform: scale(1);
|
opacity: 0;
|
||||||
transform: scale(1);
|
-webkit-transition: all 0.3s;
|
||||||
opacity: 1;
|
-moz-transition: all 0.3s;
|
||||||
}
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
@-webkit-keyframes slit {
|
|
||||||
50% { -webkit-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -webkit-animation-timing-function: ease-out;}
|
.md-show.md-effect-1 .md-content {
|
||||||
100% { -webkit-transform: translateZ(0) rotateY(0deg); opacity: 1; }
|
-webkit-transform: scale(1);
|
||||||
}
|
-moz-transform: scale(1);
|
||||||
|
-ms-transform: scale(1);
|
||||||
@-moz-keyframes slit {
|
transform: scale(1);
|
||||||
50% { -moz-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -moz-animation-timing-function: ease-out;}
|
opacity: 1;
|
||||||
100% { -moz-transform: translateZ(0) rotateY(0deg); opacity: 1; }
|
}
|
||||||
}
|
|
||||||
|
@-webkit-keyframes slit {
|
||||||
@keyframes slit {
|
50% { -webkit-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -webkit-animation-timing-function: ease-out;}
|
||||||
50% { transform: translateZ(-250px) rotateY(89deg); opacity: 1; animation-timing-function: ease-in;}
|
100% { -webkit-transform: translateZ(0) rotateY(0deg); opacity: 1; }
|
||||||
100% { transform: translateZ(0) rotateY(0deg); opacity: 1; }
|
}
|
||||||
}
|
|
||||||
|
@-moz-keyframes slit {
|
||||||
|
50% { -moz-transform: translateZ(-250px) rotateY(89deg); opacity: .5; -moz-animation-timing-function: ease-out;}
|
||||||
|
100% { -moz-transform: translateZ(0) rotateY(0deg); opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slit {
|
||||||
|
50% { transform: translateZ(-250px) rotateY(89deg); opacity: 1; animation-timing-function: ease-in;}
|
||||||
|
100% { transform: translateZ(0) rotateY(0deg); opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1280px) {
|
||||||
|
.md-modal {
|
||||||
|
width: min(94vw, 960px);
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.md-content > div img.float-left,
|
||||||
|
.md-content > div img.float-right {
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto 16px;
|
||||||
|
max-width: min(100%, 260px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.md-modal {
|
||||||
|
width: calc(100vw - 24px);
|
||||||
|
max-width: calc(100vw - 24px);
|
||||||
|
max-height: calc(100vh - 24px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content h3 {
|
||||||
|
position: relative;
|
||||||
|
padding: 0.65em 3.4rem;
|
||||||
|
font-size: 1.5em;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content > div {
|
||||||
|
padding: 16px 18px 20px;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content h3 img.float-left {
|
||||||
|
position: absolute;
|
||||||
|
left: 12px;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content h3 .frame-icon-close.float-right {
|
||||||
|
position: absolute;
|
||||||
|
right: 12px;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.md-modal {
|
||||||
|
width: calc(100vw - 16px);
|
||||||
|
max-width: calc(100vw - 16px);
|
||||||
|
min-width: 0;
|
||||||
|
max-height: calc(100vh - 16px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content h3 {
|
||||||
|
padding: 0.85em 2.8rem;
|
||||||
|
font-size: 1.15em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content > div {
|
||||||
|
padding: 14px 12px 18px;
|
||||||
|
font-size: 0.95em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content > div p {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
742
css/styles.css
742
css/styles.css
@ -1,315 +1,323 @@
|
|||||||
[hidden] { display: none !important; }
|
[hidden] { display: none !important; }
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Electrolize';
|
font-family: 'Electrolize';
|
||||||
src: url('../fonts/Electrolize-Regular.ttf') format('truetype');
|
src: url('../fonts/Electrolize-Regular.ttf') format('truetype');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: Electrolize, Arial, sans-serif;
|
font-family: Electrolize, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #1a1a1a;
|
background: #1a1a1a;
|
||||||
color: white;
|
color: white;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #a29b78 !important;
|
color: #a29b78 !important;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
width: -50%;
|
width: -50%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Utilitaires texte */
|
/* Utilitaires texte */
|
||||||
.txt-s05 { font-size: 5px; }
|
.txt-s05 { font-size: 5px; }
|
||||||
.txt-s10 { font-size: 10px; }
|
.txt-s10 { font-size: 10px; }
|
||||||
.txt-s12 { font-size: 12px; }
|
.txt-s12 { font-size: 12px; }
|
||||||
.txt-s15 { font-size: 15px; }
|
.txt-s15 { font-size: 15px; }
|
||||||
.txt-s20 { font-size: 20px; }
|
.txt-s20 { font-size: 20px; }
|
||||||
.txt-s22 { font-size: 22px; }
|
.txt-s22 { font-size: 22px; }
|
||||||
.txt-s25 { font-size: 25px; }
|
.txt-s25 { font-size: 25px; }
|
||||||
.txt-s40 { font-size: 40px; }
|
.txt-s40 { font-size: 40px; }
|
||||||
.padding5 { padding: 5px; }
|
.padding5 { padding: 5px; }
|
||||||
.padding15 { padding: 15px; }
|
.padding15 { padding: 15px; }
|
||||||
.padding25 { padding: 25px; }
|
.padding25 { padding: 25px; }
|
||||||
.padding50 { padding: 50px; }
|
.padding50 { padding: 50px; }
|
||||||
.padding-left50 { padding-left: 50px !important; }
|
.padding-left50 { padding-left: 50px !important; }
|
||||||
.txt-bold { font-weight: bold; }
|
.txt-bold { font-weight: bold; }
|
||||||
.txt-italic { font-style: italic; }
|
.txt-italic { font-style: italic; }
|
||||||
.txt-justify { text-align: justify; text-justify: inter-word; }
|
.txt-justify { text-align: justify; text-justify: inter-word; }
|
||||||
.txt-center { text-align: center !important; }
|
.txt-center { text-align: center !important; }
|
||||||
.txt-center input { display: inline-block !important; text-align: center !important; }
|
.txt-center input { display: inline-block !important; text-align: center !important; }
|
||||||
.txt-underline { text-decoration: underline; }
|
.txt-underline { text-decoration: underline; }
|
||||||
.float-right { float: right; }
|
.float-right { float: right; }
|
||||||
.float-left { float: left; }
|
.float-left { float: left; }
|
||||||
.txt-or { color: #a29b78; }
|
.txt-or { color: #a29b78; }
|
||||||
.txt-jaune { color: #fcba03; }
|
.txt-jaune { color: #fcba03; }
|
||||||
.v-hidden { visibility: hidden; }
|
.v-hidden { visibility: hidden; }
|
||||||
.small-caps { font-variant-caps: small-caps; }
|
.small-caps { font-variant-caps: small-caps; }
|
||||||
|
|
||||||
.ul-style {
|
.ul-style {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
/* padding-left: 50px !important; */
|
/* padding-left: 50px !important; */
|
||||||
/* border-left: 4px solid #a29b78; */
|
/* border-left: 4px solid #a29b78; */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Vidéo plein écran en arrière-plan */
|
/* Vidéo plein écran en arrière-plan */
|
||||||
.video-container {
|
.video-container {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: -5; /* derrière tout */
|
z-index: -5; /* derrière tout */
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-container iframe {
|
.video-container iframe {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
border: 0;
|
border: 0;
|
||||||
pointer-events: none; /* la vidéo n’intercepte pas les clics */
|
pointer-events: none; /* la vidéo n’intercepte pas les clics */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ajustements pour conserver le recadrage 16/9 sans bandes */
|
/* Ajustements pour conserver le recadrage 16/9 sans bandes */
|
||||||
@media (min-aspect-ratio: 16/9) {
|
@media (min-aspect-ratio: 16/9) {
|
||||||
.video-container iframe { height: 56.25vw; }
|
.video-container iframe { height: 56.25vw; }
|
||||||
}
|
}
|
||||||
@media (max-aspect-ratio: 16/9) {
|
@media (max-aspect-ratio: 16/9) {
|
||||||
.video-container iframe { width: 177.78vh; }
|
.video-container iframe { width: 177.78vh; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Voile noir par-dessus la vidéo */
|
/* Voile noir par-dessus la vidéo */
|
||||||
.black-filter {
|
.black-filter {
|
||||||
background: rgba(0, 0, 0, 0.7);
|
background: rgba(0, 0, 0, 0.7);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Conteneur principal (si besoin de couches au-dessus) */
|
/* Conteneur principal (si besoin de couches au-dessus) */
|
||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 0; /* au-dessus de la vidéo */
|
z-index: 0; /* au-dessus de la vidéo */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Logos centrés */
|
/* Logos centrés */
|
||||||
.center-page-bops {
|
.center-page-bops {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 35%;
|
top: 35%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-size: auto;
|
background-size: auto;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 600px;
|
width: 600px;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-page-infos {
|
.center-page-infos {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0%;
|
top: 0%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-size: auto;
|
background-size: auto;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 600px;
|
width: 600px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.assets-div-menu {
|
.assets-div-menu {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 25px;
|
top: 25px;
|
||||||
left: 25px;
|
left: 25px;
|
||||||
transform: translate(0px, 0px);
|
transform: translate(0px, 0px);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-size: auto;
|
background-size: auto;
|
||||||
background-color: rgb(0 0 0 / 50%);
|
background-color: rgb(0 0 0 / 50%);
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
width: 300px;
|
width: min(300px, calc(100vw - 50px));
|
||||||
display: flex; /* Active le mode Flexbox */
|
max-width: calc(100vw - 50px);
|
||||||
flex-direction: column; /* Aligne les liens les uns sous les autres */
|
display: flex; /* Active le mode Flexbox */
|
||||||
align-items: center; /* Centre verticalement */
|
flex-direction: column; /* Aligne les liens les uns sous les autres */
|
||||||
gap: 2px;
|
align-items: center; /* Centre verticalement */
|
||||||
justify-content: center;
|
gap: 2px;
|
||||||
border: solid 3px rgb(155 145 60 / 25%);
|
justify-content: center;
|
||||||
border-radius: 10px;
|
border: solid 3px rgb(155 145 60 / 25%);
|
||||||
padding: 5px 0px 5px 0px;
|
border-radius: 10px;
|
||||||
}
|
padding: 5px 12px;
|
||||||
|
text-align: center;
|
||||||
.connexion-div-menu {
|
}
|
||||||
position: fixed;
|
|
||||||
top: 25px;
|
.connexion-div-menu {
|
||||||
right: 25px;
|
position: fixed;
|
||||||
transform: translate(0px, 0px);
|
top: 25px;
|
||||||
background-repeat: no-repeat;
|
right: 25px;
|
||||||
background-position: center center;
|
transform: translate(0px, 0px);
|
||||||
background-size: auto;
|
background-repeat: no-repeat;
|
||||||
background-color: rgb(0 0 0 / 50%);
|
background-position: center center;
|
||||||
z-index: 100;
|
background-size: auto;
|
||||||
width: 300px;
|
background-color: rgb(0 0 0 / 50%);
|
||||||
height: 35px;
|
z-index: 100;
|
||||||
display: flex; /* Active le mode Flexbox */
|
width: min(300px, calc(100vw - 50px));
|
||||||
align-items: center; /* Centre verticalement */
|
max-width: calc(100vw - 50px);
|
||||||
justify-content: center;
|
min-height: 35px;
|
||||||
border: solid 3px rgb(155 145 60 / 25%);
|
height: auto;
|
||||||
border-radius: 10px;
|
display: flex; /* Active le mode Flexbox */
|
||||||
}
|
align-items: center; /* Centre verticalement */
|
||||||
|
justify-content: center;
|
||||||
.center-div-menu {
|
border: solid 3px rgb(155 145 60 / 25%);
|
||||||
position: absolute;
|
border-radius: 10px;
|
||||||
top: 50%;
|
padding: 5px 12px;
|
||||||
left: 50%;
|
text-align: center;
|
||||||
transform: translate(-50%, -50%);
|
}
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center center;
|
.center-div-menu {
|
||||||
background-size: auto;
|
position: absolute;
|
||||||
z-index: 3;
|
top: 50%;
|
||||||
width: 1050px;
|
left: 50%;
|
||||||
height: 80px;
|
transform: translate(-50%, -50%);
|
||||||
text-align: center;
|
background-repeat: no-repeat;
|
||||||
}
|
background-position: center center;
|
||||||
|
background-size: auto;
|
||||||
.center-div-menu-flex {
|
z-index: 3;
|
||||||
display: flex; /* Active l'affichage en ligne */
|
width: min(1050px, calc(100vw - 40px));
|
||||||
justify-content: center; /* Centre les items horizontalement */
|
min-height: 80px;
|
||||||
align-items: center; /* Centre verticalement */
|
height: auto;
|
||||||
gap: 10px; /* Espace entre les divs (modifiable) */
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-div-menu .menu-item {
|
.center-div-menu-flex {
|
||||||
min-height: 40px; /* hauteur de chaque div */
|
display: flex; /* Active l'affichage en ligne */
|
||||||
/* background: #ccc; /* juste pour visualiser, tu peux retirer */
|
justify-content: center; /* Centre les items horizontalement */
|
||||||
/* border-radius: 5px; */
|
align-items: center; /* Centre verticalement */
|
||||||
padding: 5px;
|
gap: 10px; /* Espace entre les divs (modifiable) */
|
||||||
}
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
.center-div-menu .menu-item:hover {
|
|
||||||
min-height: 40px; /* hauteur de chaque div */
|
.center-div-menu .menu-item {
|
||||||
/* background: #ccc; /* juste pour visualiser, tu peux retirer */
|
min-height: 40px; /* hauteur de chaque div */
|
||||||
/* border-radius: 5px; */
|
/* background: #ccc; /* juste pour visualiser, tu peux retirer */
|
||||||
border-bottom: 4px solid #a29b78;
|
/* border-radius: 5px; */
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-div-menu .menu-item:hover a {
|
.center-div-menu .menu-item:hover {
|
||||||
color: #a29b78 !important;
|
min-height: 40px; /* hauteur de chaque div */
|
||||||
}
|
/* background: #ccc; /* juste pour visualiser, tu peux retirer */
|
||||||
|
/* border-radius: 5px; */
|
||||||
.menu-item-we {
|
border-bottom: 4px solid #a29b78;
|
||||||
min-width: 20px; /* largeur de chaque div (modifiable) */
|
padding: 5px;
|
||||||
min-height: 40px; /* hauteur de chaque div */
|
}
|
||||||
padding: 5px;
|
|
||||||
}
|
.center-div-menu .menu-item:hover a {
|
||||||
|
color: #a29b78 !important;
|
||||||
.center-page-bops {
|
}
|
||||||
background-image: url("../img/logo-org.png");
|
|
||||||
z-index: 2;
|
.menu-item-we {
|
||||||
animation: spin-horizontal 5s linear infinite;
|
min-width: 20px; /* largeur de chaque div (modifiable) */
|
||||||
}
|
min-height: 40px; /* hauteur de chaque div */
|
||||||
|
padding: 5px;
|
||||||
/* Animation de rotation horizontale infinie */
|
}
|
||||||
@keyframes spin-horizontal {
|
|
||||||
0% { transform: translate(-50%, -50%) rotateY(0deg); }
|
.center-page-bops {
|
||||||
50% { transform: translate(-50%, -50%) rotateY(0deg); }
|
background-image: url("../img/logo-org.png");
|
||||||
100% { transform: translate(-50%, -50%) rotateY(360deg); }
|
z-index: 2;
|
||||||
}
|
animation: spin-horizontal 5s linear infinite;
|
||||||
|
}
|
||||||
/* Contrôles audio en haut à droite */
|
|
||||||
.audio-controls {
|
/* Animation de rotation horizontale infinie */
|
||||||
position: fixed;
|
@keyframes spin-horizontal {
|
||||||
top: 15px;
|
0% { transform: translate(-50%, -50%) rotateY(0deg); }
|
||||||
right: 15px;
|
50% { transform: translate(-50%, -50%) rotateY(0deg); }
|
||||||
display: flex;
|
100% { transform: translate(-50%, -50%) rotateY(360deg); }
|
||||||
align-items: center;
|
}
|
||||||
gap: 8px;
|
|
||||||
z-index: 10;
|
/* Contrôles audio en haut à droite */
|
||||||
background: rgba(0, 0, 0, 0.6);
|
.audio-controls {
|
||||||
padding: 6px 10px;
|
position: fixed;
|
||||||
border-radius: 8px;
|
top: 15px;
|
||||||
backdrop-filter: blur(2px);
|
right: 15px;
|
||||||
}
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
.audio-controls button {
|
gap: 8px;
|
||||||
background: none;
|
z-index: 10;
|
||||||
border: none;
|
background: rgba(0, 0, 0, 0.6);
|
||||||
font-size: 20px;
|
padding: 6px 10px;
|
||||||
cursor: pointer;
|
border-radius: 8px;
|
||||||
color: white;
|
backdrop-filter: blur(2px);
|
||||||
line-height: 1;
|
}
|
||||||
}
|
|
||||||
|
.audio-controls button {
|
||||||
.audio-controls input[type="range"] {
|
background: none;
|
||||||
width: 120px;
|
border: none;
|
||||||
cursor: pointer;
|
font-size: 20px;
|
||||||
accent-color: #fcba03; /* facultatif si supporté */
|
cursor: pointer;
|
||||||
}
|
color: white;
|
||||||
|
line-height: 1;
|
||||||
.vol-label {
|
}
|
||||||
font-size: 12px;
|
|
||||||
color: #fff;
|
.audio-controls input[type="range"] {
|
||||||
opacity: 0.85;
|
width: 120px;
|
||||||
}
|
cursor: pointer;
|
||||||
|
accent-color: #fcba03; /* facultatif si supporté */
|
||||||
/* facultatif si supporté */
|
}
|
||||||
.connexion-champ {
|
|
||||||
height: 30px;
|
.vol-label {
|
||||||
background-color: rgb(0 0 0 / 50%);
|
font-size: 12px;
|
||||||
border: solid 0px rgb(155 145 60 / 100%);
|
color: #fff;
|
||||||
border-radius: 5px;
|
opacity: 0.85;
|
||||||
color: rgb(255 255 255 / 100%);
|
}
|
||||||
}
|
|
||||||
|
/* facultatif si supporté */
|
||||||
.connexion-bouton {
|
.connexion-champ {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
background-color: rgb(0 0 0 / 50%);
|
background-color: rgb(0 0 0 / 50%);
|
||||||
border-top: solid 0px rgb(155 145 60 / 100%);
|
border: solid 0px rgb(155 145 60 / 100%);
|
||||||
border-left: solid 3px rgb(155 145 60 / 100%);
|
border-radius: 5px;
|
||||||
border-right: solid 3px rgb(155 145 60 / 100%);
|
color: rgb(255 255 255 / 100%);
|
||||||
border-bottom: solid 0px rgb(155 145 60 / 100%);
|
}
|
||||||
border-radius: 5px;
|
|
||||||
color: rgb(255 255 255 / 100%);
|
.connexion-bouton {
|
||||||
padding: 0px 10px 0px 10px;
|
height: 30px;
|
||||||
}
|
background-color: rgb(0 0 0 / 50%);
|
||||||
|
border-top: solid 0px rgb(155 145 60 / 100%);
|
||||||
.connexion-bouton:hover {
|
border-left: solid 3px rgb(155 145 60 / 100%);
|
||||||
background-color: rgb(0 0 0 / 20%);
|
border-right: solid 3px rgb(155 145 60 / 100%);
|
||||||
cursor: pointer;
|
border-bottom: solid 0px rgb(155 145 60 / 100%);
|
||||||
|
border-radius: 5px;
|
||||||
|
color: rgb(255 255 255 / 100%);
|
||||||
|
padding: 0px 10px 0px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.connexion-bouton:hover {
|
||||||
|
background-color: rgb(0 0 0 / 20%);
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
/* Auth / admin helpers */
|
/* Auth / admin helpers */
|
||||||
.connexion-div-menu {
|
.connexion-div-menu {
|
||||||
@ -356,3 +364,115 @@ a:hover {
|
|||||||
.login-status.is-success {
|
.login-status.is-success {
|
||||||
color: #9fe29f;
|
color: #9fe29f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.assets-div-menu a,
|
||||||
|
.connexion-div-menu a,
|
||||||
|
.connexion-div-menu #accountLabel {
|
||||||
|
max-width: 100%;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.center-page-bops {
|
||||||
|
width: min(48vw, 480px);
|
||||||
|
height: min(48vw, 480px);
|
||||||
|
top: 32%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-div-menu {
|
||||||
|
width: min(900px, calc(100vw - 48px));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.assets-div-menu,
|
||||||
|
.connexion-div-menu {
|
||||||
|
width: auto;
|
||||||
|
max-width: none;
|
||||||
|
left: 16px;
|
||||||
|
right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assets-div-menu {
|
||||||
|
top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.connexion-div-menu {
|
||||||
|
top: auto;
|
||||||
|
bottom: 16px;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 44px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-page-bops {
|
||||||
|
width: min(62vw, 340px);
|
||||||
|
height: min(62vw, 340px);
|
||||||
|
top: 28%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-div-menu {
|
||||||
|
width: calc(100vw - 32px);
|
||||||
|
top: 56%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-div-menu .padding50 {
|
||||||
|
padding: 24px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.assets-div-menu {
|
||||||
|
gap: 6px;
|
||||||
|
padding: 10px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.connexion-div-menu {
|
||||||
|
gap: 8px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.connexion-actions {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-page-bops {
|
||||||
|
top: 170px;
|
||||||
|
width: min(68vw, 280px);
|
||||||
|
height: min(68vw, 280px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-div-menu {
|
||||||
|
position: relative;
|
||||||
|
top: auto;
|
||||||
|
left: auto;
|
||||||
|
transform: none;
|
||||||
|
margin: 230px auto 100px;
|
||||||
|
width: calc(100vw - 24px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-div-menu .padding50 {
|
||||||
|
padding: 18px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.txt-s40 {
|
||||||
|
font-size: clamp(28px, 7vw, 40px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.txt-s22 {
|
||||||
|
font-size: clamp(18px, 4.6vw, 22px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.assets-div-menu,
|
||||||
|
.connexion-div-menu {
|
||||||
|
left: 12px;
|
||||||
|
right: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-div-menu {
|
||||||
|
width: calc(100vw - 16px);
|
||||||
|
margin-top: 210px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
47
db/auth.php
47
db/auth.php
@ -2,6 +2,30 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/config.php';
|
require_once __DIR__ . '/config.php';
|
||||||
|
|
||||||
|
function auth_config_value(array $environment_keys, array $constant_keys = []): ?string
|
||||||
|
{
|
||||||
|
foreach ($environment_keys as $environment_key) {
|
||||||
|
$value = getenv($environment_key);
|
||||||
|
if ($value !== false) {
|
||||||
|
$value = trim((string) $value);
|
||||||
|
if ($value !== '') {
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($constant_keys as $constant_key) {
|
||||||
|
if (defined($constant_key)) {
|
||||||
|
$value = trim((string) constant($constant_key));
|
||||||
|
if ($value !== '') {
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
function auth_start_session(): void
|
function auth_start_session(): void
|
||||||
{
|
{
|
||||||
if (session_status() !== PHP_SESSION_ACTIVE) {
|
if (session_status() !== PHP_SESSION_ACTIVE) {
|
||||||
@ -33,6 +57,13 @@ function auth_bootstrap(): void
|
|||||||
|
|
||||||
if ($cl_auth_admin_total === 0) {
|
if ($cl_auth_admin_total === 0) {
|
||||||
[$cl_auth_user, $plain_default_password] = auth_default_admin_credentials();
|
[$cl_auth_user, $plain_default_password] = auth_default_admin_credentials();
|
||||||
|
|
||||||
|
if ($cl_auth_user === '' || $plain_default_password === '') {
|
||||||
|
throw new RuntimeException(
|
||||||
|
"Aucun administrateur n'existe et aucun couple DEFAULT_ADMIN_USER / DEFAULT_ADMIN_PASSWORD n'est configuré."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$cl_auth_pass = password_hash($plain_default_password, PASSWORD_DEFAULT);
|
$cl_auth_pass = password_hash($plain_default_password, PASSWORD_DEFAULT);
|
||||||
$cl_auth_right = 'admin';
|
$cl_auth_right = 'admin';
|
||||||
|
|
||||||
@ -51,7 +82,21 @@ function auth_bootstrap(): void
|
|||||||
|
|
||||||
function auth_default_admin_credentials(): array
|
function auth_default_admin_credentials(): array
|
||||||
{
|
{
|
||||||
return ['admin', 'ReactAdmin!2026'];
|
$cl_auth_user = auth_config_value(
|
||||||
|
['DEFAULT_ADMIN_USER', 'APP_DEFAULT_ADMIN_USER'],
|
||||||
|
['DEFAULT_ADMIN_USER', 'APP_DEFAULT_ADMIN_USER']
|
||||||
|
) ?? 'admin';
|
||||||
|
|
||||||
|
$plain_default_password = auth_config_value(
|
||||||
|
['DEFAULT_ADMIN_PASSWORD', 'APP_DEFAULT_ADMIN_PASSWORD'],
|
||||||
|
['DEFAULT_ADMIN_PASSWORD', 'APP_DEFAULT_ADMIN_PASSWORD']
|
||||||
|
);
|
||||||
|
|
||||||
|
if ($plain_default_password === null) {
|
||||||
|
return ['', ''];
|
||||||
|
}
|
||||||
|
|
||||||
|
return [$cl_auth_user, $plain_default_password];
|
||||||
}
|
}
|
||||||
|
|
||||||
function auth_csrf_token(): string
|
function auth_csrf_token(): string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user