/*
Theme Name: Chipo & Cie - Elementor Ready
Theme URI: https://chipocie.com
Author: Chipo & Cie
Author URI: https://chipocie.com
Description: Thème WordPress personnalisé pour Chipo & Cie, entièrement compatible avec Elementor. Modifiez tout visuellement : couleurs, polices, espacements, sections.
Version: 2.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chipo-cie
Tags: elementor, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===================================
   VARIABLES CSS GLOBALES
   Modifiables via Elementor ou Customizer
   =================================== */

:root {
    /* Couleurs principales */
    --primary: #51a4b4;
    --primary-dark: #3d8896;
    --primary-light: #6ec3d4;
    
    /* Couleurs d'accent */
    --accent-orange: #ff6b35;
    --accent-yellow: #ffd93d;
    --accent-green: #6bcf7f;
    
    /* Couleurs neutres */
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #95a5a6;
    --white: #ffffff;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Typographie */
    --font-heading: 'Righteous', cursive;
    --font-body: 'Outfit', sans-serif;
    
    /* Tailles de police */
    --text-xs: 0.875rem;
    --text-sm: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.5rem;
    --text-xl: 2rem;
    --text-2xl: 2.5rem;
    --text-3xl: 3rem;
    
    /* Bordures */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 50%;
    
    /* Ombres */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===================================
   RESET & BASE
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   HEADER PAR DÉFAUT (si pas Elementor)
   =================================== */

.main-navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.nav-menu .menu-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu .menu-list a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu .menu-list a:hover {
    color: var(--primary);
}

/* ===================================
   CONTENU PRINCIPAL
   =================================== */

.site-main {
    padding-top: 80px; /* Pour compenser le header fixe */
}

.elementor-full-width {
    padding-top: 0;
}

/* Compatibilité Elementor */
.elementor-page .site-main {
    padding-top: 0;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===================================
   FOOTER PAR DÉFAUT (si pas Elementor)
   =================================== */

#site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 5%;
    text-align: center;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
}

/* ===================================
   UTILITAIRES
   =================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

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

.hidden {
    display: none;
}

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

@media (max-width: 768px) {
    .nav-menu .menu-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* ===================================
   COMPATIBILITÉ ELEMENTOR
   Suppression des marges par défaut
   =================================== */

.elementor-widget-container > *:first-child {
    margin-top: 0;
}

.elementor-widget-container > *:last-child {
    margin-bottom: 0;
}

/* Support des colonnes Elementor */
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 10px;
}
