/* ---------- VARIABLES ---------- */
:root {
    --bg-gradient: radial-gradient(circle at top, #ffe9f6 0, #ffeefb 25%, #fff7fb 55%, #ffffff 100%);
    --color-primary: #ff3f9c;
    --color-primary-light: #ff72c6;
    --color-primary-dark: #e3247e;
    --color-accent: #ffd2ec;
    --color-text-main: #333333;
    --color-text-muted: #777777;
    --card-bg: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--color-text-main);
    line-height: 1.6;
}

/* ---------- STRUCTURE GÉNÉRALE ---------- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.main {
    padding-top: 90px;
    padding-bottom: 40px;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #ffe6f7;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-nav {
    background: #ffffff;
    color: var(--color-primary-dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-nav:hover {
    background: #ffe4f5;
}

/* ---------- SECTIONS ---------- */
section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 70px 15px 40px;
    overflow: hidden;
}

/* bulles décoratives en arrière-plan */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 70%);
    opacity: 0.8;
    z-index: -1;
    filter: blur(1px);
}

.hero::before {
    top: -40px;
    left: -60px;
    animation: float-bubble 10s ease-in-out infinite;
}

.hero::after {
    bottom: -60px;
    right: -40px;
    animation: float-bubble 12s ease-in-out infinite reverse;
}

.hero-title {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--color-primary-dark);
    animation: fade-up 0.7s ease-out both;
}

.hero-highlight {
    color: var(--color-primary);
    font-weight: 700;
}

.hero-text {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #555555;
    animation: fade-up 0.9s ease-out both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fade-up 1.1s ease-out both;
}

/* ---------- BOUTONS ---------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(255, 63, 156, 0.6);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(255, 63, 156, 0.75);
}

.btn-outline {
    background: #ffffff;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: #ffe9f7;
}

/* ---------- CARTES (PRESTATIONS, BLOCS) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 18px 18px 22px;
    box-shadow: 0 16px 40px rgba(255, 63, 156, 0.08);
    border: 1px solid #ffe0f4;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 153, 213, 0.14), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(255, 63, 156, 0.16);
    border-color: #ffc4eb;
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
}

.card-price {
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 5px;
}

/* ---------- FORMULAIRES (RDV, CONTACT) ---------- */
form {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #ffd6ef;
    animation: fade-up 0.5s ease-out both;
}

form label {
    font-weight: 500;
    margin-bottom: 4px;
    display: inline-block;
}

form input[type="text"],
form input[type="email"],
form input[type="datetime-local"],
form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ffc4e5;
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    background: #fffafd;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 63, 156, 0.25);
    background: #ffffff;
}

form button[type="submit"] {
    margin-top: 10px;
}

/* ------- GALERIE ------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.gallery-item {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #ffd8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(255, 63, 156, 0.2);
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-img-wrapper::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 20px 20px 0 0;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption-title {
    font-weight: 600;
}

.gallery-caption-date {
    font-size: 0.8rem;
    opacity: 0.9;
}


/* ---------- TABLEAUX ADMIN ---------- */
table {
    border-collapse: collapse;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

table th,
table td {
    padding: 8px 10px;
    font-size: 0.9rem;
}

table th {
    background: #ffe6f7;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-primary);
    color: #ffeef8;
    padding: 18px 0;
}

.footer-inner {
    text-align: center;
    font-size: 0.9rem;
}

.footer-small {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-bubble {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-12px) translateX(6px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding-top: 55px;
    }
}

/* ------- ADMIN PANEL ------- */
.admin-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #ffd6ef;
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}

/* grille admin plus dense */
.admin-gallery-grid {
    margin-top: 12px;
}

.admin-gallery-item {
    position: relative;
}

/* bouton supprimer sur chaque photo */
.gallery-delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
}

.btn-delete-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #d80027;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-delete-photo:hover {
    background: #ffe4ea;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(216, 0, 39, 0.5);
}



/* ------- ADMIN DASHBOARD ------- */

.admin-dashboard {
    margin-top: 30px;
}

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

/* nav admin en haut à droite */
.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-nav-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-nav-link:hover {
    background: #ffe6f7;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 63, 156, 0.25);
}

.admin-nav-link-active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #ffffff;
    border-color: transparent;
}

/* cartes de stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.admin-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid #ffd4ef;
    box-shadow: 0 12px 30px rgba(255, 63, 156, 0.12);
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 112, 186, 0.25), transparent 60%);
    opacity: 0.85;
    pointer-events: none;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.admin-stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    position: relative;
    z-index: 1;
}

.admin-stat-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* listes RDV / messages */
.admin-dashboard-lists {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 20px;
    margin-bottom: 40px;
}

.admin-list-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid #ffd4ef;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

/* alertes admin */
.admin-alert {
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.admin-alert-error {
    background: #ffe6ea;
    border: 1px solid #ff99a8;
    color: #b30021;
}

/* responsive */
@media (max-width: 900px) {
    .admin-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-dashboard-lists {
        grid-template-columns: 1fr;
    }
}
