*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#f4f1ec;
  color:#222;
  padding-bottom:30px;
}

.app-header{
  background:#111;
  color:white;
  padding:35px 25px;
}

.bonjour{
  color:#c8a96a;
  margin-bottom:6px;
}

h1{
  font-size:34px;
}

.subtitle{
  margin-top:8px;
  opacity:.8;
}

.container{
  max-width:900px;
  margin:auto;
  padding:20px;
}

.dashboard{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:15px;
  margin-bottom:25px;
}

.card,
.today-section,
.form-section,
.list-section{
  background:white;
  border-radius:18px;
  padding:22px;
  margin-bottom:22px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.card span{
  display:block;
  color:#777;
  margin-bottom:8px;
}

.card strong{
  font-size:28px;
}

h2{
  margin-bottom:18px;
}

.today-card{
  background:#fafafa;
  border-left:5px solid #c8a96a;
  border-radius:14px;
  padding:18px;
}

#todayDate{
  color:#777;
  margin-bottom:12px;
}

form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

input,
select,
textarea{
  padding:14px;
  border:1px solid #ddd;
  border-radius:12px;
  font-size:15px;
}

textarea{
  min-height:100px;
  resize:vertical;
}

button{
  background:#111;
  color:white;
  border:none;
  padding:15px;
  border-radius:12px;
  font-size:15px;
  cursor:pointer;
}

button:hover{
  background:#333;
}

.prestation{
  background:#fafafa;
  border-left:5px solid #c8a96a;
  padding:18px;
  border-radius:14px;
  margin-bottom:15px;
}

.prestation h3{
  margin-bottom:8px;
}

.prestation p{
  margin:5px 0;
  color:#555;
}

.actions{
  display:flex;
  gap:10px;
  margin-top:15px;
}

.actions button{
  flex:1;
}

.finish-btn{
  background:#1b5e20;
}

.delete-btn{
  background:#b71c1c;
}

.empty{
  color:#888;
  font-style:italic;
}

.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:72px;
    background:#111;
    display:flex;
    justify-content:space-around;
    align-items:center;
    box-shadow:0 -4px 20px rgba(0,0,0,.15);
    z-index:999;
}

.bottom-nav a{
    text-decoration:none;
    color:white;
    display:flex;
    flex-direction:column;
    align-items:center;
    font-size:13px;
    transition:.3s;
}

.bottom-nav span{
    font-size:22px;
    margin-bottom:4px;
}

.bottom-nav a.active{
    color:#c8a96a;
}

.bottom-nav a:hover{
    color:#c8a96a;
}

body{
    padding-bottom:90px;
}

