/* ===== VARIABLES ===== */
:root {
    --bg-dark: #1e1e1e;
    --bg-dark-2: #161616;
    --bg-dark-3: #0f0f0f;
    --text-light: #f1f1f1;
    --accent: #f39c12;
    --accent-2: #e67e22;
    --accent-3: #d35400;
    --text-muted: #bbb;
    --text-dim: #ddd;
    --text-faint: #aaa;
    --price-gold: #ffd166;
    --header-height: 90px;
}

/* ===== RESET DE BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
}

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

/* ===== HEADER ===== */
.header {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-container {
    max-width: 1200px;
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    display: block;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover img {
    transform: scale(1.1);
}

.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

/* --- Menu burger (mobile) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(243, 156, 18, 0.1);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(243, 156, 18, 0.2);
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Regroupement nav + contact + bouton pizza ---
   display:contents "déballe" le conteneur sur desktop : nav et header-utility
   deviennent chacun des éléments de la grille du header, ce qui permet à la
   nav d'être réellement centrée entre le logo et le bloc téléphone/bouton,
   quelle que soit la largeur de chacun. */
.header-menu {
    display: contents;
}

.nav {
    justify-self: center;
}

.header-utility {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-self: end;
}

.nav-backdrop {
    display: none;
}

/* --- Navigation --- */
.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav a {
    position: relative;
    display: inline-block;
    padding: 4px 2px;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--accent);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* --- Contact --- */
.header-info a {
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.header-info a:hover {
    color: var(--accent);
}

/* --- Bouton pizza --- */
.btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--accent), var(--accent-3));
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn:hover {
    color: #fff;
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Effet de reflet qui balaie le bouton au survol */
.btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: rotate(25deg) translateX(100%);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    background-image: url('../IMG/Fond.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.6) 0%, rgba(15, 15, 15, 0.85) 100%);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

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

.hero-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-tagline span {
    white-space: nowrap;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-outline::before {
    display: none;
}

/* ===== PAGE RESTAURANT ===== */
.page-hero-photo {
    position: relative;
    overflow: hidden;
    height: calc(100vh - var(--header-height));
    background-image: url('../IMG/Fond.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.page-hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.6) 0%, rgba(15, 15, 15, 0.85) 100%);
}

.page-hero-photo-container {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.page-hero-photo-container h1 {
    font-size: 2.4rem;
    margin: 15px 0;
}

.page-hero-photo-container p {
    color: var(--text-dim);
    font-size: 1.05rem;
}

.page-hero-photo-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 40px;
    z-index: 1;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(243, 156, 18, 0.6);
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent);
    font-size: 1.6rem;
    box-shadow: 0 0 24px rgba(243, 156, 18, 0.35);
    animation: scroll-indicator-bounce 2s ease-in-out infinite;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.scroll-indicator:hover {
    border-color: var(--accent);
    background: rgba(243, 156, 18, 0.2);
    color: var(--accent-2);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.5);
}

@keyframes scroll-indicator-bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-indicator {
        animation: none;
    }
}

/* ===== PAGE INTERNE (Restaurant / Épicerie / Événements) ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.page-hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(243, 156, 18, 0.16), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(230, 126, 34, 0.14), transparent 40%);
}

.page-hero-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2.2rem;
    margin: 15px 0;
}

.page-hero p {
    color: var(--text-dim);
}

/* --- Contenu légal (mentions légales...) --- */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-dim);
    line-height: 1.7;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 1.3rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content ul {
    list-style: none;
    margin-bottom: 14px;
}

.legal-content ul li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.legal-content ul li:last-child {
    border-bottom: none;
}

.legal-content strong {
    color: var(--text-light);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--accent-2);
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h1 span {
        display: block;
    }

    .hero-tagline span {
        padding: 4px 12px;
        font-size: 0.88rem;
    }

    .page-hero-photo {
        padding: 50px 16px;
    }

    .page-hero-photo-container h1 {
        font-size: 1.9rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .scroll-indicator {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        bottom: 24px;
    }
}

.section {
    padding: 60px 20px;
    scroll-margin-top: var(--header-height);
}

.section--alt {
    background: var(--bg-dark-2);
}

.section--decorated {
    position: relative;
    overflow: hidden;
}

.section--decorated::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(243, 156, 18, 0.14), transparent 35%),
        radial-gradient(circle at 88% 25%, rgba(230, 126, 34, 0.12), transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(211, 84, 0, 0.1), transparent 40%);
}

