/*
Theme Name: IndexGPT starter
Theme URI: https://indexgpt.fr
Author: IndexGPT
Author URI: https://indexgpt.fr
Description: Theme multi-preset pour IndexGPT. Inclut le plugin IndexGPT et propose 3 styles : Tech, Services, Local Services. Onboarding complet avec generation IA des pages.
Version: 1.0.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indexgpt-starter
Tags: ai, tools, directory, modern, responsive, customizable
Requires at least: 6.0
Requires PHP: 8.1
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--igpt-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--igpt-dark);
    background-color: var(--igpt-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--igpt-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--igpt-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--igpt-spacing-md);
}

a {
    color: var(--igpt-primary);
    text-decoration: none;
    transition: color var(--igpt-transition-fast);
}

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

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

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--igpt-spacing-lg);
}

.section {
    padding: var(--igpt-spacing-3xl) 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--igpt-spacing-sm);
    padding: var(--igpt-spacing-sm) var(--igpt-spacing-lg);
    border-radius: var(--igpt-radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--igpt-transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--igpt-primary);
    color: var(--igpt-white);
}

.btn-primary:hover {
    background: var(--igpt-primary-dark);
    color: var(--igpt-white);
}

.btn-secondary {
    background: var(--igpt-light);
    color: var(--igpt-dark);
}

.btn-secondary:hover {
    background: var(--igpt-gray-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--igpt-primary);
    color: var(--igpt-primary);
}

.btn-outline:hover {
    background: var(--igpt-primary);
    color: var(--igpt-white);
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-30%, -30%) rotate(0deg); }
    50% { transform: translate(-20%, -20%) rotate(180deg); }
}

/* Stagger animation delays */
.tools-grid .tool-card:nth-child(1),
.tools-grid .item-card:nth-child(1) { animation-delay: 0.1s; }
.tools-grid .tool-card:nth-child(2),
.tools-grid .item-card:nth-child(2) { animation-delay: 0.2s; }
.tools-grid .tool-card:nth-child(3),
.tools-grid .item-card:nth-child(3) { animation-delay: 0.3s; }
.tools-grid .tool-card:nth-child(4),
.tools-grid .item-card:nth-child(4) { animation-delay: 0.4s; }
.tools-grid .tool-card:nth-child(5),
.tools-grid .item-card:nth-child(5) { animation-delay: 0.5s; }
.tools-grid .tool-card:nth-child(6),
.tools-grid .item-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   Responsive Base
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
