/* ===========================================
   DECIMUS.FR - CSS Optimisé & Responsive
   =========================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Wrapper */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Section */
.main-section {
    flex: 1;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px 0 40px;
}

@media (max-width: 768px) {
    .main-section {
        background-attachment: scroll;
    }
}

/* Hero Content */
.hero-content {
    text-align: center;
    padding: 20px 0;
}

.hero-image {
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

/* Title Section */
.title-section {
    text-align: center;
    padding: 30px 20px;
}

.title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* Footer Section */
.footer-section {
    background: #1a1a1a;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-text {
    flex: 1;
    min-width: 250px;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Bottom Footer */
.bottom-footer {
    background: #0b0b0b;
    padding: 20px 0;
}

.bottom-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.copyright {
    color: #ffffff;
    font-size: 0.85rem;
}

.copyright a {
    color: #00aeef;
    text-decoration: underline;
}

.copyright a:hover,
.copyright a:focus-visible {
    color: #f5c400;
    outline: none;
}

.copyright .icon-heart {
    color: #e74c3c;
}

.anniversary-text {
    color: #888;
    font-size: 0.9rem;
}

/* Social Icons SVG fallback */
.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

/* Tablets */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        padding: 0;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 10px 0;
    }
    
    .title-section {
        padding: 20px 15px;
    }
    
    .footer-section {
        padding: 25px 0;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .footer-logo img {
        max-width: 180px;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-image {
        border-radius: 4px;
    }
    
    .title-section {
        padding: 15px 10px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