.section--decorated::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 25%,
        var(--accent-2) 50%,
        var(--accent-3) 75%,
        transparent 100%);
    animation: shimmer 3s linear infinite;
}

.section--full {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.section--full .section-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    width: 100%;
    padding: 40px 0;
}

.floating-icons {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.08;
    animation: floatAround 20s infinite ease-in-out;
}

.floating-icon.icon-1 { top: 10%; left: 8%; animation-delay: 0s; }
.floating-icon.icon-2 { top: 18%; right: 10%; animation-delay: 2s; }
.floating-icon.icon-3 { bottom: 15%; left: 15%; animation-delay: 4s; }
.floating-icon.icon-4 { top: 55%; right: 8%; animation-delay: 6s; }
.floating-icon.icon-5 { bottom: 20%; right: 20%; animation-delay: 8s; }
.floating-icon.icon-6 { top: 40%; left: 12%; animation-delay: 10s; }

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -30px) rotate(90deg) scale(1.2); }
    50% { transform: translate(-20px, 20px) rotate(180deg) scale(0.9); }
    75% { transform: translate(20px, 30px) rotate(270deg) scale(1.1); }
}

.section--decorated .section-container {
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.4);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-heading {
    text-align: center;
    margin-bottom: 25px;
}

.section-heading h2 {
    font-size: 1.8rem;
    margin-top: 12px;
}

@media (max-width: 480px) {
    .section {
        padding: 45px 16px;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }
}

.teaser-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.teaser-cards--4 {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.teaser-cards--4 .feature-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(243, 156, 18, 0.4);
}

.feature-card--highlight {
    background: rgba(243, 156, 18, 0.06);
    border-color: rgba(243, 156, 18, 0.3);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* --- Horaires --- */
.schedule-item {
    max-width: 650px;
    margin: 0 auto;
    padding: 32px 38px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.08), rgba(230, 126, 34, 0.05));
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 14px;
}

.schedule-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.schedule-row:hover {
    background: rgba(243, 156, 18, 0.1);
    transform: translateX(5px);
}

.schedule-row.closed {
    border-left-color: #e74c3c;
    opacity: 0.7;
}

.schedule-day {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.1rem;
}

.schedule-row.closed .schedule-day {
    color: #e74c3c;
}

.schedule-hours {
    color: var(--text-dim);
    font-size: 1.05rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .schedule-item {
        padding: 22px 16px;
    }

    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 14px;
    }

    .schedule-hours {
        white-space: normal;
    }
}

/* --- Carte / Menu --- */
.menu-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.menu-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.menu-nav-btn {
    opacity: 0.5;
}

.menu-nav-btn.is-active {
    opacity: 1;
}

.menu-nav--sub {
    gap: 8px;
    margin-bottom: 20px;
}

.menu-nav--sub .menu-nav-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.menu-page h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin: 25px 0 12px;
}

.menu-page h3:first-child {
    margin-top: 0;
}

.menu-list {
    list-style: none;
    column-count: 2;
    column-gap: 30px;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    break-inside: avoid;
}

.menu-price {
    color: var(--price-gold);
    font-weight: 700;
    white-space: nowrap;
}

.accompagnement-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-faint);
    margin-top: 8px;
}

@media (max-width: 700px) {
    .menu-list {
        column-count: 1;
    }
}

/* ===== POPUP PIZZA ===== */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

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

.popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    padding: 50px 40px 40px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(243, 156, 18, 0.3);
    overflow-y: auto;
    animation: appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.popup-content::-webkit-scrollbar {
    width: 10px;
}

.popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 10px;
}

@keyframes appear {
    from { transform: scale(0.8) translateY(-50px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.popup-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--accent);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 50%;
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    color: #fff;
    background: rgba(243, 156, 18, 0.8);
    border-color: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

.pizza-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    list-style: none;
}

.pizza-divider {
    grid-column: 1 / -1;
    height: 1px;
    margin: 6px 0;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.4), transparent);
}

.pizza-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pizza-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.pizza-item:hover {
    background: rgba(243, 156, 18, 0.08);
    border-color: rgba(243, 156, 18, 0.4);
    transform: translateY(-3px);
}

.pizza-item:hover::before {
    transform: scaleY(1);
}

.pizza-info {
    flex: 1;
}

.pizza-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.pizza-desc {
    font-size: 0.9rem;
    color: var(--text-faint);
    font-weight: 300;
    line-height: 1.4;
}

