@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;500&display=swap');

/* Cap Spartel — page vitrine café */
:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --muted: #999;
    --gold: #c5a059;
    --spacing: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat url('../images/IMAGE PANORAMIQUE.jpeg');
    transform: scale(1.05);
    animation: kenburns 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.hero-logo {
    width: min(180px, 45vw);
    height: auto;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero .tagline {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.hero .intro {
    color: #ccc;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(100%, 360px);
    margin: 0 auto;
}

.btn {
    display: block;
    padding: 18px 24px;
    border: 1px solid var(--gold);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-family: 'Playfair Display', serif;
    transition: var(--transition);
}

.btn:hover,
.btn:active {
    background: var(--gold);
    color: #000;
}

.btn-primary {
    background: var(--gold);
    color: #000;
}

.btn-primary:hover {
    background: #d4b06a;
}

.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes kenburns {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

section {
    padding: 64px var(--spacing);
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-grid img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.about-text p {
    color: #ccc;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 640px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: #111;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .videos {
        grid-template-columns: 1fr 1fr;
    }
}

.videos video {
    width: 100%;
    border-radius: 4px;
    background: #111;
}

.contact {
    text-align: center;
    padding-bottom: 100px;
}

.contact p {
    color: #ccc;
    margin-bottom: 24px;
}

footer {
    text-align: center;
    padding: 24px;
    color: var(--muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 16px;
}

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 16px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 90;
    background: #25d366;
}
