Style.css

/********************************************/
/*           Variables et Reset CSS         */
/********************************************/

/* Variables CSS pour personnaliser facilement vos couleurs et styles */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFFFFF;
  --bg-color: #F5F5F5;
  --text-color: #333333;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --max-width: 1000px;
  --border-radius: 5px;
  --heading-font: 'Roboto', sans-serif;
  --body-font: 'Roboto', sans-serif;
}

/* Réinitialisation des marges et paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/********************************************/
/*                Styles de base            */
/********************************************/

body {
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/********************************************/
/*                  HEADER                  */
/********************************************/

header {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 20px 0;
}

header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* Conteneur pour l'image de profil */
.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden; /* Pour rognier l'image si elle dépasse */
  border: 4px solid var(--secondary-color);
  flex-shrink: 0;  /* Empêche le conteneur de rapetisser */
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* L'image remplit tout le cadre */
  display: block;
}

/* Informations du profil */
.profile-info {
  margin-left: 20px;
}

.profile-info h1 {
  font-size: 2.5em;
  font-family: var(--heading-font);
  margin-bottom: 10px;
}

.profile-info h2 {
  font-size: 1.5em;
  font-weight: 400;
  margin-bottom: 10px;
}

/********************************************/
/*                NAVIGATION                */
/********************************************/

nav {
  background-color: var(--secondary-color);
  box-shadow: var(--box-shadow);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  transition: color var(--transition-speed);
}

nav ul li a:hover {
  color: var(--primary-color);
}

/********************************************/
/*              CONTENU PRINCIPAL           */
/********************************************/

main {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 0 20px;
}

/********************************************/
/*                SECTIONS CV               */
/********************************************/

section {
  background-color: var(--secondary-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

section:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

section h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.6em;
}

/* Expériences et formations */
.experience-item,
.education-item {
  margin-bottom: 15px;
}

.experience-item h4,
.education-item h4 {
  margin-bottom: 5px;
  font-size: 1.2em;
  color: var(--primary-color);
}

.experience-item span,
.education-item span {
  font-size: 0.9em;
  color: #666;
}

/********************************************/
/*                  FOOTER                  */
/********************************************/

footer {
  text-align: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/********************************************/
/*         MEDIA QUERIES (Responsive)       */
/********************************************/

/* Sur des écrans de taille inférieure à 768px */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }

  .profile-info {
    margin-left: 0;
    margin-top: 15px;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }
}