.pizza-price {
    flex-shrink: 0;
    padding: 8px 16px;
    min-width: 80px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--price-gold);
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 8px;
}

@media (max-width: 640px) {
    .popup-content {
        width: 94%;
        padding: 40px 18px 24px;
        border-radius: 16px;
    }

    .popup-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .popup-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

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

    .pizza-item {
        padding: 14px 16px;
    }

    .menu-nav {
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .pizza-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pizza-price {
        width: 100%;
    }
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-3) 100%);
    color: #fff;
    padding: 40px 20px 20px;
}

/* Liseré animé en haut du footer */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 25%,
        var(--accent-2) 50%,
        var(--accent-3) 75%,
        transparent 100%);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.footer-col p,
.footer-col address {
    color: var(--text-dim);
    line-height: 1.8;
    font-style: normal;
}

.footer-col address a,
.footer-col ul li a {
    position: relative;
    display: inline-block;
    padding: 4px 0;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-col address a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-col address a:focus,
.footer-col ul li a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin: 8px 0;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.footer-newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.footer-newsletter-form .btn {
    border: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.footer-newsletter-form .btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.footer-newsletter-form input.is-shaking {
    animation: newsletter-shake 0.4s ease;
    border-color: #e74c3c;
}

.footer-newsletter-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    max-height: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--price-gold);
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

.footer-newsletter-status.is-visible {
    margin-top: 10px;
    max-height: 60px;
    opacity: 1;
    animation: newsletter-status-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-newsletter-status--error {
    color: #e74c3c;
}

.footer-newsletter-status::before {
    content: "🎉";
}

.footer-newsletter-status--error::before {
    content: "⚠️";
}

@keyframes newsletter-status-pop {
    0% {
        transform: translateY(-8px) scale(0.92);
        opacity: 0;
    }

    60% {
        transform: translateY(2px) scale(1.03);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes newsletter-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .footer-newsletter-status.is-visible,
    .footer-newsletter-form input.is-shaking {
        animation: none;
    }
}

.footer-col ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.3s ease-in-out;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-col ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
    transition: color 0.25s ease;
}

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

.footer-credit {
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: underline;
    transition: color 0.25s ease;
}

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

@media (max-width: 640px) {
    .footer {
        padding: 36px 20px 20px;
    }

    .footer-container {
        text-align: center;
        gap: 36px;
    }

    .footer-col address a,
    .footer-col ul li a {
        padding-left: 0;
    }

    .footer-col address a:hover,
    .footer-col ul li a:hover {
        padding-left: 0;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        padding: 10px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    /* En dessous de 1024px, le menu redevient le vrai conteneur du tiroir
       (plus "déballé"), et le groupe téléphone/bouton redevient transparent
       pour que ses deux éléments s'empilent normalement avec le reste. */
    .header-menu {
        display: flex;
    }

    .header-utility {
        display: contents;
    }

    /* Fond assombri derrière le panneau, ne gêne jamais le reste de la page tant qu'il est fermé */
    .nav-backdrop {
        display: block;
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 150;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* Le menu est un panneau fixe qui glisse par-dessus la page, en overlay :
       il ne fait jamais partie du flux normal et n'affecte donc jamais la mise en page. */
    .header-menu {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        z-index: 160;
        width: min(300px, 80vw);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 28px;
        padding: 40px 32px;
        background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-3) 100%);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .header-menu.is-open {
        transform: translateX(0);
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav a {
        font-size: 1.1rem;
    }

    .header-menu .btn {
        width: 100%;
        text-align: center;
    }
}

body.nav-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .header-menu,
    .nav-backdrop {
        transition: none;
    }

    .nav-toggle-bar {
        transition: none;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 80px;
        height: 80px;
    }

    .logo span {
        font-size: 1.6rem;
    }
}

/* ===== ADMIN ===== */
.admin-body {
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.admin-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.admin-brand span {
    color: var(--accent);
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav a {
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.25s ease;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
    color: var(--accent);
}

.admin-logout .btn-outline {
    padding: 8px 14px;
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 15px 20px;
    }

    .admin-brand {
        text-align: center;
    }

    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }

    .admin-logout {
        display: flex;
        justify-content: center;
    }
}

.admin-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.admin-alert--success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #81c784;
}

.admin-alert--error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e57373;
}

.admin-alert--info {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.4);
    color: var(--accent);
}

.admin-auth-card,
.admin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
}

.admin-auth-card {
    max-width: 400px;
    margin: 40px auto;
}

