/* === Reset & base === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    min-height: 100vh;
    color: #2c1810;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* === Bulles flottantes === */
.floating-beers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.floating-beers span {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}
.floating-beers span:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-beers span:nth-child(2) { left: 30%; animation-delay: 4s; }
.floating-beers span:nth-child(3) { left: 50%; animation-delay: 8s; }
.floating-beers span:nth-child(4) { left: 70%; animation-delay: 12s; }
.floating-beers span:nth-child(5) { left: 90%; animation-delay: 16s; }
@keyframes float {
    0%, 100% { transform: translateY(110vh) rotate(0); }
    50% { transform: translateY(-10vh) rotate(360deg); }
}

/* === Layout === */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

/* === Hero === */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
    animation: fadeInUp 0.8s ease both;
}
.hero-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    margin: 0 auto 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(44, 24, 16, 0.25);
    position: relative;
    overflow: hidden;
    background: #fff;
}
.hero-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-image.placeholder {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe4c4 100%);
    display: flex; align-items: center; justify-content: center;
}
.placeholder-content { text-align: center; color: #8b4513; }
.big-emoji { font-size: 5rem; margin-bottom: 1rem; opacity: 0.6; }
.placeholder-content p { font-size: 0.95rem; opacity: 0.7; }
.hero-badge {
    position: absolute;
    bottom: 1rem; right: 1rem;
    background: rgba(44, 24, 16, 0.85);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #2c1810;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #5d3a1f;
    font-style: italic;
}

/* === Sections de contenu === */
.content-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    margin: 1.2rem 0;
    box-shadow: 0 8px 32px rgba(44, 24, 16, 0.1);
    animation: fadeInUp 0.8s ease both;
}
.content-section h1 { font-size: 2rem; margin-bottom: 0.8rem; color: #2c1810; }
.content-section h2 { font-size: 1.5rem; margin-bottom: 0.8rem; color: #2c1810; }
.content-section h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: #2c1810; }
.content-section p { color: #3d2410; }
.content-section ul, .content-section ol {
    padding-left: 1.5rem;
    color: #3d2410;
}
.content-section li { margin: 0.3rem 0; }

/* === Image === */
.block-image figure { margin: 0; }
.block-image img {
    width: 100%; height: auto; display: block;
    border-radius: 12px;
}
.block-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #6b4423;
    margin-top: 0.6rem;
    font-style: italic;
}

/* === Citation === */
.content-section blockquote {
    border-left: 4px solid #d97706;
    padding: 0.5rem 0 0.5rem 1.2rem;
    font-style: italic;
    color: #3d2410;
    font-size: 1.1rem;
}
.content-section blockquote cite {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #6b4423;
    font-style: normal;
}

/* === Séparateur === */
.block-separator {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0.5rem 0;
}
.block-separator hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(44,24,16,0.3), transparent);
}

/* === Bouton === */
.block-button {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    text-align: center;
    padding: 1rem 0;
}
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}
.btn-primary {
    background: #2c1810;
    color: #fff;
}
.btn-primary:hover { background: #d97706; transform: translateY(-2px); }
.btn-secondary {
    background: transparent;
    border: 2px solid #2c1810;
    color: #2c1810;
}
.btn-secondary:hover { background: #2c1810; color: #fff; }

/* === Vidéo === */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* === Galerie === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}
.gallery-item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* === Code === */
.block-code {
    padding: 0;
    overflow: hidden;
}
.block-code pre {
    margin: 0;
    padding: 1.2rem 1.5rem;
    overflow-x: auto;
    background: #0d1117 !important;
    border-radius: 16px;
}
.block-code code {
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === CTA === */
.cta {
    margin: 3rem 0 2rem;
    animation: fadeInUp 0.8s ease both;
}
.cta-box {
    background: linear-gradient(135deg, #2c1810 0%, #5d3a1f 100%);
    color: #fff7e6;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(44, 24, 16, 0.3);
}
.cta-box h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #ffd700;
}
.cta-box p {
    font-size: 1.1rem;
    color: #ffe4c4;
}
.signature {
    margin-top: 1.5rem;
    font-style: italic;
    color: #d4a574;
    font-size: 0.95rem;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: #5d3a1f;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 600px) {
    main { padding: 1rem 1rem 2rem; }
    .content-section { padding: 1.3rem 1.2rem; }
    .cta-box { padding: 1.8rem 1.3rem; }
}
