/**
 * Styles personnalisés - CuivreVert
 * CSS pur sans @apply de Tailwind
 */

/* Variables CSS */
:root {
    --terracotta: #D2691E;
    --marron: #5a3a1a;
    --vert-cuivre: #6b8f71;
    --cuivre: #7f4031;
    --beige-clair: #e8d5c4;
    --marron-clair: #8b6f47;
}

/* Polices et typographie */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Classes de couleurs personnalisées pour Tailwind */
.bg-terracotta { background-color: var(--terracotta) !important; }
.bg-marron { background-color: var(--marron) !important; }
.bg-vert-cuivre { background-color: var(--vert-cuivre) !important; }
.bg-cuivre { background-color: var(--cuivre) !important; }
.bg-beige-clair { background-color: var(--beige-clair) !important; }
.bg-marron-clair { background-color: var(--marron-clair) !important; }

.text-terracotta { color: var(--terracotta) !important; }
.text-marron { color: var(--marron) !important; }
.text-vert-cuivre { color: var(--vert-cuivre) !important; }
.text-cuivre { color: var(--cuivre) !important; }
.text-beige-clair { color: var(--beige-clair) !important; }
.text-marron-clair { color: var(--marron-clair) !important; }

.border-terracotta { border-color: var(--terracotta) !important; }
.border-marron { border-color: var(--marron) !important; }
.border-vert-cuivre { border-color: var(--vert-cuivre) !important; }
.border-cuivre { border-color: var(--cuivre) !important; }
.border-beige-clair { border-color: var(--beige-clair) !important; }
.border-marron-clair { border-color: var(--marron-clair) !important; }

.hover\:bg-vert-cuivre:hover { background-color: var(--vert-cuivre) !important; }
.hover\:text-vert-cuivre:hover { color: var(--vert-cuivre) !important; }
.hover\:border-vert-cuivre:hover { border-color: var(--vert-cuivre) !important; }

.focus\:border-vert-cuivre:focus { border-color: var(--vert-cuivre) !important; }
.focus\:ring-vert-cuivre:focus { --tw-ring-color: var(--vert-cuivre) !important; }

/* Boutons personnalisés */
.btn-primary {
    background-color: var(--vert-cuivre);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--cuivre);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    opacity: 0.9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 2px solid var(--vert-cuivre);
    color: var(--vert-cuivre);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: transparent;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--vert-cuivre);
    color: white;
}

/* Cards produits */
.product-card {
    background-color: white;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.product-card img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

/* Formulaires */
.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0;
    outline: none;
    transition: all 0.2s ease;
    background-color: rgb(248, 245, 240);
}

.form-input:focus, .form-select:focus {
    background-color: rgb(248, 245, 240);
    outline: 2px solid var(--vert-cuivre);
    outline-offset: 0px;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0;
    outline: none;
    transition: all 0.2s ease;
    resize: none;
    background-color: rgb(248, 245, 240);
}

.form-textarea:focus {
    background-color: rgb(248, 245, 240);
    outline: 2px solid var(--vert-cuivre);
    outline-offset: 0px;
}

.form-label {
    display: block;
    color: var(--marron);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Désactiver le spin des input number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Hero Section */
.hero {
    background-color: var(--vert-cuivre);
    color: white;
    padding: 6rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--marron);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--marron-clair);
    max-width: 48rem;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Prix */
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vert-cuivre);
}

.price-small {
    font-size: 0.875rem;
    color: var(--marron-clair);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--marron-clair);
}

.breadcrumb a {
    color: var(--vert-cuivre);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--cuivre);
}

.breadcrumb-separator {
    color: var(--marron-clair);
}

/* Animations */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* Stars rating */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    color: #fbbf24;
}

.stars i {
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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