/* ------------- */
/* HTML */
/* ------------- */
html,
body {
font-family: "Inter", sans-serif;
background-color: #1e1e1e;
color: #eff1f3;
margin: 0;
padding: 0;
overflow: auto;
height: 100%; /* Définit la hauteur de la page à 100% */
display: flex; /* Flexbox sur le body */
flex-direction: column; /* Aligne le contenu du body en colonne */
}
/* --------------- */
/* Header */
/* --------------- */
header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 10px 40px;
}
header a {
text-decoration: none;
color: #eff1f3;
}
header ul {
list-style: none;
display: flex;
align-items: center;
}
header li {
cursor: pointer;
}
.header_text {
display: flex;
flex-grow: 1; /* Le conteneur des liens prend toute la place disponible */
justify-content: center; /* Centre les liens horizontalement */
gap: 15%; /* Espace entre les liens */
font-weight: 600;
}
.header_text a {
padding: 0 10px;
}
.header_text li a:hover {
color: #00a8e8;
}
.bouton_connexion {
padding: 10px 20px;
border-radius: 900px;
font-size: 16px; /* Taille de la police */
border-color: #00a8e8;
color: #eff1f3;
background-color: #00a8e8;
margin-top: 0;
cursor: pointer;
}
.bouton_connexion:hover {
border-color: #eff1f3;
color: #00a8e8;
background-color: #eff1f3; /* Changer la couleur au survol */
}
#smart_building {
width: 13%;
margin-left: -40px;
height: auto;
}
/* ---------------- */
/* Membres */
/* ---------------- */
main {
display: flex;
flex-grow: 1; /* Permet à la section principale d'occuper l'espace restant */
justify-content: center; /* Centre verticalement le contenu */
align-items: center; /* Centre horizontalement le contenu */
padding-bottom: 50px;
gap: 30px; /* Espace entre les 2 sections */
}
.left-panel {
flex: 3; /* 30% de la largeur totale */
display: flex;
justify-content: center; /* Centrer l'image horizontalement */
align-items: center; /* Centrer l'image verticalement */
}
.left-panel img {
width: 100%; /* L'image prend toute la largeur de son conteneur */
max-width: 450px; /* Maximum de 300px de largeur */
height: auto; /* La hauteur de l'image s'ajuste automatiquement */
border-radius: 32px;
}
.right-panel {
flex: 7; /* 70% de la largeur totale */
}
.right-panel h1 {
font-size: 60px;
margin-bottom: 60px;
padding-left: 50px; /* Ajoute un espacement à gauche du titre */
}
#membres-container {
display: grid;
grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
gap: 30px;
justify-items: center;
padding: 20px 60px;
}
.membre {
width: 100%; /* occupe toute la colonne */
max-width: 400px; /* limite visuelle de largeur */
padding: 20px;
background-color: #2c2c2c;
color: #eff1f3;
border-radius: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
transition: transform 0.2s ease, background-color 0.3s ease;
text-align: center;
}
.membre:hover {
background-color: #dfe3e6;
transform: translateY(-5px);
color: #2c2c2c;
cursor: pointer;
}
.membre h3 {
font-size: 22px;
margin: 10px 0 5px;
}
.membre h4 {
font-size: 18px;
margin: 5px 0;
font-weight: 500;
}
.membre p {
margin: 6px 0;
font-size: 16px;
}
/* --------------- */
/* Footer */
/* --------------- */
footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
font-size: 14px;
text-transform: uppercase;
padding: 20px;
margin-top: auto; /* Cela force le footer à se pousser vers le bas */
}
.copyright {
padding: 10px 20px;
}
footer a {
text-decoration: none;
color: #eff1f3;
}
.footer_link {
display: flex;
flex-grow: 1;
gap: 10%;
}
.footer_link a {
padding: 0 10px;
}
.copyright {
padding: 10px 20px;
}
/* -------------------- */
/* Barre Recherche */
/* -------------------- */
.form {
width: 300px;
margin: 0 50px;
font-size: 0.9rem;
display: flex;
gap: 0.5rem;
align-items: center;
position: relative;
isolation: isolate;
--input-text-color: #363636;
--input-bg-color: #eff1f3;
--focus-input-bg-color: transparent;
--text-color: #2a2a2a;
--active-color: #eff1f3;
--width-of-input: 250px;
--inline-padding-of-input: 1.2em;
--gap: 0.9rem;
}
.fancy-bg {
position: absolute;
width: 100%;
inset: 0;
background: var(--input-bg-color);
border-radius: 30px;
height: 100%;
z-index: -1;
pointer-events: none;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
label {
padding: 0.2em;
height: 40px;
padding-inline: var(--inline-padding-of-input);
display: flex;
align-items: center;
}
.search,
.close-btn {
position: absolute;
}
.search {
fill: var(--text-color);
left: var(--inline-padding-of-input);
}
svg {
width: 17px;
display: block;
}
.input {
color: var(--input-text-color);
width: 100%;
background: none;
border: none;
font-size: 1rem;
margin-inline: min(2em, calc(var(--inline-padding-of-input) + var(--gap)));
}
.input:focus {
outline: none;
color: #eff1f3;
}
.input:focus ~ .fancy-bg {
border: 1px solid var(--active-color);
background: var(--focus-input-bg-color);
}
.input:focus ~ .search {
fill: var(--active-color);
}
.input:valid ~ .close-btn {
visibility: visible;
color: #eff1f3;
}
.close-btn {
right: var(--inline-padding-of-input);
background: none;
border: none;
box-shadow: none;
width: auto;
height: auto;
padding: 0;
opacity: 1;
color: #eff1f3;
visibility: hidden;
font-size: 20px;
cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
background: none;
font-weight: bold;
transform: scale(1.2);
}
.input:not(:focus):not(:placeholder-shown) {
color: #2a2a2a;
}
.input:not(:focus):not(:placeholder-shown) ~ .search {
fill: #2a2a2a;
}
.input:not(:focus):not(:placeholder-shown) ~ .close-btn {
color: #2a2a2a;
}
.header-membres {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 70px;
margin-bottom: 60px;
flex-wrap: wrap;
}
.header-membres h1 {
font-size: 60px;
margin: 0;
color: #eff1f3;
}
/* ----------------------------- */
/* Responsive Design */
/* ----------------------------- */
/* GRAND ÉCRAN (> 1440px) */
@media (min-width: 1440px) {
.right-panel h1,
.header-membres h1 {
font-size: 72px;
}
.left-panel img {
max-width: 500px;
}
}
/* TABLETTE LARGE (1025px à 1440px) */
@media (max-width: 1440px) and (min-width: 1025px) {
.right-panel h1,
.header-membres h1 {
font-size: 56px;
padding-left: 80px;
}
.header-membres {
padding: 0 50px;
}
#membres-container {
padding: 20px 40px;
}
.left-panel img {
max-width: 400px;
}
}
/* TABLETTE MOYENNE (769px à 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
header {
flex-wrap: wrap;
justify-content: center;
padding: 20px;
gap: 20px;
}
#smart_building {
width: 100px;
margin: 0;
}
.header_text {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
}
.bouton_connexion {
padding: 8px 16px;
font-size: 14px;
}
main {
flex-direction: column;
padding: 40px;
}
.right-panel,
.left-panel {
width: 100%;
flex: none;
}
.features {
grid-template-columns: repeat(2, 1fr);
}
.right-panel h1,
.header-membres h1 {
font-size: 42px;
padding-left: 0;
text-align: center;
}
.header-membres {
padding: 0 30px;
justify-content: center;
gap: 30px;
}
.form {
margin: 0 auto;
}
#membres-container {
grid-template-columns: repeat(2, 1fr);
padding: 20px;
}
}
/* MOBILE (≤ 768px) */
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: center;
gap: 15px;
}
#smart_building {
width: 90px;
height: auto;
margin: 0 auto;
}
.header_text {
flex-direction: column;
align-items: center;
gap: 10px;
font-size: 16px;
}
.bouton_connexion {
padding: 10px 20px;
width: auto;
text-align: center;
}
main {
flex-direction: column;
padding: 20px;
}
.left-panel,
.right-panel {
width: 100%;
flex: unset;
}
.right-panel h1,
.header-membres h1 {
font-size: 36px;
padding-left: 0;
text-align: center;
margin-bottom: 30px;
}
.header-membres {
flex-direction: column;
align-items: center;
gap: 20px;
padding: 0 20px;
}
.form {
width: 100%;
max-width: 300px;
}
#membres-container {
grid-template-columns: 1fr;
padding: 10px;
}
.membre {
max-width: 100%;
}
footer {
flex-direction: column;
text-align: center;
gap: 10px;
align-items: center;
}
.footer_link {
flex-direction: column;
gap: 10px;
}
.copyright {
padding: 0;
}
}
/* MOBILE TRÈS PETIT (≤ 480px) */
@media (max-width: 480px) {
.right-panel h1,
.header-membres h1 {
font-size: 28px;
margin-bottom: 20px;
}
.form {
width: 90%;
max-width: 280px;
}
.input {
font-size: 0.9rem;
}
.close-btn {
font-size: 16px;
}
#membres-container {
gap: 20px;
}
.membre {
padding: 16px;
font-size: 14px;
}
.membre h3 {
font-size: 20px;
}
.membre h4 {
font-size: 16px;
}
.membre p {
font-size: 14px;
}
}
/* ------------------------ */
/* Transitions Générales */
/* ------------------------ */
* {
transition: all 0.3s ease-in-out;
}