159 lines
2.7 KiB
CSS
159 lines
2.7 KiB
CSS
/* Style général du corps */
|
|
body {
|
|
margin: 0;
|
|
font-family: Arial, sans-serif;
|
|
background-color: white;
|
|
color: black;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Conteneur principal */
|
|
.cv-container {
|
|
display: flex;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
flex-wrap: wrap; /* Permet aux éléments de se replier sur plusieurs lignes */
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
background-color: #163853;
|
|
color: white;
|
|
width: 20%;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
height: auto;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.sidebar img {
|
|
border-radius: 50%;
|
|
width: 150px;
|
|
height: 150px;
|
|
object-fit: cover;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.sidebar h2 {
|
|
margin: 10px 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.sidebar a {
|
|
color: white;
|
|
text-decoration: none;
|
|
margin: 5px 0;
|
|
display: block;
|
|
}
|
|
|
|
.sidebar a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.sidebar ul {
|
|
list-style-type: disc;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
/* Contenu principal */
|
|
.main-content {
|
|
width: 80%;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
margin-left: 20%;
|
|
}
|
|
|
|
.section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.section h3 {
|
|
border-bottom: 2px solid #163853;
|
|
padding-bottom: 5px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.section p, .section ul {
|
|
margin: 5px 0;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
/* Sidebar */
|
|
.sidebar {
|
|
position: relative;
|
|
width: 100%;
|
|
height: auto;
|
|
margin: 0;
|
|
padding: 10px;
|
|
}
|
|
|
|
.sidebar img {
|
|
width: 100px;
|
|
height: 100px;
|
|
margin: 0 auto 10px;
|
|
}
|
|
|
|
.sidebar h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* Contenu principal */
|
|
.main-content {
|
|
width: 100%;
|
|
margin-left: 0;
|
|
}
|
|
|
|
/* Ajustement des sections */
|
|
.section {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Compétences */
|
|
.skills-container {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.skills-list {
|
|
width: 100%;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
/* Text alignement */
|
|
.title-container, .description {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
/* Pour les très petits écrans (comme les téléphones) */
|
|
@media (max-width: 480px) {
|
|
/* Réduire la taille des éléments pour mieux s'adapter */
|
|
.sidebar img {
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
|
|
.sidebar h2 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.sidebar a {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.section h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.section p, .section ul {
|
|
font-size: 14px;
|
|
}
|
|
}
|