/*
Theme Name: Celebrity News - GeneratePress
Theme URI: https://votresite.com
Description: Thème enfant moderne pour site d'actualités sur les célébrités, basé sur GeneratePress
Author: Votre Nom
Author URI: https://votresite.com
Template: generatepress
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: celebrity-news-gp
*/

/* ==========================================================================
   VARIABLES CSS
   ========================================================================== */

:root {
    /* Couleurs principales */
    --cn-primary: #ef4444;       /* Rouge accent (red-500) */
    --cn-primary-dark: #dc2626;  /* Rouge foncé (red-600) */
    --cn-primary-light: #fca5a5; /* Rouge clair (red-300) */
    
    /* Texte */
    --cn-text-primary: #1a1a1a;  /* Texte principal (gray-900) */
    --cn-text-secondary: #4b5563; /* Texte secondaire (gray-600) */
    --cn-text-tertiary: #9ca3af;  /* Meta info (gray-400) */
    
    /* Interface */
    --cn-bg-primary: #ffffff;     /* Fond principal */
    --cn-bg-secondary: #f9fafb;   /* Fond secondaire (gray-50) */
    --cn-border: #e5e7eb;         /* Bordures (gray-200) */
    
    /* Typographie */
    --cn-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --cn-font-heading: 'Inter', var(--cn-font-sans);
}

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

* {
    box-sizing: border-box;
}

body {
    font-family: var(--cn-font-sans);
    color: var(--cn-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cn-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: var(--cn-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cn-primary-dark);
}

/* ==========================================================================
   UTILITAIRES TAILWIND FALLBACK
   ========================================================================== */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

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

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

/* ==========================================================================
   SCROLLBAR PERSONNALISÉE
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cn-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--cn-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cn-primary-dark);
}