/* ========== RESET GÉNÉRAL ========== */
* {
  margin: 0;                           /* Supprime les marges par défaut */
  padding: 0;                          /* Supprime les espacements internes par défaut */
  box-sizing: border-box;             /* Inclut padding et border dans les dimensions */
}

html, body {
  height: 100%;                       /* Corps et html prennent toute la hauteur */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;                  /* Hauteur minimale du corps = hauteur de la fenêtre */
  font-family: Arial, sans-serif;
  line-height: 1.5;                   /* Hauteur de ligne pour la lisibilité */
  background: linear-gradient(to right, #f5f5f5, #ebebeb); /* Dégradé doux en fond */
  color: #222;                        /* Couleur du texte principale */
}

/* ========== STRUCTURE GÉNÉRALE ========== */
main, .intro, .formation-grid, .contact-container {
  max-width: 1200px;                  /* Largeur max du contenu */
  margin: 0 auto;                     /* Centre le contenu horizontalement */
  width: 100%;
}

/* ========== HEADER ========== */
header {
  background: #0a0909;                /* Fond sombre */
  color: white;                       /* Texte blanc */
  padding: 1.5rem;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  list-style: none;                   /* Supprime les puces */
  display: flex;
  gap: 2.5rem;
  font-size: 1.5rem;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.menu li a.active {
  color: #f16529;
  font-weight: bold;
  border-bottom: 2px solid #f16529;
}

.menu li a:hover {
  color: #f16529;
}

.menu li a:focus {
  outline: 2px dashed #f16529;
  outline-offset: 4px;
  background-color: rgba(241, 101, 41, 0.1);
}

.burger {
  display: none;                      /* Cacher sur écran large */
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== INTRODUCTION ========== */
.intro {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  text-align: left;
  padding: 2rem;
}

.profil-pic {
  width: 200px;
  height: 300px;
  border-radius: 10%;                 /* Coins arrondis */
  object-fit: cover;
  border: 4px solid black;
}

.intro-text h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.intro-text p {
  font-size: 1.1rem;
  color: #333;
}

/* ========== CONTENU PRINCIPAL ========== */
main {
  flex: 1;
  padding: 2rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
}

/* ========== GRILLE DE FORMATION ========== */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: left;
}

.card:hover {
  transform: translateY(-5px);        /* Légère élévation au survol */
}

.card h2 {
  font-size: 1.3rem;
  color: #f16529;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 1rem;
  color: #333;
}

.year {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f16529;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== COMPÉTENCES ========== */
.skill {
  display: flex;
  align-items: center;
  margin: 0.6rem 0;
  gap: 0.8rem;
}

.skill-logo {
  width: 30px;
  height: auto;
}

.skill-bar {
  flex: 1;
  background-color: #e0e0e0;
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

/* ========== PIED DE PAGE ========== */
.footer {
  background-color: #000;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

.social-links {
  display: flex;
  gap: 12px;
}

.logo-social {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.logo-social:hover {
  transform: scale(1.2);
}

/* ========== FORMULAIRE DE CONTACT ========== */
.contact-container {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  font-weight: bold;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  resize: vertical;
}

.contact-form button {
  background-color: #f16529;
  color: white;
  padding: 0.9rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #d94e13;
}

.emoji_lettre {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 2rem;
  color: #f16529;
  margin-right: 0.5rem;
  display: inline-block;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #444;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 1rem;
  }

  .menu.show {
    display: flex;
  }

  .burger {
    display: block;
  }

  .formation-grid {
    grid-template-columns: 1fr;
  }

  .card {
    text-align: center;
  }

  .skill {
    justify-content: center;
  }

  .skill-bar {
    width: 100%;
  }

  .intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ========== GRAND ÉCRAN ========== */
@media (min-width: 1600px) {
  body {
    font-size: 18px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .intro-text h1 {
    font-size: 2.2rem;
  }

  .intro-text p {
    font-size: 1.3rem;
  }
}
