/* =====================================================
   PAGE MES CONGÉS — VERSION PREMIUM
===================================================== */

.dp-holidays-page{
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 22px 80px;
}

/* masquer le titre WP/Divi */
.page-id-1888 .entry-title,
.page-id-1888 h1.entry-title,
.page-id-1888 .et_pb_title_container h1,
.page-id-1888 .main_title,
.page-id-1888 .et_pb_post .entry-title,
.page-id-1888 .et_pb_title_featured_container,
.page-id-1888 .et_pb_title_meta_container,
.page-id-1888 .et_pb_post_title{
  display:none !important;
}

/* =====================================================
   HERO
===================================================== */
.dp-holidays-hero{
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  padding: 34px 38px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 28%),
    radial-gradient(circle at bottom left, rgba(255,214,102,.10) 0%, rgba(255,214,102,0) 26%),
    linear-gradient(135deg, #141c2a 0%, #2f4360 42%, #7b8da6 100%);
  box-shadow:
    0 28px 70px rgba(11,18,31,.26),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.dp-holidays-hero::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:180px;
  height:180px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 70%);
  pointer-events:none;
}

.dp-holidays-hero h1{
  margin:0 0 10px;
  font-size:46px;
  line-height:1.02;
  font-weight:900;
  letter-spacing:-0.03em;
  color:#fff;
  text-shadow:0 12px 30px rgba(0,0,0,.22);
}

.dp-holidays-hero p{
  margin:0;
  max-width:720px;
  font-size:16px;
  line-height:1.7;
  color:rgba(255,255,255,.84);
}

/* =====================================================
   BOX PRINCIPALE
===================================================== */
.dp-holidays-box{
  position: relative;
  padding: 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,248,228,.84) 0%, rgba(255,255,255,.96) 100%);
  border: 1px solid rgba(223,183,80,.28);
  box-shadow:
    0 20px 48px rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.5);
}

/* =====================================================
   ALERTES
===================================================== */
.dp-holidays-notice{
  margin-bottom: 18px;
  padding: 15px 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  line-height:1.5;
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.dp-holidays-notice--success{
  background: linear-gradient(180deg, rgba(16,185,129,.10), rgba(16,185,129,.06));
  color: #065f46;
  border: 1px solid rgba(16,185,129,.12);
}

.dp-holidays-notice--error{
  background: linear-gradient(180deg, rgba(239,68,68,.10), rgba(239,68,68,.06));
  color: #991b1b;
  border: 1px solid rgba(239,68,68,.12);
}

/* =====================================================
   FORMULAIRE
===================================================== */
.dp-holidays-form{
  display:grid;
  gap:22px;
  margin-bottom: 28px;
}

.dp-holidays-form h3,
.dp-holidays-published h3{
  margin:0;
  font-size:30px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:-0.02em;
  color:#18202d;
}

.dp-holidays-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:18px;
}

.dp-holidays-field{
  display:grid;
  gap:9px;
}

.dp-holidays-field label{
  font-size:14px;
  font-weight:800;
  color:#18202d;
}

.dp-holidays-field input{
  width:100%;
  min-height:54px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.96);
  padding:0 16px;
  font-size:15px;
  color:#18202d;
  box-sizing:border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 6px 16px rgba(15,23,42,.04);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dp-holidays-field input:focus{
  outline:none;
  border-color: rgba(217,165,47,.8);
  box-shadow:
    0 0 0 4px rgba(217,165,47,.12),
    0 12px 24px rgba(15,23,42,.06);
  transform: translateY(-1px);
}

.dp-holidays-field input[type="date"]{
  min-height:58px;
  padding:0 18px;
  border-color:rgba(217,165,47,.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,251,239,.96));
  font-size:16px;
  font-weight:800;
  color:#18202d;
  cursor:pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 10px 22px rgba(15,23,42,.06);
}