.calendar-section{
  background:white;
  border-radius:18px;
  padding:22px;
  margin-bottom:22px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.calendar-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.calendar-header button{
  width:45px;
  height:45px;
  padding:0;
}

.calendar-days,
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.calendar-days span{
  text-align:center;
  font-weight:bold;
  color:#777;
  margin-bottom:8px;
}

.calendar-day{
  min-height:85px;
  background:#fafafa;
  border-radius:14px;
  padding:8px;
  cursor:pointer;
  border:1px solid #eee;
}

.calendar-day:hover{
  background:#f0eadf;
}

.day-number{
  font-weight:bold;
  margin-bottom:6px;
}

.calendar-event{
  font-size:12px;
  padding:4px 6px;
  border-radius:8px;
  margin-top:4px;
  color:white;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.event-confirme{ background:#1b5e20; }
.event-option{ background:#c88400; }
.event-bloque{ background:#555; }
.event-termine{ background:#777; }

.empty-day{
  background:transparent;
  border:none;
  cursor:default;
}

.calendar-day.has-event{
  color:white;
  border:none;
}

.calendar-day.has-event .day-number{
  color:white;
}

.calendar-day.confirmed{
  background:#1b5e20;
}

.calendar-day.option{
  background:#c88400;
}

.calendar-day.blocked{
  background:#555;
}

.calendar-day.done{
  background:#6b7280;
}

.calendar-day.today{
  outline:3px solid #c8a96a;
  outline-offset:3px;
}

.calendar-event{
  background:transparent !important;
  padding:0;
  color:white;
  font-size:13px;
  margin-top:8px;
  line-height:1.4;
}

.calendar-day.today{
  outline:3px solid #c8a96a;
  outline-offset:3px;
}

.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:2000;
  padding:20px;
}

.modal-content{
  background:white;
  max-width:700px;
  margin:40px auto;
  border-radius:22px;
  padding:25px;
  position:relative;
}

.modal-close{
  position:absolute;
  top:15px;
  right:15px;
  width:42px;
  height:42px;
  padding:0;
  border-radius:50%;
}

.fiche-tabs{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:20px;
}

.fiche-tab{
  background:#fafafa;
  border-radius:14px;
  padding:15px;
  border-left:4px solid #c8a96a;
}

.onglet-content{
  margin-top:20px;
  background:#fafafa;
  border-radius:14px;
  padding:18px;
}

.fiche-tab{
  background:#fafafa !important;
  color:#222 !important;
  border:none;
  text-align:left;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
}

.fiche-tab:hover{
  background:#f0eadf !important;
  color:#111 !important;
}

.back-link{
  color:#c8a96a;
  text-decoration:none;
  display:inline-block;
  margin-bottom:10px;
}

.fiche-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:20px;
}

.fiche-menu,
.fiche-content{
  background:white;
  border-radius:18px;
  padding:22px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.fiche-menu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fiche-menu button{
  text-align:left;
  background:#fafafa;
  color:#222;
}

.fiche-content textarea{
  width:100%;
  min-height:220px;
  margin:15px 0;
}

@media(max-width:700px){
  .fiche-layout{
    grid-template-columns:1fr;
  }
}

.client-page {
  min-height: 100vh;
  padding: 40px 20px 90px;
  background: #f4f1ea;
  font-family: Arial, sans-serif;
  color: #1f2937;
}

.client-page h1 {
  font-size: 34px;
  margin-bottom: 5px;
}

.client-page .intro {
  margin-bottom: 30px;
  color: #6b7280;
}

.client-card {
  max-width: 760px;
  margin: 0 auto 22px;
  background: #fffaf2;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.client-card h2 {
  margin-bottom: 20px;
  color: #1f2937;
}

.client-card p {
  padding: 10px 0;
  border-bottom: 1px solid #e5ded2;
}

.client-card p:last-child {
  border-bottom: none;
}

.client-btn {
  margin-top: 15px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: #334155;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.client-btn.secondary {
  background: #6b7280;
}

.client-body {
  margin: 0;
  background: #f3eee5;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
}

.client-header {
  height: 82px;
  background: #0d0f0f;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
}

.client-logo {
  color: #c79532;
  letter-spacing: 6px;
  font-size: 28px;
  line-height: 22px;
}

.client-logo small {
  display: block;
  font-size: 13px;
}

.client-main {
  max-width: 1100px;
  margin: auto;
  padding: 55px 25px;
}

.client-hero h1 {
  font-size: 58px;
  font-weight: 400;
  margin: 0;
}

.gold-line {
  width: 55px;
  height: 2px;
  background: #c79532;
  margin: 20px 0;
}

.client-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  margin-top: 35px;
}

.luxury-card,
.menu-card,
.contact-card {
  background: #fffaf2;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.10);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.card-title h2 {
  font-size: 30px;
  font-weight: 400;
  margin: 0;
}

.card-icon {
  background: #0d0f0f;
  color: #c79532;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.info-row,
.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd3c3;
}

.info-row span,
.payment-row span {
  font-weight: 600;
}

.info-row strong,
.payment-row strong {
  font-weight: 400;
}

.payment-card {
  background: #0d0f0f;
  color: white;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.22);
}

.payment-card .payment-row strong {
  color: #d7a23a;
  font-size: 28px;
}

.payment-row.big strong {
  color: white;
  font-size: 34px;
}

.progress-bar {
  background: #303030;
  border-radius: 8px;
  height: 44px;
  margin: 25px 0 18px;
  overflow: hidden;
}

.progress-fill {
  width: 30%;
  height: 100%;
  background: #d7a23a;
  display: flex;
  align-items: center;
  padding-left: 15px;
  font-weight: bold;
}

.gold-btn,
.dark-btn,
.contact-btn {
  width: 100%;
  padding: 17px;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
}

.gold-btn {
  background: #d7a23a;
  color: white;
  border: none;
}

.dark-btn {
  margin-top: 14px;
  background: transparent;
  color: white;
  border: 1px solid #d7a23a;
}

.secure-text,
.menu-note {
  text-align: center;
  color: #9b8b75;
}

.menu-card {
  margin-top: 34px;
}

.menu-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.unique-badge {
  background: #efe4d0;
  padding: 18px;
  border-radius: 10px;
  max-width: 250px;
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.menu-column {
  text-align: center;
  border-right: 1px solid #ddd3c3;
  padding: 0 18px;
}

.menu-column:last-child {
  border-right: none;
}

.menu-icon {
  color: #c79532;
  font-size: 34px;
}

.menu-column h3 {
  font-size: 21px;
}

.menu-column ul {
  text-align: left;
  padding-left: 18px;
}

.contact-card {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-btn {
  width: auto;
  background: transparent;
  color: #a87519;
  border: 1px solid #c79532;
  padding: 15px 35px;
}

.client-footer {
  background: #0d0f0f;
  color: white;
  text-align: center;
  padding: 30px;
}

.client-footer div {
  color: #c79532;
  font-size: 24px;
}

@media (max-width: 850px) {
  .client-grid,
  .menu-columns {
    grid-template-columns: 1fr;
  }

  .menu-column {
    border-right: none;
    border-bottom: 1px solid #ddd3c3;
    padding-bottom: 20px;
  }

  .contact-card,
  .menu-head {
    flex-direction: column;
  }

  .client-hero h1 {
    font-size: 42px;
  }

  .client-header {
    padding: 0 25px;
  }
}

/* ============================= */
/* NOUVEAU PORTAIL CLIENT */
/* ============================= */

/* ============================= */
/* PAGE PRESTATIONS */
/* ============================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fffaf2;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stat-card span {
  font-size: 24px;
}

.stat-card p {
  color: #6b7280;
  margin: 10px 0 6px;
}

.stat-card strong {
  font-size: 26px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.primary-btn {
  background: #334155;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 600;
}

.prestation-card {
  background: #fffaf2;
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.prestation-date {
  color: #c79532;
  font-weight: 700;
}

.prestation-card h3 {
  font-size: 26px;
  margin: 8px 0;
}

.prestation-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.status {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status.confirmed {
  background: #dcfce7;
  color: #166534;
}

.prestation-side strong {
  font-size: 28px;
}

.prestation-side a {
  background: #334155;
  color: white;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 12px;
}

@media (max-width: 850px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prestation-card {
    flex-direction: column;
  }

  .prestation-side {
    align-items: flex-start;
  }
}

.bank-card {
  margin-top: 28px;
  background: #fff8ef;
  border: 1px solid #e6d6bb;
  border-radius: 16px;
  padding: 24px;
  color: #111;
}

.rib-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
  line-height: 1.7;
}

.rib-box span {
  font-weight: 700;
  color: #9b7a2d;
  letter-spacing: 1px;
}

.documents-placeholder {
  background: #fffaf2;
  border: 1px solid #e6d6bb;
  border-radius: 14px;
  padding: 20px;
}

.menu-client-text {
  margin-top: 25px;
  background: #fffaf2;
  border: 1px solid #e6d6bb;
  border-radius: 14px;
  padding: 24px;
  line-height: 1.8;
  white-space: pre-line;
  font-size: 16px;
}