/*
Theme Name: starter Pro starter
Theme URI: https://votre-site.com
Description: starter enfant professionnel optimisé pour Elementor. Léger, rapide et personnalisable. Idéal pour créer des sites web professionnels gratuitement.
Author: Votre Nom
Author URI: https://votre-site.com
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: starter-pro-starter
Tags: elementor, starter-enfant, responsive, starter, starter-page-templates
*/

/* ==========================================================================
   VARIABLES CSS - Personnalisez vos couleurs ici
   ========================================================================== */

:root {
    /* === COULEURS PRINCIPALES === */
    /* Modifiez ces valeurs pour changer l'apparence de tout le site */
    
    --couleur-principale: #2563eb;        /* Bleu - boutons, liens */
    --couleur-principale-foncee: #1d4ed8;
    --couleur-principale-claire: #3b82f6;
    
    --couleur-secondaire: #64748b;        /* Gris - éléments secondaires */
    --couleur-secondaire-foncee: #475569;
    --couleur-secondaire-claire: #94a3b8;
    
    --couleur-accent: #f59e0b;            /* Orange - accents, CTA */
    --couleur-succes: #10b981;            /* Vert */
    --couleur-erreur: #ef4444;            /* Rouge */
    
    /* === COULEURS DE TEXTE === */
    --texte-principal: #1f2937;           /* Texte normal */
    --texte-clair: #6b7280;               /* Texte secondaire */
    --texte-tres-clair: #9ca3af;          /* Texte désactivé */
    
    /* === COULEURS DE FOND === */
    --fond-principal: #ffffff;
    --fond-alternatif: #f9fafb;
    --fond-sombre: #111827;
    
    /* === BORDURES === */
    --bordure: #e5e7eb;
    --bordure-foncee: #d1d5db;
    
    /* === TYPOGRAPHIE === */
    --police-principale: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --police-titres: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Tailles de texte */
    --taille-xs: 0.75rem;      /* 12px */
    --taille-sm: 0.875rem;     /* 14px */
    --taille-base: 1rem;       /* 16px */
    --taille-lg: 1.125rem;     /* 18px */
    --taille-xl: 1.25rem;      /* 20px */
    --taille-2xl: 1.5rem;      /* 24px */
    --taille-3xl: 1.875rem;    /* 30px */
    --taille-4xl: 2.25rem;     /* 36px */
    
    /* === ESPACEMENTS === */
    --espace-xs: 0.25rem;      /* 4px */
    --espace-sm: 0.5rem;       /* 8px */
    --espace-md: 1rem;         /* 16px */
    --espace-lg: 1.5rem;       /* 24px */
    --espace-xl: 2rem;         /* 32px */
    --espace-2xl: 3rem;        /* 48px */
    
    /* === BORDURES ARRONDIES === */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    
    /* === OMBRES === */
    --ombre-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ombre: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --ombre-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ombre-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --ombre-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* === TRANSITIONS === */
    --transition-rapide: 150ms ease;
    --transition: 300ms ease;
    --transition-lente: 500ms ease;
    
    /* === CONTENEUR === */
    --conteneur-max: 1280px;
}

/* ==========================================================================
   RESET ET BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--police-principale);
    font-size: var(--taille-base);
    line-height: 1.6;
    color: var(--texte-principal);
    background-color: var(--fond-principal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--police-titres);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: var(--espace-md);
    color: var(--texte-principal);
}

h1 { font-size: var(--taille-4xl); }
h2 { font-size: var(--taille-3xl); }
h3 { font-size: var(--taille-2xl); }
h4 { font-size: var(--taille-xl); }
h5 { font-size: var(--taille-lg); }
h6 { font-size: var(--taille-base); }

p {
    margin-top: 0;
    margin-bottom: var(--espace-md);
}

a {
    color: var(--couleur-principale);
    text-decoration: none;
    transition: color var(--transition-rapide);
}

a:hover {
    color: var(--couleur-principale-foncee);
}

/* ==========================================================================
   COMPOSANTS - BOUTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--police-principale);
    font-size: var(--taille-base);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-rapide);
}

.btn-principal {
    background-color: var(--couleur-principale);
    color: #ffffff;
}

.btn-principal:hover {
    background-color: var(--couleur-principale-foncee);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--ombre-md);
}

.btn-secondaire {
    background-color: var(--couleur-secondaire);
    color: #ffffff;
}

.btn-secondaire:hover {
    background-color: var(--couleur-secondaire-foncee);
    color: #ffffff;
}

.btn-contour {
    background-color: transparent;
    color: var(--couleur-principale);
    border: 2px solid var(--couleur-principale);
}

.btn-contour:hover {
    background-color: var(--couleur-principale);
    color: #ffffff;
}

/* ==========================================================================
   COMPOSANTS - CARTES
   ========================================================================== */

.carte {
    background-color: var(--fond-principal);
    border-radius: var(--radius-lg);
    box-shadow: var(--ombre);
    overflow: hidden;
    transition: all var(--transition);
}

.carte:hover {
    box-shadow: var(--ombre-lg);
    transform: translateY(-4px);
}

.carte-contenu {
    padding: var(--espace-lg);
}

.carte-titre {
    font-size: var(--taille-xl);
    margin-bottom: var(--espace-sm);
}

.carte-texte {
    color: var(--texte-clair);
    margin-bottom: var(--espace-md);
}

/* ==========================================================================
   LAYOUT - CONTENEUR
   ========================================================================== */

