/* =============================================================
   Fichier : style.css
   Auteur : Helena Le Goff
   Objectif : Mise en forme harmonieuse et responsive du portfolio QA
   ============================================================= */

/* ========== 🔁 RESET DE BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== 📦 STRUCTURE GÉNÉRALE ========== */
.container {
  max-width: 900px;
  width: 100%;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

.banniere {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* ========== 🧭 NAVIGATION ========== */
nav {
  margin: 20px 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #ff7f2a;
  transition: 0.3s;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  background-color: #ff7f2a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #e76600;
}

/* ===== 📂 SOUS-MENU (desktop) ===== */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 10px 0;
  z-index: 1000;
  text-align: center;
  list-style: none;
}

.sub-menu li {
  padding: 5px 0;
}

.sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

.sub-menu li a:hover {
  background-color: #f2f2f2;
}

.nav-item:hover .sub-menu {
  display: block;
}

/* ========== 🦶 FOOTER ========== */
footer {
  text-align: center;
  margin-top: 30px;
  background-color: #f4f4f4;
  width: 100%;
  padding: 10px 0;
}

/* ========== 📱 RESPONSIVE DESIGN ========== */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-self: flex-end;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    padding: 20px;
    margin-top: 10px;
    width: 100%;
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    background-color: #ff7f2a;
    color: #fff;
    width: 100%;
    text-align: center;
  }

  .sub-menu {
    position: static;
    display: none;
    background-color: #fff;
    box-shadow: none;
    border: none;
  }

  .nav-item:hover .sub-menu {
    display: block;
  }

  h1 {
    font-size: 1.5em;
  }
}

/* ========== 🔔 BLOC D'ANNONCE ========== */
.announcement {
  background-color: #fff8f2;
  border-left: 6px solid #ff7f2a;
  padding: 20px;
  margin: 30px 0;
  font-size: 1.1em;
  color: #333;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  word-wrap: break-word;
  transition: all 0.3s ease-in-out;
}

.announcement p {
  margin: 0;
  padding: 10px 0;
  line-height: 1.6;
  word-break: break-word;
}

.announcement span {
  color: #ff7f2a;
  font-weight: bold;
}

.announcement:hover {
  background-color: #fff3e9;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.install-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}
.install-button:hover {
  background-color: #cc5200;
}