.admin-auth-card h1,
.admin-card h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

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

.admin-card-header h1 {
    margin-bottom: 0;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.admin-tab {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tab.is-active {
    color: var(--accent);
    border-color: rgba(243, 156, 18, 0.4);
    background: rgba(243, 156, 18, 0.1);
}

.admin-subheading {
    color: var(--accent);
    font-size: 1.05rem;
    margin: 25px 0 10px;
}

.admin-subheading:first-of-type {
    margin-top: 0;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form label {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 10px;
}

.admin-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-form select option {
    color: #1a1a1a;
}

.admin-form-subgroup {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.admin-form-subgroup.is-hidden {
    display: none;
}

.admin-form-subgroup > [data-recurrence-field] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form-subgroup > [data-recurrence-field].is-hidden {
    display: none;
}

.admin-form-subgroup label {
    margin-top: 6px;
}

.admin-form-subgroup label:first-child {
    margin-top: 0;
}

.admin-form-hint {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.admin-form .btn {
    margin-top: 20px;
    align-self: flex-start;
    border: none;
}

.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.4);
    color: var(--price-gold);
    font-size: 0.72rem;
    font-weight: 600;
}

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

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table th {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.admin-table-actions form {
    display: inline;
}

.btn-danger {
    background: transparent;
    color: #e57373;
    border: 2px solid rgba(231, 76, 60, 0.5);
    box-shadow: none;
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #fff;
}

.btn-danger::before {
    display: none;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .admin-main {
        padding: 30px 16px;
    }

    .admin-card,
    .admin-auth-card {
        padding: 20px;
    }

    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-card-header .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    /* Le tableau devient une liste de cartes : chaque <tr> est une carte,
       chaque <td> affiche son libellé de colonne au-dessus de sa valeur. */
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 14px;
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.02);
    }

    .admin-table tr:last-child {
        margin-bottom: 0;
    }

    .admin-table td {
        padding: 7px 0;
        border-bottom: none;
        white-space: normal;
    }

    .admin-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-dim);
    }

    .admin-table td.admin-table-actions {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 8px;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .admin-table-actions form,
    .admin-table-actions > a {
        display: block;
        min-width: 0;
    }

    .admin-table-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, var(--bg-dark-2) 0%, var(--bg-dark-3) 100%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-mark {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid rgba(243, 156, 18, 0.15);
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    animation: preloader-spin 0.9s linear infinite;
}

.preloader-logo {
    position: relative;
    z-index: 1;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(243, 156, 18, 0.4);
    animation: preloader-pulse 1.6s ease-in-out infinite;
}

.preloader-bar {
    margin-top: 36px;
    width: 220px;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    animation: preloader-bar-sweep 1.1s ease-in-out infinite;
}

@keyframes preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes preloader-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes preloader-bar-sweep {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(60%);
    }

    100% {
        transform: translateX(250%);
    }
}

@media (prefers-reduced-motion: reduce) {

    .preloader-ring,
    .preloader-logo,
    .preloader-bar span {
        animation: none;
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--bg-dark);
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* La bulle "événement à venir" occupe le coin bas-droit : on remonte le bouton au-dessus */
body:has(.event-bubble) .back-to-top {
    bottom: 100px;
}

.back-to-top:hover {
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.45);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
}

@media (max-width: 640px) {
    .back-to-top {
        display: none;
    }
}

/* Bulle "événement à venir" (toutes les pages sauf Événements) */
.event-bubble {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px 16px 18px;
    border-radius: 999px;
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: transform 0.3s ease, box-shadow 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.event-bubble.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    animation:
        event-bubble-float 2.4s ease-in-out 0.3s infinite,
        event-bubble-glow 2.4s ease-in-out 0.3s infinite;
}

.event-bubble:hover {
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.6);
    transform: translateY(-3px) scale(1.03);
}

.event-bubble-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.event-bubble-ping {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e74c3c;
    border: 2px solid var(--bg-dark-2);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: event-bubble-ping 1.8s ease-out infinite;
}

@keyframes event-bubble-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes event-bubble-glow {

    0%,
    100% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(243, 156, 18, 0.45);
    }

    50% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(243, 156, 18, 0);
    }
}

@keyframes event-bubble-ping {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .event-bubble,
    .event-bubble.is-visible,
    .event-bubble-ping {
        animation: none;
    }
}

@media (max-width: 640px) {
    .event-bubble {
        right: 16px;
        bottom: 16px;
        padding: 13px 18px 13px 14px;
        font-size: 0.88rem;
    }

    .event-bubble-text {
        max-width: 150px;
    }
}

