/* =========================================================
   Royal Connect – Royal Beauty
   Feuille de styles principale
   Palette : Or #C9A227 · Bordeaux #6B0F1A · Rose clair #F8E1E7
   ========================================================= */

/* ---------- Variables & Reset ---------- */
:root {
    --gold: #C9A227;
    --gold-dark: #a88618;
    --burgundy: #6B0F1A;
    --burgundy-dark: #4a0a12;
    --pink: #F8E1E7;
    --pink-soft: #fdf4f7;
    --white: #ffffff;
    --text: #2b2b2b;
    --text-muted: #6e6e6e;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(107, 15, 26, 0.15);
    --radius: 14px;
    --radius-lg: 22px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--burgundy);
    font-weight: 600;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: 1px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    width: 26px;
    height: 2px;
    background: var(--burgundy);
    transition: var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(201, 162, 39, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-burgundy {
    background: var(--burgundy);
    color: var(--white);
}

.btn-burgundy:hover {
    background: var(--burgundy-dark);
    transform: translateY(-3px);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(107, 15, 26, 0.55), rgba(0, 0, 0, 0.45)),
                url("../images/2149259365.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 100px 20px 60px;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease both;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero .btn {
    font-size: 1rem;
    padding: 16px 42px;
}

.page-header {
    padding: 160px 0 70px;
    background: linear-gradient(135deg, var(--pink-soft), var(--pink));
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---------- About section ---------- */
.about {
    background: var(--pink-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ---------- Services (cards) ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-image {
    height: 220px;
    overflow: hidden;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.08);
}

.service-card .card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
    flex: 1;
}

.service-card .price {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

/* Preview (home) compact card */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.preview-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(201, 162, 39, 0.15);
}

.preview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.preview-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    font-size: 1.8rem;
}

.preview-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.preview-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- CTA section ---------- */
.cta {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    color: var(--white);
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Formulaire booking ---------- */
.booking-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.booking-side {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--white);
    padding: 45px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-side h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.booking-side p {
    opacity: 0.9;
    margin-bottom: 14px;
}

.booking-side .info-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.booking-side .info-icon {
    color: var(--gold);
    font-size: 1.1rem;
}

.booking-form {
    background: var(--white);
    padding: 45px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--burgundy);
    font-size: 0.92rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

/* ---------- Dashboard ---------- */
.dashboard-section {
    padding: 140px 0 80px;
    background: var(--pink-soft);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header h1 {
    font-size: 2.2rem;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 22px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 4px solid var(--gold);
}

.stat-card.pending { border-left-color: #e89416; }
.stat-card.validated { border-left-color: #2e9b54; }

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--burgundy);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.filter-btn {
    padding: 9px 20px;
    border: 1.5px solid var(--burgundy);
    background: transparent;
    color: var(--burgundy);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--burgundy);
    color: var(--white);
}

.table-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.bookings-table thead {
    background: var(--burgundy);
    color: var(--white);
}

.bookings-table th,
.bookings-table td {
    padding: 16px 18px;
    text-align: left;
    font-size: 0.93rem;
}

.bookings-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.78rem;
}

.bookings-table tbody tr {
    border-bottom: 1px solid #f0e9ec;
    transition: background var(--transition);
}

.bookings-table tbody tr:hover {
    background: var(--pink-soft);
}

.bookings-table tbody tr:last-child {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3e0;
    color: #e89416;
}

.status-validated {
    background: #e6f6ec;
    color: #2e9b54;
}

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

.btn-action {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-validate {
    background: #e6f6ec;
    color: #2e9b54;
}

.btn-validate:hover {
    background: #2e9b54;
    color: var(--white);
    transform: scale(1.08);
}

.btn-delete {
    background: #fdecee;
    color: #c0392b;
}

.btn-delete:hover {
    background: #c0392b;
    color: var(--white);
    transform: scale(1.08);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.empty-state .icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.4;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
    background: #1a1a1a;
    color: #cfcfcf;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer h4 {
    color: var(--gold);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer .logo {
    color: var(--white);
    margin-bottom: 14px;
    display: inline-block;
}

.footer p,
.footer li {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: #cfcfcf;
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* ---------- Toast notifications ---------- */
.toast-container {
    position: fixed;
    top: 100px;
    right: 25px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--white);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-left: 4px solid var(--gold);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success { border-left-color: #2e9b54; }
.toast-error { border-left-color: #c0392b; }
.toast-info { border-left-color: #2980b9; }

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: #2e9b54; }
.toast-error .toast-icon { background: #c0392b; }
.toast-info .toast-icon { background: #2980b9; }

.toast-msg {
    font-size: 0.92rem;
    color: var(--text);
}


/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.8s ease both;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .section { padding: 70px 0; }

    .about-grid,
    .booking-wrap {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

    .stats-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .burger { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 20px 0;
        gap: 18px;
        text-align: center;
        box-shadow: var(--shadow-sm);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hero p { font-size: 1.05rem; }
    .section-title { font-size: 1.9rem; }

    .booking-form,
    .booking-side { padding: 30px; }

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

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    .page-header { padding: 130px 0 50px; }
    .page-header h1 { font-size: 2.2rem; }

    .dashboard-section { padding: 120px 0 60px; }

    /* Responsive table → cards */
    .bookings-table thead { display: none; }
    .bookings-table,
    .bookings-table tbody,
    .bookings-table tr,
    .bookings-table td {
        display: block;
        width: 100%;
    }
    .bookings-table tr {
        background: var(--white);
        margin-bottom: 14px;
        border-radius: var(--radius);
        padding: 10px 6px;
        box-shadow: var(--shadow-sm);
        border-bottom: none !important;
    }
    .bookings-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border-bottom: 1px dashed #eee;
    }
    .bookings-table td:last-child { border-bottom: none; }
    .bookings-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--burgundy);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .actions-cell { justify-content: flex-end; }

    .toast-container { right: 15px; left: 15px; top: 90px; }
    .toast { min-width: auto; width: 100%; }
}




/* ---------- Bouton danger ---------- */
.btn-danger {
    background: linear-gradient(135deg, #c0392b, #962d22);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.35);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(192, 57, 43, 0.5);
}

/* ---------- Dashboard actions (header) ---------- */
.dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Page de connexion ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    background:
        linear-gradient(135deg, rgba(107, 15, 26, 0.92), rgba(74, 10, 18, 0.95)),
        url("../images/2149259365.jpg") center/cover no-repeat;
    padding: 40px 20px;
    position: relative;
}

.login-wrap {
    width: 100%;
    max-width: 460px;
    margin: auto;
    position: relative;
}

.login-back {
    position: absolute;
    top: -30px;
    left: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.login-back:hover {
    color: var(--gold);
}

.login-card {
    background: var(--white);
    padding: 45px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: fadeUp 0.6s ease both;
}

.login-brand {
    text-align: center;
    margin-bottom: 35px;
}

.login-brand .logo {
    font-size: 2rem;
}

.login-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.login-hint {
    margin-top: 22px;
    padding: 12px 15px;
    background: var(--pink-soft);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    border-left: 3px solid var(--gold);
}

.login-hint code {
    background: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--burgundy);
    font-weight: 600;
}

/* ---------- Modal de confirmation ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 10, 15, 0.55);
    backdrop-filter: blur(3px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 32px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.modal-backdrop.show .modal {
    transform: translateY(0) scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    color: var(--burgundy);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon.danger {
    background: linear-gradient(135deg, #fdecee, #fbd5d9);
    color: #c0392b;
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 26px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 130px;
    padding: 12px 20px;
}

@media (max-width: 480px) {
    .login-card { padding: 35px 25px; }
    .modal { padding: 30px 22px 22px; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn { width: 100%; }
}
