/* Thème sombre + doré pour la magie */
:root {
    --bg-dark: #05030a;
    --bg-card: rgba(11, 7, 24, 0.9);
    --bg-highlight: rgba(40, 22, 70, 0.9);
    --primary: #f9d36b;
    --primary-soft: rgba(249, 211, 107, 0.16);
    --accent: #ff6bcb;
    --text-main: #f5f1ff;
    --text-muted: #b3a6d6;
    --border-soft: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
    --radius-lg: 22px;
    --radius-pill: 999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1a1030, #05030a 55%);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Fond lumineux */
.magic-background {
    position: fixed;
    inset: -50px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0, transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.11) 0, transparent 40%),
        radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.09) 0, transparent 45%);
    opacity: 0.3;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -2;
    animation: aurora 20s infinite alternate ease-in-out;
}

@keyframes aurora {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-40px, 25px, 0) scale(1.04); }
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 7vw;
    backdrop-filter: blur(16px);
    background: linear-gradient(
        to bottom,
        rgba(5, 3, 10, 0.96),
        rgba(5, 3, 10, 0.76),
        transparent
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(249, 211, 107, 0.65));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 1.25rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

/* Nav desktop */
.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: all 0.18s ease-out;
}

.main-nav a:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

.main-nav a.active {
    color: #181018;
    background: linear-gradient(135deg, var(--primary), #ffdf9a);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 18px rgba(249, 211, 107, 0.4);
}

.btn-nav {
    font-weight: 600;
}

/* Burger menu (mobile) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #f5f1ff;
    height: 2px;
    width: 22px;
    border-radius: 999px;
    position: relative;
    transition: 0.2s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before {
    top: -6px;
}
.nav-toggle-label span::after {
    top: 6px;
}

.nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 32px;
    padding: 34px 7vw 18px;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 16px;
    background: rgba(5, 3, 10, 0.85);
}

.hero-title {
    font-family: "Cinzel", serif;
    font-size: clamp(2.4rem, 3.3vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 16px;
}

.hero-title span {
    font-size: 0.9em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 0 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ffdf9a);
    color: #291624;
    box-shadow: 0 18px 35px rgba(249, 211, 107, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 45px rgba(249, 211, 107, 0.5);
}

.btn-secondary {
    background: rgba(5, 3, 10, 0.7);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(20, 10, 40, 0.9);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hero-tags span {
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: rgba(20, 10, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Cartes hero */
.hero-showcase {
    display: grid;
    gap: 14px;
}

.hero-card {
    background: radial-gradient(circle at top left, rgba(249, 211, 107, 0.12), transparent 55%),
                var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 180%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 211, 107, 0.8), transparent);
    top: 0;
    left: -40%;
    opacity: 0.4;
}

.hero-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.hero-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Page & sections */
.page {
    padding: 12px 7vw 50px;
}

.section {
    margin-top: 26px;
    padding: 22px 22px 26px;
    border-radius: var(--radius-lg);
    background: rgba(5, 3, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
}

.section-highlight {
    background: radial-gradient(circle at top left, rgba(249, 211, 107, 0.16), transparent 55%),
                var(--bg-highlight);
}

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
}

/* Cartes & grilles */
.card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 16px 16px 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.card h3 {
    margin-top: 0;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

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

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 18px;
}

.pill-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.pill-card h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

/* Listes */
.list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0;
}

.list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
}

/* Timeline */
.timeline {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
}

.timeline li {
    border-left: 2px solid rgba(255, 255, 255, 0.14);
    padding-left: 10px;
    margin-left: 4px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.time-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

/* Agenda */
.card-agenda {
    background: linear-gradient(135deg, rgba(34, 17, 60, 0.96), rgba(8, 5, 22, 0.96));
}

.agenda-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.agenda-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.agenda-list li:last-child {
    border-bottom: none;
}

.agenda-date {
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary);
    align-self: flex-start;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    font-size: 0.85rem;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 8px 10px 10px;
    color: var(--text-muted);
}

.gallery-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pricing-card {
    background: var(--bg-card);
    padding: 18px 16px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.16);
    position: relative;
}

.pricing-card-highlight {
    background: radial-gradient(circle at top, rgba(249, 211, 107, 0.14), transparent 60%),
                var(--bg-highlight);
    box-shadow: 0 20px 40px rgba(249, 211, 107, 0.28);
}

.pricing-card .badge {
    position: absolute;
    top: 10px;
    right: 14px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: var(--primary);
    color: #241418;
}

.pricing-card .price {
    margin: 8px 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.center {
    text-align: center;
    margin-top: 16px;
}

/* Formulaire de contact */
.contact-form {
    background: var(--bg-card);
    padding: 14px 16px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 3, 10, 0.9);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(249, 211, 107, 0.3);
}

/* Footer */
.main-footer {
    padding: 18px 7vw 26px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at top, rgba(12, 7, 28, 0.98), rgba(5, 3, 10, 0.98));
}

.main-footer a {
    color: var(--primary);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .two-columns,
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .main-header {
        padding-inline: 5vw;
    }
    .logo-title {
        font-size: 1.05rem;
    }
    .logo-subtitle {
        font-size: 0.6rem;
    }
    .nav-toggle-label {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 60px;
        right: 5vw;
        background: rgba(5, 3, 10, 0.98);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        padding: 10px 10px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.7);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    }
    .nav-toggle:checked ~ .main-nav {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .hero {
        padding-inline: 5vw;
    }
    .page {
        padding-inline: 5vw;
    }
    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .grid-3,
    .grid-4,
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
