:root {
    --bg: #0f1115;
    --surface: #171a21;
    --border: #262b36;
    --text: #e8eaf0;
    --muted: #9aa3b2;
    --accent: #f5b301;
    --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10;
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.logo {
    font-weight: 800; font-size: 1.15rem; letter-spacing: 2px;
    color: var(--text); text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--muted); text-decoration: none; font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .badge {
    display: inline-block; border: 1px solid var(--border);
    border-radius: 999px; padding: 6px 16px; font-size: 0.85rem;
    color: var(--muted); margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 800; letter-spacing: -1px; line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    color: var(--muted); max-width: 620px; margin: 0 auto 36px;
    font-size: 1.1rem;
}
.btn {
    display: inline-block; background: var(--accent); color: #141414;
    font-weight: 700; padding: 14px 32px; border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.2s;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(245, 179, 1, 0.32);
}
.btn.secondary {
    background: transparent; color: var(--text);
    border: 1px solid var(--border); margin-left: 12px;
}
.btn.secondary:hover {
    background: transparent; border-color: var(--accent); color: var(--accent);
    box-shadow: none;
}

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 36px; }
.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

/* Cartes équipement */
.card {
    display: block; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; cursor: pointer;
    transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 179, 1, 0.65);
    box-shadow: var(--shadow);
}
.card-media {
    position: relative; aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #1d222c, #12151b);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.card-media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.card:hover .card-media img {
    transform: scale(1.07);
    filter: brightness(1.07) saturate(1.05);
}
.card-fallback { font-size: 3rem; }
.card-body { padding: 22px 22px 26px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card-link {
    display: inline-block; margin-top: 14px;
    color: var(--accent); font-size: 0.88rem; font-weight: 600;
    transition: transform 0.3s var(--ease);
}
.card:hover .card-link { transform: translateX(6px); }

/* Contact */
.contact {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 48px 32px; text-align: center;
}
.contact h2 { font-size: 1.6rem; margin-bottom: 12px; }
.contact p { color: var(--muted); margin-bottom: 28px; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 0; text-align: center;
    color: var(--muted); font-size: 0.88rem;
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .btn.secondary { margin-left: 0; margin-top: 12px; }
}

/* ===== Styles page détail ===== */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted); text-decoration: none; font-size: 0.92rem;
    transition: color 0.2s, transform 0.3s var(--ease);
}
.back-link:hover { color: var(--accent); transform: translateX(-4px); }
.detail-hero {
    display: grid; grid-template-columns: 1.05fr 1fr;
    gap: 44px; align-items: center; margin-top: 12px;
}
.detail-media {
    position: relative; aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #1d222c, #12151b);
    border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.detail-media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.detail-media .card-fallback { font-size: 4.5rem; }
.detail-icon {
    width: 54px; height: 54px; font-size: 1.6rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 13px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
}
.detail-info h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800; letter-spacing: -0.5px; line-height: 1.15;
    margin-bottom: 10px;
}
.detail-tagline {
    color: var(--accent); font-weight: 600;
    font-size: 1.12rem; margin-bottom: 24px;
}
.highlights {
    list-style: none; display: grid;
    grid-template-columns: 1fr 1fr; gap: 10px 16px;
    margin-bottom: 30px;
}
.highlights li {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px; font-size: 0.92rem;
}
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-cta .btn.secondary { margin-left: 0; }
.detail-section { border-top: 1px solid var(--border); }
.content-block { max-width: 760px; }
.content-block p { color: var(--muted); font-size: 1.03rem; margin-top: 16px; }
.spec-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}
.spec-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px;
}
.spec-item .label {
    display: block; color: var(--muted); font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.spec-item .value { font-weight: 600; font-size: 0.97rem; }
.note-box {
    background: rgba(245, 179, 1, 0.07);
    border: 1px solid rgba(245, 179, 1, 0.45);
    border-radius: 14px; padding: 22px 26px;
}
.note-title { color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.note-box p { color: var(--text); font-size: 0.97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 8px 18px;
    font-size: 0.9rem; color: var(--text);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip:hover {
    border-color: rgba(245, 179, 1, 0.6);
    transform: translateY(-2px);
}
@media (max-width: 860px) {
    .detail-hero { grid-template-columns: 1fr; gap: 28px; }
    .highlights { grid-template-columns: 1fr; }
}

/* ===== Tarifs ===== */
.price-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(15, 17, 21, 0.88);
    border: 1px solid rgba(245, 179, 1, 0.55);
    color: var(--accent); border-radius: 999px;
    padding: 5px 14px; font-size: 0.85rem; font-weight: 700;
    backdrop-filter: blur(4px);
}
.price-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px; max-width: 760px;
}
.price-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 26px 20px; text-align: center;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 179, 1, 0.65);
    box-shadow: var(--shadow);
}
.price-amount {
    color: var(--accent); font-size: 2.2rem; font-weight: 800;
    letter-spacing: -1px; line-height: 1.1;
}
.price-amount span { font-size: 1.2rem; font-weight: 700; }
.price-label { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.price-note {
    color: var(--muted); font-size: 0.85rem;
    max-width: 760px; margin-top: 16px;
}

/* ===== Disponibilités / Google Calendar ===== */
.calendar-container { max-width: 1280px; }
.calendar-heading {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px;
}
.calendar-heading .section-sub { margin-bottom: 24px; }
.calendar-live {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    margin-bottom: 24px; padding: 6px 13px;
    color: #86d48a; background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 999px; font-size: 0.8rem; font-weight: 700;
}
.calendar-live i {
    width: 7px; height: 7px; border-radius: 50%;
    background: #65c96b; box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.13);
}
.calendar-embed {
    width: 100%; height: 720px; margin-inline: auto;
    overflow: hidden;
    background: #11141a;
    border: 1px solid rgba(245, 179, 1, 0.24);
    border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.calendar-embed iframe {
    display: block; width: 100%; height: 100%; border: 0;
    filter: invert(90%) hue-rotate(180deg) saturate(0.85) contrast(0.92);
}
.calendar-note {
    max-width: 760px; margin: 18px auto 0;
    color: var(--muted); text-align: center; font-size: 0.88rem;
}
.calendar-unavailable {
    max-width: 720px; margin-inline: auto; padding: 48px 28px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; text-align: center;
}
.calendar-unavailable strong { display: block; font-size: 1.1rem; }
.calendar-unavailable p { color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) {
    .calendar-heading { align-items: flex-start; flex-direction: column; gap: 0; }
    .calendar-live { margin-top: -10px; }
    .calendar-embed { height: 620px; border-radius: 12px; }
}

/* ===== Packs ===== */
.pack-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pack-card {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 26px 24px;
    transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.pack-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 179, 1, 0.65);
    box-shadow: var(--shadow);
}
.pack-card.is-highlight {
    border-color: rgba(245, 179, 1, 0.55);
    background:
        linear-gradient(180deg, rgba(245, 179, 1, 0.06), transparent 45%),
        var(--surface);
}
.pack-head { display: flex; align-items: flex-start; gap: 12px; }
.pack-icon { font-size: 1.7rem; line-height: 1.2; }
.pack-heading { flex: 1; min-width: 0; }
.pack-head h3 { font-size: 1.12rem; }
.pack-tagline { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }
.pack-badge {
    flex: none;
    background: rgba(245, 179, 1, 0.12);
    border: 1px solid rgba(245, 179, 1, 0.55);
    color: var(--accent); border-radius: 999px;
    padding: 4px 11px; font-size: 0.78rem; font-weight: 700;
    white-space: nowrap;
}
.pack-popular {
    align-self: flex-start;
    background: var(--accent); color: #141414;
    border-radius: 999px; padding: 4px 13px;
    font-size: 0.74rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.pack-list { list-style: none; display: grid; gap: 7px; }
.pack-list li { font-size: 0.92rem; }
.pack-list li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.pack-prices {
    border-top: 1px solid var(--border); padding-top: 14px;
    display: grid; gap: 9px;
}
.pack-rate {
    display: flex; justify-content: space-between;
    align-items: baseline; gap: 10px;
}
.pack-rate-label { color: var(--muted); font-size: 0.88rem; }
.pack-rate-values s { color: var(--muted); font-size: 0.85rem; margin-right: 7px; }
.pack-rate-values strong {
    color: var(--accent); font-size: 1.28rem; font-weight: 800;
}
.pack-saving {
    align-self: center; text-align: center;
    font-size: 0.83rem; font-weight: 700; color: #86d48a;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.45);
    border-radius: 999px; padding: 6px 16px;
}
.pack-cta { display: block; width: 100%; text-align: center; }

/* ===== Encadré packs sur les pages détail ===== */
.bundle-box {
    margin-top: 20px; max-width: 760px;
    border: 1px dashed rgba(245, 179, 1, 0.5);
    background: rgba(245, 179, 1, 0.05);
    border-radius: 14px; padding: 18px 20px;
}
.bundle-title {
    color: var(--accent); font-weight: 700;
    font-size: 0.95rem; margin-bottom: 12px;
}
.bundle-line {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 16px; margin-top: 9px;
    text-decoration: none; color: var(--text);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
        box-shadow 0.25s;
}
.bundle-line:hover {
    border-color: rgba(245, 179, 1, 0.6);
    transform: translateX(5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.bundle-left { min-width: 0; }
.bundle-name { display: block; font-weight: 700; font-size: 0.95rem; }
.bundle-compo {
    display: block; color: var(--muted);
    font-size: 0.8rem; margin-top: 2px;
}
.bundle-right {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; white-space: nowrap; margin-left: auto;
}
.bundle-right s { color: var(--muted); }
.bundle-right strong { color: var(--accent); font-size: 1.08rem; }
.bundle-unit { color: var(--muted); font-size: 0.8rem; }
.bundle-save {
    background: rgba(76, 175, 80, 0.14);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #86d48a; font-size: 0.78rem; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
}

/* Accessibilité : animations discrétées si préférence système */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .card:hover, .btn:hover, .price-card:hover, .chip:hover,
    .back-link:hover, .card:hover .card-link,
    .card:hover .card-media img, .pack-card:hover, .bundle-line:hover {
        transform: none !important;
    }
}
