/* MELIBURO - CORE.CSS - Fondations & Layout (400 lignes max) */

/* === VARIABLES SYSTÈME === */
:root {
    /* Couleurs */
    --primary: #0066cc;
    --primary-dark: #004499;
    --secondary: #00a8cc;
    --accent: #ff6b35;
    --success: #00c851;
    
    /* Neutres */
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #343a40;
    --black: #1a1a1a;
    
    /* Espacement (système 8px) */
    --xs: 8px;
    --sm: 16px;
    --md: 24px;
    --lg: 32px;
    --xl: 48px;
    --xxl: 64px;
    
    /* Typo */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 48px;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Rayons */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* === RESET MINIMAL === */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: var(--text-base); line-height: 1.6; color: var(--dark); background: var(--white); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* === LAYOUT SYSTÈME === */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 var(--sm); 
}

.section { 
    padding: var(--xxl) 0; 
}

.bg-light { 
    background: var(--light); 
}

/* === GRILLES === */
.grid { 
    display: grid; 
    gap: var(--lg); 
}

.grid-2 { 
    grid-template-columns: repeat(2, 1fr); 
}

.grid-3 { 
    grid-template-columns: repeat(3, 1fr); 
}

.grid-auto { 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

/* === HEADER === */
.header {
    background: var(--white);
    border-bottom: 1px solid #e9ecef;
    padding: var(--sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--sm);
}

.logo {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-lg);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.brand-text h1 {
    color: var(--primary);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.tagline {
    color: var(--gray);
    font-size: var(--text-sm);
}

.contact-phone {
    color: var(--accent);
    font-weight: 600;
    font-size: var(--text-lg);
    display: block;
    margin-bottom: var(--xs);
}

.contact-email {
    color: var(--primary);
    font-size: var(--text-sm);
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--xxl) 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--md);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--lg);
    opacity: 0.9;
    line-height: 1.5;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--lg);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--lg);
    max-width: 600px;
    margin: var(--xl) auto 0;
}

.feature-item {
    text-align: center;
    padding: var(--md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: var(--text-xl);
    margin-bottom: var(--xs);
    display: block;
}

.feature-text {
    font-size: var(--text-sm);
    font-weight: 600;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--sm);
    margin: var(--xl) 0;
    flex-wrap: wrap;
}

.cta-subtitle {
    margin-top: var(--sm);
    font-size: var(--text-sm);
    opacity: 0.8;
}

/* === FOOTER === */
.footer {
    background: var(--black);
    color: var(--white);
    padding: var(--lg) 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--lg);
    margin-top: var(--sm);
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* === TITRES & TEXTES === */
.section-title {
    text-align: center;
    color: var(--primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--lg);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === UTILITAIRES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Espacements */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--sm); }
.mb-md { margin-bottom: var(--md); }
.mb-lg { margin-bottom: var(--lg); }
.mb-xl { margin-bottom: var(--xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--sm); }
.mt-md { margin-top: var(--md); }
.mt-lg { margin-top: var(--lg); }
.mt-xl { margin-top: var(--xl); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: var(--text-2xl); }
    .section-title { font-size: var(--text-xl); }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    .header-content {
        flex-direction: column;
        gap: var(--sm);
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--sm);
    }
    
    /* Badges hero sur tablette : passage en 1 colonne */
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--md);
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--sm); }
    .section { padding: var(--xl) 0; }
    .hero { padding: var(--xl) 0; min-height: 50vh; }
    .hero h1 { 
        font-size: var(--text-xl); 
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-subtitle { font-size: var(--text-base); }
    
    /* Badges hero sur mobile */
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--sm);
        max-width: 100%;
    }
    
    .feature-item {
        padding: var(--sm);
    }
    
    .feature-text {
        font-size: var(--text-xs);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

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

@keyframes blogFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease-out; }