*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:'Open Sans', sans-serif;
    background:#DEDEDE;
    color:#222;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:#0A0A0A;
    color:#fff;
    padding:25px 0;
    flex-shrink:0;
}

.logo{
    text-align:center;
    padding:10px 20px 30px;
}

.logo img{
    width:150px;
    max-width:100%;
    border-radius:50%;
}

.sidebar nav ul{
    list-style:none;
    margin:0;
    padding:0;
}

.sidebar nav li{
    margin:6px 16px;
    border-radius:10px;
    overflow:hidden;
}

.sidebar nav li a{
    display:block;
    padding:14px 18px;
    font-size:24px;
    color:#fff;
}

.sidebar nav li:hover,
.sidebar nav li.active{
    background:#E6B35A;
}

.sidebar nav li:hover a,
.sidebar nav li.active a{
    color:#111;
    font-weight:600;
}

.main{
    flex:1;
    padding:35px;
}

.header-page{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:25px;
}

.header-actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.page-subtitle{
    margin:8px 0 0 0;
    color:#666;
    font-size:15px;
}

h1, h2, h3{
    font-family:'Montserrat', sans-serif;
    margin:0;
}

h1{
    font-size:36px;
}

h2{
    font-size:30px;
}

h3{
    font-size:22px;
    margin-bottom:20px;
}

.btn-primary{
    display:inline-block;
    background:#E6B35A;
    color:#111;
    padding:14px 20px;
    border-radius:10px;
    font-weight:600;
    transition:0.2s ease;
    border:none;
    cursor:pointer;
}

.btn-primary:hover{
    background:#d7a248;
}

.btn-secondary{
    display:inline-block;
    background:#111;
    color:#fff;
    padding:10px 16px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    transition:0.2s ease;
    border:none;
    cursor:pointer;
}

.btn-secondary:hover{
    background:#E6B35A;
    color:#111;
}

.btn-edit{
    display:inline-block;
    background:#E6B35A;
    color:#111;
    padding:8px 14px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    transition:0.2s ease;
}

.btn-edit:hover{
    background:#d7a248;
}

.btn-delete{
    display:inline-block;
    background:#c94b4b;
    color:#fff;
    padding:10px 16px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    transition:0.2s ease;
    border:none;
    cursor:pointer;
}

.btn-delete:hover{
    background:#a93636;
    color:#fff;
}

.btn-restore{
    display:inline-block;
    background:#3f8f56;
    color:#fff;
    padding:10px 16px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    transition:0.2s ease;
    border:none;
    cursor:pointer;
}

.btn-restore:hover{
    background:#2f6f42;
    color:#fff;
}

.cards{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:35px;
}

.card{
    background:#FFF;
    border-radius:14px;
    padding:22px 24px;
    min-width:200px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
}

.card h3{
    margin:0 0 8px 0;
    font-size:34px;
    font-family:'Montserrat', sans-serif;
}

.card p{
    margin:0;
    color:#666;
    font-size:16px;
}

.card-highlight{
    border-left:6px solid #E6B35A;
}

.dashboard-cards{
    margin-bottom:28px;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(280px, 1fr));
    gap:24px;
}

.dashboard-panel{
    background:#E8E8E8;
    border-radius:18px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    padding:24px;
}

.dashboard-panel-full{
    grid-column:1 / -1;
}

.panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
}

.panel-link{
    font-size:14px;
    font-weight:600;
    color:#8a5b00;
}

.dashboard-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.dashboard-item{
    display:block;
    background:#FFF;
    border:1px solid #efefef;
    border-radius:12px;
    padding:14px 16px;
    transition:0.2s ease;
}

.dashboard-item:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.dashboard-item-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:8px;
}

.dashboard-item-title{
    font-weight:700;
    font-size:16px;
    color:#222;
}

.dashboard-item-meta{
    font-size:14px;
    color:#666;
    line-height:1.5;
}

.empty-box{
    background:#fafafa;
    border-radius:12px;
    padding:18px;
    color:#777;
    font-style:italic;
}

.alert-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(220px, 1fr));
    gap:18px;
}

.alert-card{
    background:#fafafa;
    border:1px solid #efefef;
    border-radius:14px;
    padding:20px;
}

.alert-title{
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.3px;
    color:#777;
    margin-bottom:10px;
}

.alert-value{
    font-family:'Montserrat', sans-serif;
    font-size:32px;
    font-weight:700;
    color:#111;
    margin-bottom:8px;
}

.alert-text{
    color:#666;
    line-height:1.5;
    font-size:14px;
}

.filters-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    padding:24px;
    margin-bottom:24px;
}

.filters-form{
    display:grid;
    grid-template-columns:repeat(4, minmax(180px, 1fr));
    gap:18px;
    align-items:end;
}

.filter-group{
    display:flex;
    flex-direction:column;
}

.filter-group label{
    font-weight:600;
    margin-bottom:8px;
    color:#333;
}

.filter-group input,
.filter-group select{
    width:100%;
    padding:12px 14px;
    border:1px solid #d8d8d8;
    border-radius:10px;
    font-size:15px;
    font-family:'Open Sans', sans-serif;
    background:#fff;
}

