/* Style commun */
header {
  width: 100%;
  max-width: 2000px;
  height: 136px;
  background-color: #E0B0B0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  flex-wrap: wrap;
  position: relative;
}

.logo-titre {
  display: flex;
  align-items: center;
  gap: 16px;
}

header img {
  width: 80px;
  height: 80px;
}

.titre-site {
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  color: #000;
}

/* Burger visible tout le temps */
.burger {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

/* Menu caché par défaut */
/* Menu déroulant mobile */
#menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px; /* Ajuste selon la hauteur de ton header */
  right: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 150px;
  padding: 10px;
}

#menu.show {
  display: flex;
}

#menu li {
  list-style: none;
  margin: 8px 0;
}

#menu a {
  color: black;
  text-decoration: none;
  font-weight: 500;
}

/* Masquer le bouton burger sur grand écran */
.burger {
  display: none;
}

/* Adaptation mobile */
@media (max-width: 768px) {
  .burger {
    display: block;
    font-size: 1.8em;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
  }

  #menu {
    position: absolute;
    right: 10px;
    top: 60px;
  }

  header ul {
    flex-direction: column;
    align-items: flex-start;
  }
}



body 

/* Mise en page globale */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.page-main {
  max-width: 100vw;
  padding: 2vw;
  box-sizing: border-box;
}

/* Cartes d’outils */
.ligne {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2vw;
  margin-bottom: 4vw;
}

.carte {
  width: 27.8vw; /* ≈ 400px sur 1440 */
  max-width: 400px;
  text-align: center;
}

.carte img {
  width: 100%;
  height: auto;
}

.carte p {
  font-size: clamp(1.2rem, 2.2vw, 2rem); /* ≈ 32px */
  font-weight: 500;
}

/* Ligne de séparation */
.separator {
  border: none;
  height: 0.4vw; /* ≈ 6px */
  background-color: #000;
  margin: 3vw 0;
}

/* Bloc Objectifs */
.objectifs h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.5rem); /* ≈ 32px */
  font-weight: 700;
}

.description {
  width: 73.8vw; /* 1063 / 1440 */
  max-width: 1063px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.2vw, 2rem); /* ≈ 32px */
  font-weight: 500;
  line-height: 1.5;
  text-align: justify;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4BB543; /* vert succès par défaut */
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  animation: fadeInOut 4s ease forwards;
  opacity: 0;
}

.toast.error {
  background-color: #D9534F; /* rouge erreur */
}

.toast.show {
  opacity: 1;
}

@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateY(20px); }
  10%  { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}


.img-objectifs {
  display: block;
  width: 82.2vw; /* 1183 / 1440 */
  max-width: 1183px;
  margin: 2vw auto;
  height: auto;
}

.encouragement {
  width: 73.8vw; /* 1063 / 1440 */
  max-width: 1063px;
  margin: 2vw auto;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 700;
  text-align: center;
}


footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: #E0B0B0;
color: white;
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  background: #f7f9fc;
}

.section {
  flex: 1;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section label {
  font-weight: 600;
  font-size: 0.95rem;
}

.section input {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.toggle {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 1rem;
}

.btn {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #BD4343;
  color: #fff;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.separator {
  width: 6px;
  background: #E0B0B0;
}

@media(max-width: 768px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .separator {
    width: 100%;
    height: 6px;
  }
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  background: #f7f9fc;
  }
        
.section {
  flex: 1;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

.section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  }

.info {
  font-size: 1.1rem;
  line-height: 1.6;
  }

.btn-deco {
  margin-top: 2rem;
  background: #BD4343;
  color: white;
  border: none;
  padding: .8rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  }

.btn-deco:hover {
  opacity: 0.9;
  }

body{font-family:'Inter',sans-serif;margin:0;padding:0;background:#f3f5f9}

header{background:#E0B0B0;padding:1rem 2rem;display:flex;align-items:center;gap:1rem}
header img{width:60px;height:60px}
h1{margin:1.5rem 0;text-align:center;font-size:2.2rem}

.search-box{width:100%;padding:.8rem 1rem;font-size:1rem;border:1px solid #ccc;border-radius:6px;margin-bottom:1rem;box-sizing:border-box}
.tool-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.item{display:flex;align-items:center;gap:.5rem;margin-bottom:.7rem}
.item input[type="number"]{width:80px;padding:.3rem;border:1px solid #ccc;border-radius:4px;font-size:.9rem}
.item label{flex:1;font-size:.95rem}
.btn-copy{margin-top:1.5rem;padding:.8rem 1.8rem;font-size:1rem;background:#BD4343;color:#fff;border:none;border-radius:6px;cursor:pointer}
.btn-copy:hover{opacity:.9}
@media(max-width:600px){h1{font-size:1.6rem}.btn-copy{width:100%}}

.favoris-list {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.favori-item {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.favori-item label {
  flex: 1;
  margin-left: 10px;
}

.favori-item input[type="number"] {
  width: 60px;
  margin-left: 10px;
}

.favori-item .btn-retirer {
  margin-left: 15px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: red;
  cursor: pointer;
}


.a_propos_container {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: calc(209 / 1420 * 100vh); /* = Y du titre */
  padding-left: calc(172 / 1440 * 100vw);
  padding-right: calc(172 / 1440 * 100vw);
  padding-bottom: 15vh;
  box-sizing: border-box;
}

.a_propos_title {
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  font-size: clamp(1.5rem, 2.22vw, 2rem); /* ~32px */
  margin-bottom: calc(72 / 1420 * 100vh); /* pour simuler Y=281 - Y=209 */
  text-align: left;
}

.a_propos_description {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.66vw, 1.5rem); /* ~24px */
  width: 62.15vw; /* 895 / 1440 */
  max-width: 895px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: justify;
}

.a_propos_signature {
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  font-size: clamp(1rem, 1.66vw, 1.5rem); /* ~24px */
  text-align: right;
  margin-top: calc((1204 - 209 - 880) / 1420 * 100vh); /* distance entre texte et signature */
  padding-right: calc((1440 - 1350) / 1440 * 100vw);
}

.btn-admin-ajout {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
}
.btn-admin-ajout:hover {
  background-color: #0056b3;
}
