* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* BASE */
body {
  background: #f7f9fc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-app {
  width: 100%;
  max-width: 390px;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER */
.header {
  padding: 18px 16px;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1a73e8, #5f9dff);
  color: white;
}

/* MOIS (fond dégradé propre) */
.header h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;

  background: linear-gradient(135deg, #1a73e8, #6aa8ff, #4c8df5);
  padding: 6px 14px;
  border-radius: 14px;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 6px 16px rgba(0,0,0,0.15);
}

/* bouton */
.header button {
  border: none;
  background: rgba(255,255,255,0.18);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 24px;
}

/* jours semaine */
.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: #5f6368;
  font-weight: 700;
  background: #f8fbff;
  border-bottom: 1px solid #d9e6f5;
}

.week-days span {
  padding: 12px 0;
  border-right: 1px solid #d9e6f5;
}

.week-days span:last-child {
  border-right: none;
}

/* CALENDRIER FIX */
.calendar {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  border-top: 1px solid #d9e6f5;
  border-left: 1px solid #d9e6f5;
}

/* CASES */
.day,
.empty {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
  font-size: 15px;
  border-right: 1px solid #d9e6f5;
  border-bottom: 1px solid #d9e6f5;
  min-height: 64px;
}

/* DAY */
.day {
  cursor: pointer;
  color: #202124;
  font-weight: 600;
  transition: 0.15s ease;
}

.day:hover {
  background: #f1f6ff;
}

/* TODAY */
.today {
  background: #1a73e8;
  color: white;
  font-weight: 800;
  border-radius: 10px;
}

/* SELECTED */
.selected {
  background: #dbe9ff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #1a73e8;
}

/* EMPTY */
.empty {
  opacity: 0.5;
}