.filter-group input:focus,
.filter-group select:focus{
    outline:none;
    border-color:#E6B35A;
    box-shadow:0 0 0 3px rgba(230,179,90,0.15);
}

.filter-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.table-container{
    background:#fff;
    border-radius:14px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    overflow:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

th,
td{
    text-align:left;
    padding:16px 18px;
    border-bottom:1px solid #ececec;
    vertical-align:middle;
}

th{
    background:#fafafa;
    font-family:'Montserrat', sans-serif;
    font-size:15px;
}

tr:last-child td{
    border-bottom:none;
}

.table-mariages th,
.table-mariages td{
    font-size:15px;
}

.table-mariages td{
    white-space:nowrap;
}

.status{
    display:inline-block;
    padding:8px 12px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
}

.status.nouvelle-demande{
    background:#f7e3b8;
    color:#8a5b00;
}

.status.a-confirmer{
    background:#f3ead8;
    color:#8b6a24;
}

.status.confirme{
    background:#d8f0dc;
    color:#2f7a3c;
}

.status.refuse{
    background:#dfe5ea;
    color:#4d6272;
}

.status.annule{
    background:#e4e4e4;
    color:#666;
}

.status.devis-envoye{
    background:#f2d8d2;
    color:#9b4e3f;
}

.type-badge{
    display:inline-block;
    background:#e8f1e8;
    color:#41734b;
    padding:8px 12px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
}

.archive-badge{
    display:inline-block;
    background:#e4e4e4;
    color:#555;
    padding:8px 12px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
}

.badge-dispo-base{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
}

.badge-dispo{
    background:#d8f0dc;
    color:#2f7a3c;
}

.badge-indispo{
    background:#f4dcdc;
    color:#a33c3c;
}

.badge-attente{
    background:#f3ead8;
    color:#8b6a24;
}

.actions-cell{
    display:flex;
    gap:8px;
    align-items:center;
}

.form-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    padding:30px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(220px, 1fr));
    gap:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group-full{
    grid-column:1 / -1;
}

.form-group label{
    font-weight:600;
    margin-bottom:8px;
    color:#333;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #d8d8d8;
    border-radius:10px;
    font-size:15px;
    font-family:'Open Sans', sans-serif;
    background:#fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:#E6B35A;
    box-shadow:0 0 0 3px rgba(230,179,90,0.15);
}

.form-actions{
    margin-top:25px;
    display:flex;
    justify-content:flex-end;
}

.alert-error{
    background:#f4dcdc;
    color:#a33c3c;
    padding:12px 14px;
    border-radius:10px;
    margin-bottom:20px;
    font-weight:600;
}

.fiche-hero{
    background:#fff;
    border-radius:18px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    padding:28px 30px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:24px;
}

.fiche-badges{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:14px;
}

.hero-date{
    font-family:'Montserrat', sans-serif;
    font-size:24px;
    font-weight:700;
    text-align:right;
    color:#111;
}

.hero-location{
    margin-top:8px;
    text-align:right;
    color:#666;
    font-size:16px;
}

.fiche-layout{
    display:grid;
    grid-template-columns:repeat(2, minmax(280px, 1fr));
    gap:24px;
}

.info-card{
    background:#fff;
    border-radius:18px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    padding:28px;
}

.info-card-full{
    grid-column:1 / -1;
}

.info-list{
    display:grid;
    grid-template-columns:repeat(2, minmax(180px, 1fr));
    gap:18px 24px;
}

.info-item{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.info-item-full{
    grid-column:1 / -1;
}

.info-label{
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:0.4px;
    color:#888;
    font-weight:700;
}

.info-value{
    font-size:17px;
    font-weight:600;
    color:#222;
    line-height:1.6;
}

.dispo-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.dispo-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:14px 0;
    border-bottom:1px solid #efefef;
}

.dispo-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.dispo-name{
    font-weight:700;
    font-size:16px;
}

.notes-box{
    background:#fafafa;
    border-radius:12px;
    padding:20px;
    line-height:1.7;
    min-height:90px;
}

.empty-text{
    color:#888;
    font-style:italic;
}

.ceremony-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(220px, 1fr));
    gap:16px 20px;
    background:#fafafa;
    border:1px solid #efefef;
    border-radius:12px;
    padding:18px;
}

.ceremony-table{
    border:1px solid #ececec;
    border-radius:12px;
    overflow:hidden;
}

.ceremony-row{
    display:grid;
    grid-template-columns:260px 1fr;
    border-bottom:1px solid #ececec;
}

.ceremony-row:last-child{
    border-bottom:none;
}

.ceremony-label{
    background:#fafafa;
    font-weight:700;
    padding:14px 16px;
    border-right:1px solid #ececec;
}

.ceremony-value{
    padding:14px 16px;
    min-height:52px;
}

.calendar-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:24px;
    flex-wrap:wrap;
}

.calendar-title{
    font-family:'Montserrat', sans-serif;
    font-size:28px;
    font-weight:700;
    color:#111;
}

.calendar-grid{
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    gap:12px;
}