.conteneur {
    width: 100%;
    max-width: var(--conteneur-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--espace-md);
    padding-right: var(--espace-md);
}

/* ==========================================================================
   LAYOUT - HEADER
   ========================================================================== */

.site-header {
    background-color: var(--fond-principal);
    box-shadow: var(--ombre-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .conteneur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

/* Logo */
.site-branding img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.navigation-principale ul {
    display: flex;
    gap: var(--espace-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation-principale a {
    display: block;
    padding: var(--espace-sm) 0;
    color: var(--texte-principal);
    font-weight: 500;
    position: relative;
}

.navigation-principale a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--couleur-principale);
    transition: width var(--transition);
}

.navigation-principale a:hover::after,
.navigation-principale .current-menu-item a::after {
    width: 100%;
}

/* Menu mobile toggle */
.menu-toggle {
    display: none;
    padding: var(--espace-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--texte-principal);
    margin: 5px 0;
    transition: all var(--transition);
}

/* ==========================================================================
   LAYOUT - FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--fond-sombre);
    color: #ffffff;
    padding: var(--espace-2xl) 0;
    margin-top: var(--espace-2xl);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--espace-xl);
    margin-bottom: var(--espace-xl);
}

.footer-widget-titre {
    font-size: var(--taille-lg);
    margin-bottom: var(--espace-md);
    color: #ffffff;
}

.site-info {
    padding-top: var(--espace-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--taille-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   FORMULAIRES
   ========================================================================== */

.form-groupe {
    margin-bottom: var(--espace-md);
}

.form-label {
    display: block;
    margin-bottom: var(--espace-xs);
    font-weight: 500;
    color: var(--texte-principal);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--police-principale);
    font-size: var(--taille-base);
    color: var(--texte-principal);
    background-color: var(--fond-principal);
    border: 1px solid var(--bordure);
    border-radius: var(--radius-md);
    transition: all var(--transition-rapide);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================================================
   UTILITAIRES - TEXTE
   ========================================================================== */

.texte-centre { text-align: center; }
.texte-gauche { text-align: left; }
.texte-droite { text-align: right; }

.texte-principal { color: var(--couleur-principale); }
.texte-secondaire { color: var(--couleur-secondaire); }
.texte-clair { color: var(--texte-clair); }

/* ==========================================================================
   UTILITAIRES - MARGES
   ========================================================================== */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--espace-sm); }
.mt-2 { margin-top: var(--espace-md); }
.mt-3 { margin-top: var(--espace-lg); }
.mt-4 { margin-top: var(--espace-xl); }
.mt-5 { margin-top: var(--espace-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--espace-sm); }
.mb-2 { margin-bottom: var(--espace-md); }
.mb-3 { margin-bottom: var(--espace-lg); }
.mb-4 { margin-bottom: var(--espace-xl); }
.mb-5 { margin-bottom: var(--espace-2xl); }

/* ==========================================================================
   UTILITAIRES - PADDING
   ========================================================================== */

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--espace-sm); }
.pt-2 { padding-top: var(--espace-md); }
.pt-3 { padding-top: var(--espace-lg); }
.pt-4 { padding-top: var(--espace-xl); }
.pt-5 { padding-top: var(--espace-2xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--espace-sm); }
.pb-2 { padding-bottom: var(--espace-md); }
.pb-3 { padding-bottom: var(--espace-lg); }
.pb-4 { padding-bottom: var(--espace-xl); }
.pb-5 { padding-bottom: var(--espace-2xl); }

/* ==========================================================================
   UTILITAIRES - DISPLAY
   ========================================================================== */

.cache { display: none; }
.block { display: block; }
.flex { display: flex; }
.grille { display: grid; }

.flex-centre {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

@keyframes apparition {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.anime-apparition { animation: apparition var(--transition) ease-out; }
.anime-glisser-haut { animation: glisser-haut var(--transition) ease-out; }

/* ==========================================================================
   RESPONSIVE - TABLETTE
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --taille-4xl: 2rem;
        --taille-3xl: 1.75rem;
        --taille-2xl: 1.375rem;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --taille-4xl: 1.75rem;
        --taille-3xl: 1.5rem;
        --taille-2xl: 1.25rem;
    }
    
    /* Navigation mobile */
    .menu-toggle {
        display: block;
    }
    
    .navigation-principale {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--fond-principal);
        box-shadow: var(--ombre-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }
    
    .navigation-principale.ouvert {
        max-height: 500px;
    }
    
    .navigation-principale ul {
        flex-direction: column;
        gap: 0;
        padding: var(--espace-md);
    }
    
    .navigation-principale a {
        padding: var(--espace-sm) 0;
        border-bottom: 1px solid var(--bordure);
    }
    
    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   COMPATIBILITÉ ELEMENTOR
   ========================================================================== */

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--conteneur-max);
}

.elementor-button {
    font-family: var(--police-principale);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-rapide);
}

.elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombre-md);
}

.elementor-heading-title {
    font-family: var(--police-titres);
}

.elementor-image img {
    border-radius: var(--radius-md);
}

/* ==========================================================================
   WOOCOMMERCE
   ========================================================================== */

.woocommerce .button,
.woocommerce input.button {
    background-color: var(--couleur-principale) !important;
    color: #ffffff !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--police-principale) !important;
    transition: all var(--transition-rapide) !important;
}

.woocommerce .button:hover,
.woocommerce input.button:hover {
    background-color: var(--couleur-principale-foncee) !important;
}

/* ==========================================================================
   IMPRESSION
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
}
