/* ============================================

   IDAcars - Styles Principaux

   ============================================ */



/* Reset et Base */

        .gallery-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.6);
            color: white;
            border: none;
            padding: 16px 12px;
            cursor: pointer;
            transition: all 0.3s;
            z-index: 10;
            backdrop-filter: blur(4px);
            border-radius: 8px;
        }

        .gallery-nav-btn:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: translateY(-50%) scale(1.15);
        }

        .gallery-nav-btn.prev {
            left: 20px;
        }

        .gallery-nav-btn.next {
            right: 20px;
        }


* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    line-height: 1.6;

    color: #333;

}



/* Navigation */

nav {

    position: sticky;

    top: 0;

    z-index: 50;

    background: rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(12px);

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

}



nav .nav-container {

    max-width: 1152px;

    margin: 0 auto;

    padding: 0 1rem;

}



nav .nav-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1rem 0;

}



nav .logo {

    font-size: 1.5rem;

    font-weight: bold;

    color: #2563eb;

    text-decoration: none;

    transition: color 0.3s;

}



nav .logo:hover {

    color: #1d4ed8;

}



nav .nav-links {

    display: flex;

    gap: 1.5rem;

    align-items: center;

}



nav .nav-links a {

    color: #4b5563;

    text-decoration: none;

    font-weight: 500;

    transition: color 0.3s;

}



nav .nav-links a:hover {

    color: #2563eb;

}



nav .nav-links a.active {

    color: #2563eb;

    font-weight: bold;

    border-bottom: 2px solid #2563eb;

}



/* Footer */

footer {

    background-color: #1f2937;

    color: white;

    margin-top: 3rem;

}



footer .footer-container {

    max-width: 1152px;

    margin: 0 auto;

    padding: 2rem 1rem;

}



footer .footer-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

}



footer h3 {

    font-size: 1.25rem;

    font-weight: bold;

    margin-bottom: 1rem;

}



footer p {

    color: #9ca3af;

}



footer .footer-copyright {

    text-align: center;

    margin-top: 2rem;

    padding-top: 2rem;

    border-top: 1px solid #374151;

    color: #9ca3af;

}



/* Conteneurs */

.container {

    max-width: 1152px;

    margin: 0 auto;

    padding: 0 1rem;

}



.section {

    padding: 4rem 0;

}



/* Cartes */

.card {

    background: white;

    border-radius: 0.5rem;

    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);

    overflow: hidden;

    transition: all 0.3s;

}



.card:hover {

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    transform: translateY(-4px);

}



.card-image {

    width: 100%;

    height: 12rem;

    object-fit: cover;

}



.card-content {

    padding: 1.5rem;

}



.card-title {

    font-size: 1.25rem;

    font-weight: bold;

    margin-bottom: 0.5rem;

}



.card-description {

    color: #6b7280;

    margin-bottom: 1rem;

}



/* Boutons */

.btn {

    display: inline-block;

    padding: 0.75rem 1.5rem;

    border-radius: 0.5rem;

    font-weight: 600;

    text-decoration: none;

    text-align: center;

    transition: all 0.3s;

    cursor: pointer;

    border: none;

}



.btn-primary {

    background: linear-gradient(to right, #2563eb, #1d4ed8);

    color: white;

}



.btn-primary:hover {

    background: linear-gradient(to right, #1d4ed8, #1e40af);

    transform: scale(1.05);

}



.btn-secondary {

    background: linear-gradient(to right, #10b981, #059669);

    color: white;

}



.btn-secondary:hover {

    background: linear-gradient(to right, #059669, #047857);

    transform: scale(1.05);

}



.btn-outline {

    background: transparent;

    border: 2px solid #d1d5db;

    color: #4b5563;

}



.btn-outline:hover {

    background: #f3f4f6;

}



.btn-admin {

    background: #10b981;

    color: white;

}



.btn-admin:hover {

    background: #059669;

}



.btn-logout {

    background: #ef4444;

    color: white;

}



.btn-logout:hover {

    background: #dc2626;

}



/* Grilles */

.grid {

    display: grid;

    gap: 2rem;

}



.grid-cols-1 {

    grid-template-columns: repeat(1, minmax(0, 1fr));

}



.grid-cols-2 {

    grid-template-columns: repeat(2, minmax(0, 1fr));

}



.grid-cols-3 {

    grid-template-columns: repeat(3, minmax(0, 1fr));

}



.grid-cols-4 {

    grid-template-columns: repeat(4, minmax(0, 1fr));

}



@media (min-width: 768px) {

    .md\:grid-cols-2 {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

    

    .md\:grid-cols-3 {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

}



@media (min-width: 1024px) {

    .lg\:grid-cols-3 {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

    

    .lg\:grid-cols-4 {

        grid-template-columns: repeat(4, minmax(0, 1fr));

    }

}



/* Formulaires */

.form-group {

    margin-bottom: 1.5rem;

}



.form-label {

    display: block;

    color: #374151;

    font-weight: 600;

    margin-bottom: 0.5rem;

}



.form-input,

.form-select,

.form-textarea {

    width: 100%;

    padding: 0.75rem 1rem;

    border: 1px solid #d1d5db;

    border-radius: 0.5rem;

    font-size: 1rem;

    transition: all 0.3s;

}



.form-input:focus,

.form-select:focus,

.form-textarea:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);

}



.form-textarea {

    resize: vertical;

    min-height: 120px;

}



/* Alertes */

.alert {

    padding: 1rem;

    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-info {

    background-color: #dbeafe;

    border: 1px solid #93c5fd;

    color: #1e40af;

}



.alert-warning {

    background-color: #fef3c7;

    border: 1px solid #fcd34d;

    color: #92400e;

}



/* Utilitaires */

.text-center {

    text-align: center;

}



.text-right {

    text-align: right;

}



.text-left {

    text-align: left;

}



.mt-1 { margin-top: 0.25rem; }

.mt-2 { margin-top: 0.5rem; }

.mt-3 { margin-top: 0.75rem; }

.mt-4 { margin-top: 1rem; }

.mt-6 { margin-top: 1.5rem; }

.mt-8 { margin-top: 2rem; }



.mb-1 { margin-bottom: 0.25rem; }

.mb-2 { margin-bottom: 0.5rem; }

.mb-3 { margin-bottom: 0.75rem; }

.mb-4 { margin-bottom: 1rem; }

.mb-6 { margin-bottom: 1.5rem; }

.mb-8 { margin-bottom: 2rem; }



.p-4 { padding: 1rem; }

.p-6 { padding: 1.5rem; }

.p-8 { padding: 2rem; }



.rounded { border-radius: 0.25rem; }

.rounded-md { border-radius: 0.375rem; }

.rounded-lg { border-radius: 0.5rem; }

.rounded-xl { border-radius: 0.75rem; }

.rounded-2xl { border-radius: 1rem; }



.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }



/* Responsive */

@media (max-width: 768px) {

    nav .nav-links {

        flex-direction: column;

        gap: 0.5rem;

    }

    

    .grid-cols-2,

    .grid-cols-3,

    .grid-cols-4 {

        grid-template-columns: repeat(1, minmax(0, 1fr));

    }

}