.dp-holidays-field input[type="date"]:hover{
  border-color:rgba(217,165,47,.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 14px 26px rgba(15,23,42,.08);
}

.dp-holidays-field input[type="date"]::-webkit-calendar-picker-indicator{
  width:22px;
  height:22px;
  padding:6px;
  border-radius:999px;
  background-color:rgba(239,202,99,.24);
  cursor:pointer;
}

.dp-holidays-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 26px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-size:15px;
  font-weight:900;
  letter-spacing:.01em;
  color:#18202d;
  background: linear-gradient(180deg,#f8e4a1 0%, #efca63 48%, #dba930 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 14px 28px rgba(0,0,0,.14);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.dp-holidays-submit:hover{
  transform: translateY(-2px);
  filter: saturate(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 18px 34px rgba(0,0,0,.16);
}

/* =====================================================
   BLOC "CONGÉS PUBLIÉS"
===================================================== */
.dp-holidays-published{
  margin-top: 6px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.dp-holidays-published h3{
  margin-bottom: 18px;
}

.dp-holidays-subsection{
  margin-top: 18px;
}

.dp-holidays-subsection:first-of-type{
  margin-top: 0;
}

.dp-holidays-subsection h4{
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
  color: #334155;
}

.dp-holidays-subsection--past h4{
  color: #64748b;
}

/* tableau */
.dp-holidays-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius:20px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(15,23,42,.08);
  box-shadow: 0 14px 30px rgba(15,23,42,.05);
}

.dp-holidays-table thead th{
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(247,249,252,.98), rgba(241,245,249,.98));
  color:#18202d;
  font-size:14px;
  font-weight:900;
  text-align:left;
  padding:18px 18px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.dp-holidays-table tbody td{
  padding:18px 18px;
  font-size:15px;
  color:#334155;
  border-bottom:1px solid rgba(15,23,42,.06);
  vertical-align:middle;
}

.dp-holidays-table tbody tr:last-child td{
  border-bottom:none;
}

.dp-holidays-table tbody tr:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}

/* colonnes date plus visuelles */
.dp-holidays-table tbody td:nth-child(1),
.dp-holidays-table tbody td:nth-child(2){
  font-weight:800;
  color:#0f172a;
}

/* message */
.dp-holidays-table tbody td:nth-child(3){
  color:#475569;
  font-weight:600;
}

/* actions */
.dp-holidays-table td:last-child{
  white-space:nowrap;
}

.dp-holidays-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 15px;
  border-radius:999px;
  text-decoration:none !important;
  font-size:13px;
  font-weight:900;
  margin-right:8px;
  color:#1d4ed8;
  background: linear-gradient(180deg, rgba(59,130,246,.10), rgba(59,130,246,.06));
  border:1px solid rgba(59,130,246,.18);
  box-shadow: 0 8px 18px rgba(59,130,246,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.dp-holidays-action:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(59,130,246,.14), rgba(59,130,246,.09));
  box-shadow: 0 12px 22px rgba(59,130,246,.09);
}

.dp-holidays-action--delete{
  color:#b91c1c;
  background: linear-gradient(180deg, rgba(239,68,68,.10), rgba(239,68,68,.06));
  border:1px solid rgba(239,68,68,.16);
  box-shadow: 0 8px 18px rgba(239,68,68,.05);
}

.dp-holidays-action--delete:hover{
  background: linear-gradient(180deg, rgba(239,68,68,.14), rgba(239,68,68,.09));
  box-shadow: 0 12px 22px rgba(239,68,68,.08);
}

/* =====================================================
   APERÇU PUBLIC
===================================================== */
.dp-holidays-preview{
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 12px 26px rgba(15,23,42,.04);
  color:#475569;
  font-size:15px;
  line-height:1.6;
}

.dp-holidays-preview strong{
  display:inline-block;
  margin-right:8px;
  color:#18202d;
  font-weight:900;
}

/* =====================================================
   PETITS PLUS VISUELS
===================================================== */
.dp-holidays-box > * + *{
  margin-top: 0;
}

.dp-holidays-form + .dp-holidays-published{
  margin-top: 8px;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 767px){
  .dp-holidays-page{
    padding: 18px 14px 42px;
  }

  .dp-holidays-hero{
    padding: 24px 20px;
    border-radius: 22px;
    margin-bottom: 22px;
  }

  .dp-holidays-hero h1{
    font-size: 34px;
  }

  .dp-holidays-hero p{
    font-size: 15px;
  }

  .dp-holidays-box{
    padding: 18px;
    border-radius: 22px;
  }

  .dp-holidays-form h3,
  .dp-holidays-published h3{
    font-size:24px;
  }

  .dp-holidays-grid{
    grid-template-columns: 1fr;
  }

  .dp-holidays-submit{
    width:100%;
  }

  .dp-holidays-published{
    padding: 16px;
    border-radius: 18px;
  }

  .dp-holidays-table{
    display:block;
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .dp-holidays-table thead{
    display:none;
  }

  .dp-holidays-table tbody,
  .dp-holidays-table tr,
  .dp-holidays-table td{
    display:block;
    width:100%;
    box-sizing:border-box;
  }

  .dp-holidays-table tbody tr{
    margin-bottom:12px;
    padding:14px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 22px rgba(15,23,42,.05);
  }

  .dp-holidays-table tbody td{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
    font-size:14px;
    border-bottom:1px solid rgba(15,23,42,.06);
    overflow-wrap:anywhere;
  }

  .dp-holidays-table tbody td::before{
    flex:0 0 88px;
    color:#64748b;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
  }

  .dp-holidays-table tbody td:nth-child(1)::before{ content:"Du"; }
  .dp-holidays-table tbody td:nth-child(2)::before{ content:"Au"; }
  .dp-holidays-table tbody td:nth-child(3)::before{ content:"Message"; }
  .dp-holidays-table tbody td:nth-child(4)::before{ content:"Actions"; }

  .dp-holidays-table tbody td:last-child{
    border-bottom:0;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .dp-holidays-action{
    margin-bottom:8px;
  }

  .dp-holidays-preview{
    padding: 16px;
    font-size:14px;
  }
}
