
/* fond général */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, hsl(207, 100%, 95%), #ffe2f1);
}

/* 🏠 container */
.home {
  text-align: center;
  padding: 40px 20px;
}

/* ⬅️ bouton retour discret */
.back-button {
  position: fixed;
  top: 15px;
  left: 15px;

  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 20px;
  color: #d48ca3;

  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;

  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

  transition: all 0.2s;
  z-index: 3000;
}

/* titre */
h1 {
  color: #d48ca3;
  margin-bottom: 10px;
}

/* sous-titre */
.subtitle {
  color: #777;
  margin-bottom: 30px;
}


/* 🌸 HEADER */
.header {
  text-align: center;
  padding: 20px 20px 30px 20px;

  /* background: linear-gradient(135deg, #fde2e4, #e2f0ff); */
}

/* titre */
.header h1 {
  margin: 0;
  color: #d48ca3;
}

/* grille */
.grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

/* cartes */
.card {
  text-decoration: none;
  color: inherit;

  background: white;
  padding: 25px;
  border-radius: 25px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);

  transition: transform 0.2s, box-shadow 0.2s;
}
/* hover */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* icône */
.card-icon {
  font-size: 40px;
  margin-bottom: 10px;
}


/* carte avec étiquette */
.card.soon {
  position: relative;
  overflow: hidden;
}

/* ruban */
.card.soon::before {
  content: "Bientôt disponible";

  position: absolute;
  top: 35px;
  right: -50px;

  width: 200px;
  text-align: center;

  background: #d48ca3;
  color: white;

  font-size: 12px;
  padding: 5px 0;

  transform: rotate(45deg);

  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* titres cartes */
.card h2 {
  margin: 10px 0;
  color: #d48ca3;
}

/* texte */
.card p {
  color: #666;
  font-size: 14px;
}


/* 📋 CONTAINER */
.container {
  display: flex;
  justify-content: center;
  padding: 30px;
}

/* 📋 formulaire */
form {
  width: 100%;
  max-width: 700px;

  background: #ffffffcc;
  padding: 25px;
  border-radius: 25px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


/* grille 2 colonnes */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* grille 3 colonnes */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0px;
}


/* groupes */
fieldset {
  border: none;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 20px;
  background: #f9f4ff;
  transition: transform 0.2s;
  text-align: left;
}


/* legend */
legend {
  font-weight: bold;
  color: #a86c79;
}

/* inputs */
input[type="text"],
input[type="date"],
input[type="time"] {
  width: 96%;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

/* taille des inputs */
input[type="checkbox"],
input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
  width: 20px;
}

/* sliders */
input[type="range"] {
  width: 100%;
}

/* labels */
label {
  display: block;
  margin: 5px 0;
}



label.inline {
  display: flex;
  /* alignement horizontal */
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-align: left;
}



/* bouton */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 20px;
  background: #ffb6c1;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #ff8fab;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* bouton de base */
.btn {
  flex: 1;
  padding: 12px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

/* primaire */
.btn.primary {
  background: #d48ca3;
  color: white;
}

.btn.primary:hover {
  background: #c97b94;
}

/* secondaire */
.btn.secondary {
  background: #f3e8ff;
  color: #7b3f69;
}

.btn.secondary:hover {
  background: #eadcff;
}



/* MESSAGE D'INFO */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);

  width: 80%;
  max-width: 600px;

  /* display: block; */
  height: auto;
  min-height: unset;
  max-height: fit-content;
  box-sizing: border-box;
  
  background: #333;
  color: white;
  padding: 14px 20px;

  border-radius: 20px;
  text-align: center;
  font-size: 16px;

  opacity: 0;
  pointer-events: none;

  transition: all 0.4s ease;
  z-index: 9999;

  box-sizing: border-box;
}
/* état visible */
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* desktop */
@media (min-width: 768px) {
  .toast {
    width: 30%;
  }
}

/* variantes */
.toast.success { background: #588b5a; }
.toast.warning { background: #a9772b; }
.toast.error { background: #823e3e; }

/* 📱 MOBILE */
@media (max-width: 768px) {

    .home {
    padding: 20px;
  }

  .container {
    /* flex-direction: column;
    padding: 0 15px 20px 15px; */
    padding: 0;
  }

    /* 🌸 HEADER intégré */
  .header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: linear-gradient(135deg, #fde2e4, #e2f0ff);
    padding: 15px 10px 10px 10px;

    text-align: center;

    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }

    /* titre */
  .header h1 {
    margin: 0;
    font-size: 20px;
    color: #d48ca3;
  }


  /* espace pour éviter que le form passe dessous */
  form {
    margin-top: 5px; /* ajuste selon taille bébé */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* éviter tout débordement */
  * {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  /* champs */
  input,
  button {
    width: 100%;
    font-size: 16px;
  }

  /* grilles simplifiées */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}