/* Calendrier des événements */
.calendar-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

#calendrier.is-loading .calendar-layout {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.calendar {
    flex: 2;
    min-width: 320px;
    background: var(--bg-dark-2);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

.calendar-header h3 {
    color: var(--accent);
    font-size: 1.3rem;
    text-transform: capitalize;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: var(--accent);
    transition: background 0.2s ease, color 0.2s ease;
}

.calendar-nav:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

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

.calendar-day {
    position: relative;
    min-height: 78px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    overflow: hidden;
}

.calendar-day.is-outside {
    opacity: 0.35;
}

.calendar-day.is-today {
    border: 2px solid var(--accent);
}

.calendar-day.has-events {
    cursor: pointer;
    background: rgba(243, 156, 18, 0.08);
    transition: background 0.2s ease;
}

.calendar-day.has-events:hover,
.calendar-day.has-events:focus-visible {
    background: rgba(243, 156, 18, 0.18);
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.calendar-day-pill {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 5px;
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day-more {
    font-size: 0.68rem;
    color: var(--text-dim);
}

.calendar-upcoming {
    flex: 1;
    min-width: 260px;
    background: var(--bg-dark-2);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.calendar-upcoming h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.calendar-upcoming-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-upcoming-item:last-child {
    border-bottom: none;
}

.calendar-upcoming-date {
    flex-shrink: 0;
    min-width: 56px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(243, 156, 18, 0.12);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.calendar-upcoming-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.calendar-upcoming-time {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.calendar-upcoming-empty {
    color: var(--text-dim);
}

/* Bulle "s'abonner à la newsletter" (page Événements) */
.newsletter-bubble {
    position: fixed;
    left: 28px;
    bottom: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px 16px 18px;
    border-radius: 999px;
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: transform 0.3s ease, box-shadow 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-bubble.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    animation:
        event-bubble-float 2.4s ease-in-out 0.3s infinite,
        event-bubble-glow 2.4s ease-in-out 0.3s infinite;
}

.newsletter-bubble:hover {
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.6);
    transform: translateY(-3px) scale(1.03);
}

.newsletter-bubble-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.newsletter-bubble-ping {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e74c3c;
    border: 2px solid var(--bg-dark-2);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: event-bubble-ping 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {

    .newsletter-bubble,
    .newsletter-bubble.is-visible,
    .newsletter-bubble-ping {
        animation: none;
    }
}

@media (max-width: 640px) {
    .newsletter-bubble {
        left: 16px;
        bottom: 16px;
        padding: 13px 18px 13px 14px;
        font-size: 0.88rem;
    }

    .newsletter-bubble-text {
        max-width: 150px;
    }
}

.popup-content--narrow {
    max-width: 560px;
}

.event-day-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-day-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.event-day-item-time {
    flex-shrink: 0;
    min-width: 70px;
    color: var(--accent);
    font-weight: 600;
}

.event-day-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.event-day-item-location {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .calendar,
    .calendar-upcoming {
        flex: 1 1 100%;
        min-width: 0;
        padding: 18px;
    }

    .calendar-day {
        min-height: 60px;
        padding: 5px;
    }

    .calendar-day-pill,
    .calendar-day-more {
        display: none;
    }

    .calendar-day.has-events {
        background: rgba(243, 156, 18, 0.16);
        border: 1px solid rgba(243, 156, 18, 0.35);
    }

    .calendar-day.has-events .calendar-day-number {
        color: var(--accent);
        font-weight: 700;
    }

    .calendar-day.has-events::after {
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: linear-gradient(45deg, var(--accent), var(--accent-2));
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.5);
        animation: calendar-day-dot-pulse 1.8s ease-out infinite;
    }

    /* Un seul événement : simple point */
    .calendar-day.has-events[data-event-count="1"]::after {
        content: "";
        width: 9px;
        height: 9px;
        bottom: 7px;
    }

    /* Plusieurs événements : pastille avec le nombre, pour qu'on sache qu'il y en a plusieurs */
    .calendar-day.has-events:not([data-event-count="1"])::after {
        content: attr(data-event-count);
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 1;
        color: var(--bg-dark);
    }

    @keyframes calendar-day-dot-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.5);
        }

        70% {
            box-shadow: 0 0 0 6px rgba(243, 156, 18, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .calendar-day.has-events::after {
            animation: none;
        }
    }
}