.calendar-day-name{
    background:#111;
    color:#fff;
    border-radius:10px;
    padding:12px;
    text-align:center;
    font-weight:700;
    font-family:'Montserrat', sans-serif;
}

.calendar-cell{
    background:#fff;
    border-radius:14px;
    min-height:140px;
    padding:12px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    display:flex;
    flex-direction:column;
    gap:10px;
}

.calendar-cell.empty{
    background:transparent;
    box-shadow:none;
}

.calendar-day-number{
    font-family:'Montserrat', sans-serif;
    font-size:18px;
    font-weight:700;
    color:#111;
}

.calendar-event{
    display:block;
    background:#faf7ef;
    border-left:4px solid #E6B35A;
    border-radius:10px;
    padding:10px;
    transition:0.2s ease;
}

.calendar-event:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.calendar-event-time{
    font-size:13px;
    font-weight:700;
    color:#8a5b00;
    margin-bottom:4px;
}

.calendar-event-title{
    font-size:14px;
    font-weight:700;
    color:#222;
    margin-bottom:4px;
}

.calendar-event-city{
    font-size:13px;
    color:#666;
    margin-bottom:8px;
}

.calendar-event-status{
    font-size:12px;
    padding:6px 8px;
    display:inline-block;
}

@media (max-width: 1180px){
    .filters-form{
        grid-template-columns:repeat(2, minmax(180px, 1fr));
    }

    .calendar-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .calendar-day-name{
        display:none;
    }

    .alert-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 980px){
    .container{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
        min-height:auto;
    }

    .main{
        padding:20px;
    }

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

    h1{
        font-size:28px;
    }

    .fiche-hero{
        flex-direction:column;
    }

    .hero-date,
    .hero-location{
        text-align:left;
    }

    .fiche-layout,
    .dashboard-grid,
    .ceremony-grid{
        grid-template-columns:1fr;
    }

    .info-list{
        grid-template-columns:1fr;
    }

    .ceremony-row{
        grid-template-columns:1fr;
    }

    .ceremony-label{
        border-right:none;
        border-bottom:1px solid #ececec;
    }
}

@media (max-width: 760px){
    .form-grid,
    .filters-form,
    .calendar-grid{
        grid-template-columns:1fr;
    }

    .actions-cell{
        flex-direction:column;
        align-items:flex-start;
    }

    .calendar-toolbar{
        align-items:flex-start;
    }

    .calendar-title{
        font-size:22px;
    }

    .dashboard-item-top,
    .panel-header{
        flex-direction:column;
        align-items:flex-start;
    }
}
.ceremonie-table{
width:100%;
border-collapse:collapse;
margin-top:15px;
}

.ceremonie-table th{
background:#f5f5f5;
text-align:left;
padding:10px;
font-weight:600;
}

.ceremonie-table td{
padding:10px;
border-top:1px solid #eee;
}
@media (max-width:1200px){

.container{
flex-direction:column;
}

.sidebar{
width:100%;
display:flex;
justify-content:center;
}

.sidebar nav ul{
display:flex;
gap:20px;
}

.main{
padding:20px;
}

}

@media (max-width:800px){

.form-grid{
grid-template-columns:1fr;
}

.fiche-layout{
grid-template-columns:1fr;
}

.header-page{
flex-direction:column;
gap:15px;
}

}

@media (max-width:600px){

table{
font-size:14px;
}

.btn-primary,
.btn-secondary{
width:100%;
text-align:center;
}

}
@media (max-width:900px){

.fiche-layout{
grid-template-columns:1fr;
}

.info-list{
grid-template-columns:1fr;
}

.header-page{
flex-direction:column;
gap:15px;
}

.header-actions{
flex-wrap:wrap;
gap:10px;
}

}

@media (max-width:600px){

.ceremony-row{
grid-template-columns:1fr;
}

.ceremony-label{
font-weight:600;
margin-bottom:5px;
}

}

.sidebar-user{
    margin:0 20px 20px;
    padding:12px 14px;
    background:rgba(255,255,255,0.08);
    border-radius:10px;
    font-size:14px;
    line-height:1.5;
}

.sidebar-role{
    opacity:0.8;
    font-size:13px;
}

.sidebar-logout{
    margin-top:24px !important;
}

.dispo-form-inline{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.dispo-select{
    padding:8px 10px;
    border:1px solid #d8d8d8;
    border-radius:8px;
    font-size:14px;
    font-family:'Open Sans', sans-serif;
    background:#fff;
}

.btn-small{
    padding:8px 12px;
    font-size:13px;
}

.login-body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.login-wrapper{
    width:100%;
    max-width:420px;
}

.login-card{
    background:#fff;
    border-radius:18px;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    padding:30px;
}

.login-btn{
    width:100%;
    margin-top:10px;
}

.login-error{
    color:#c94b4b;
    font-weight:600;
    margin-top:14px;
}

@media (max-width: 980px){
    .sidebar-user{
        margin:10px 16px 18px;
    }
}

@media (max-width: 760px){
    .dispo-form-inline{
        width:100%;
        flex-direction:column;
        align-items:flex-start;
    }

    .dispo-select,
    .btn-small{
        width:100%;
    }
}
