Files
2025-06-14 19:08:52 +02:00

240 lines
4.4 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Josefin Sans", sans-serif;
}
body {
background-image: url("../img/cielprince.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: white;
}
.titre-page {
text-align: center;
margin-left: 242px;
background-color: rgb(122, 97, 179);
padding: 30px;
}
.titre-page h1 {
font-size: 2.2rem;
margin-bottom: 8px;
color: white;
}
.titre-page p {
font-size: 1.1rem;
opacity: 0.9;
}
/* MESSAGES */
.message {
padding: 15px;
margin: 15px auto 20px 270px;
max-width: 800px;
border-radius: 10px;
text-align: center;
font-weight: bold;
}
.message.success {
background: rgba(76, 175, 80, 0.2);
color: #4caf50;
border: 1px solid rgba(76, 175, 80, 0.4);
}
.message.error {
background: rgba(244, 67, 54, 0.2);
color: #f44336;
border: 1px solid rgba(244, 67, 54, 0.4);
}
.bouton-deco {
position: absolute;
top: 35px;
right: 20px;
}
.bouton-deco a {
text-decoration: none;
padding: 10px 20px;
background-color: #d94c4c;
color: white;
border-radius: 8px;
transition: 0.2s;
}
.bouton-deco a:hover {
background-color: #b73838;
}
/* CONTENU PRINCIPAL */
.main {
margin-left: 270px;
padding: 20px;
max-width: 1200px;
}
.creator {
display: grid;
grid-template-columns: 1fr 1fr; /*pour avoir 2 colones egale*/
gap: 25px;
}
/* BOX DE BASE */
.box-creation, .box-liste {
background-color: rgba(17, 17, 17, 0.8);
padding: 25px;
border-radius: 15px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.box-creation h3, .box-liste h3 {
color: rgb(122, 97, 179);
font-size: 1.4rem;
margin-bottom: 20px;
border-bottom: 2px solid rgba(122, 97, 179, 0.3);
padding-bottom: 8px;
}
/* FORMULAIRE */
.champ {
margin-bottom: 18px;
}
.champ label {
display: block;
margin-bottom: 6px;
color: rgb(122, 97, 179);
font-weight: 600;
font-size: 14px;
}
.champ input, .champ textarea {
width: 100%;
padding: 12px 15px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
color: white;
font-size: 14px;
transition: 0.3s;
}
.champ input:focus, .champ textarea:focus {
outline: none;
border-color: rgb(122, 97, 179);
background: rgba(255, 255, 255, 0.15);
}
.champ textarea {
resize: vertical;
min-height: 80px;
}
/* BOUTON CRÉER */
.bouton-creer {
width: 100%;
background: linear-gradient(135deg, rgb(122, 97, 179), #8b5fbf);
color: white;
padding: 14px;
border: none;
border-radius: 20px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
margin-top: 15px;
transition: 0.3s;
}
.bouton-creer:hover {
transform: translateY(-2px);
}
/* LISTE DES ÉVÉNEMENTS */
.event-recent {
max-height: 450px;
padding-right: 8px;
}
.mini-event {
background: rgba(255, 255, 255, 0.05);
padding: 15px;
margin-bottom: 12px;
border-radius: 10px;
border-left: 4px solid rgb(122, 97, 179);
transition: 0.3s;
}
.mini-event:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateX(5px);
}
.mini-event h4 {
color: white;
margin: 0 0 8px 0;
font-size: 1.1rem;
}
.lieu {
color: rgb(122, 97, 179);
font-weight: bold;
margin-bottom: 6px;
font-size: 0.9rem;
}
.desc {
color: rgba(255, 255, 255, 0.7);
font-size: 0.85rem;
line-height: 1.4;
margin: 0;
}
.aucun-event {
text-align: center;
color: rgba(255, 255, 255, 0.6);
font-style: italic;
padding: 30px;
}
/* RESPONSIVE */
@media (max-width: 1000px) {
.creator {
gap: 20px;
}
.main {
margin-left: 20px;
margin-right: 20px;
}
.titre-page {
margin-left: 20px;
margin-right: 20px;
}
.message {
margin-left: 20px;
margin-right: 20px;
}
}