/*
Theme Name: Agence Pezs
Theme URI: https://agencepezs.online
Author: Agence Pezs
Author URI: https://agencepezs.online
Description: Thème WordPress professionnel pour Agence Pezs - Spécialistes en création de sites web à Pézenas
Version: 1.0.0
Requires at least: 5.0
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: agencepezs
Tags: business, portfolio, one-column, custom-menu, custom-logo, editor-style, featured-images, flexible-header, translation-ready
*/

/* ==========================================================================
   AGENCE PEZS - STYLES CSS
   Design professionnel pour agence web locale
   ========================================================================== */

:root {
    /* Couleurs principales */
    --color-primary: #2563eb;        /* Bleu professionnel */
    --color-primary-dark: #1e40af;
    --color-secondary: #f97316;       /* Orange accent */
    --color-secondary-dark: #ea580c;
    --color-success: #10b981;
    --color-dark: #0f172a;
    --color-dark-2: #1e293b;
    --color-gray: #64748b;
    --color-light: #f8fafc;
    --color-white: #ffffff;
    
    /* Typographie */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    background: linear-gradient(90deg, #8fd0ff, #ffc28f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Styles additionnels importés depuis le fichier CSS original */
/* Optimisation de la grille photos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
    gap: 2rem;
    justify-content: center;
    padding: 2rem 1rem;
}

.photo-item {
    text-align: center;
    will-change: transform;
}

.photo-title {
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.photo-item a {
    display: block;
    position: relative;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: auto;
    max-width: 450px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    /* Réserve l'espace pour éviter le layout shift */
    aspect-ratio: 3/2;
    object-fit: cover;
}

.photo-item a:hover img {
    transform: scale(1.05);
}

/* Placeholder pendant le chargement */
.photo-item img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .photo-title {
        font-size: 16px;
    }
}

/* Navigation des articles - Correction */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.post-navigation .nav-previous {
    text-align: left;
    flex: 0 0 45%;
}

.post-navigation .nav-next {
    text-align: right;
    flex: 0 0 45%;
    margin-left: auto;
}

/* Si un seul bouton est présent */
.post-navigation .nav-previous:only-child,
.post-navigation .nav-next:only-child {
    flex: 0 0 45%;
}

/* Style des liens */
.post-navigation a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.post-navigation a:hover {
    background-color: #e55a00;
}

/* Responsive */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        flex: 1 1 100%;
        text-align: center;
        margin-left: 0;
    }
}
