/**
 * Styles CSS supplémentaires (si besoin)
 * La majorité des styles sont gérés par Tailwind CSS
 */

/* Animations personnalisées */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Style pour les éléments de formulaire au focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #A67C52 !important;
    box-shadow: 0 0 0 2px rgba(166, 124, 82, 0.1);
}

/* Amélioration des details/summary */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* Scroll smooth pour navigateurs qui ne le supportent pas */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Accessibilité: améliorer le focus visible */
*:focus-visible {
    outline: 2px solid #A67C52;
    outline-offset: 2px;
}

/* Impression */
@media print {
    header,
    footer,
    nav,
    .btn,
    form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Amélioration des transitions */
a,
button,
.btn {
    transition: all 0.2s ease-in-out;
}

/* Loader simple (si besoin) */
.loader {
    border: 3px solid #E5E1D8;
    border-top: 3px solid #A67C52;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message d'alerte/succès */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid;
    border-radius: 4px;
}

.alert-success {
    background-color: rgba(74, 124, 89, 0.1);
    border-color: #4A7C59;
    color: #4A7C59;
}

.alert-error {
    background-color: rgba(176, 65, 62, 0.1);
    border-color: #B0413E;
    color: #B0413E;
}

/* Responsive utilities */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}
