@font-face {
  font-family: "Kenyan Coffee";
  src: url("/fonts/kenyan-coffee-rg.ttf") format("truetype"),
       url("/fonts/kenyan-coffee-rg.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}


/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: url("images/background.jpg");
    background-repeat: no-repeat;
    background-position: 50% 60%;
    background-size: cover;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.devise h1 {
    font-family: "Kenyan Coffee";
    font-size: 2.0rem;
    font-weight: 300;
    margin-top: 0.5rem;
    color: #CECECE;
}

/* Section d'introduction */
.intro {
    padding: 2rem 0;
    text-align: center;
    background-color: #181A1B;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #d3d3d3;
}

.intro p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Onglets de catégories */
.categories-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #2c2f30;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #3a3d3e;
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: #01411a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Galerie */
.gallery {
    padding: 2rem 0;
    background-color: #1B1E1F;
    min-height: 60vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Dossier de véhicule */
.vehicle-folder {
    background-color: #2c2f30;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-folder:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3d3e;
}

.folder-header h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

.folder-count {
    background-color: #01411a;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Bouton pour dérouler le dossier */
.expand-folder-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background-color: #2c2f30;
    color: #fff;
    border: 1px solid #3a3d3e;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.expand-folder-btn:hover {
    background-color: #3a3d3e;
    transform: translateY(-2px);
}

.expand-folder-btn i {
    margin-right: 8px;
}

.expand-folder-btn.active {
    background-color: #01411a;
    border-color: #01411a;
}

.expand-folder-btn.active i {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Indicateur visuel pour les dossiers ouverts */
.vehicle-folder.active-folder {
    border: 2px solid #01411a;
    box-shadow: 0 8px 25px rgba(1, 65, 26, 0.3);
}

/* Images */
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.photo-item.main-photo {
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: white;
    font-size: 2rem;
}

.photo-overlay i.fa-search-plus {
    z-index: 2;
    position: relative;
}

.photo-item:not(.additional) .photo-overlay i.fa-folder-open,
.photo-item:not(.additional) .photo-overlay i.fa-folder-minus {
    z-index: 1;
}

/* Style spécifique pour l'icône d'expansion sur l'image principale */
.expand-icon {
    display: none;
}

@media (min-width: 769px) {
    .expand-icon {
        display: block;
    }
}

/* Images supplémentaires */
.additional-photos {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #3a3d3e;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.additional-photos.active {
    display: grid;
    opacity: 1;
    max-height: 1000px;
    margin-top: 15px;
}

.additional-photos .photo-item {
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.additional-photos .photo-item:hover {
    transform: scale(1.05);
}

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #01411a, #464946);
    color: white;
    padding: 3rem 0 1rem;
}

.contacts {
    text-align: center;
    margin-bottom: 2rem;
}

.contacts h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.discord-link {
    background-color: #5865F2;
}

.discord-link:hover {
    background-color: #4752c4;
}

.email-link {
    background-color: #D44638;
}

.email-link:hover {
    background-color: #b33a2e;
}

.instagram-link {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.instagram-link:hover {
    opacity: 0.9;
}

.social-links i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 0 0 8px 8px;
    width: 100%;
    text-align: left;
    margin-top: -5px;
}

.image-info h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.image-info p {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Styles pour le badge de statut dans le modal */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.status-badge.termine {
    background-color: #28a745;
    color: white;
}

.status-badge.wip {
    background-color: #ffc107;
    color: #212529;
}

.status-badge.photo3d {
    background-color: #267dff;
    color: #212529;
}

.status-badge.annule-arret {
    background-color: #b80000;
    color: white;
}

.status-badge.non-classe {
    background-color: #6c757d;
    color: white;
}

/* Détails de l'image dans le modal */
.image-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    font-size: 0.9rem;
}

.image-details i {
    margin-right: 8px;
    color: #28a745;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.modal-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.modal-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .devise h1 {
        font-size: 1.4rem;
    }
    
    .intro h2 {
        font-size: 2rem;
    }
    
    .categories-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 80%;
        margin-bottom: 5px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .folder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-links a {
        width: 200px;
        justify-content: center;
    }
    
    .modal-image-container {
        max-width: 95%;
    }
    
    .modal-content {
        max-height: 60vh;
    }
    
    .image-info {
        padding: 15px;
    }
    
    .image-info h3 {
        font-size: 1.3rem;
    }
    
    .image-info p {
        font-size: 0.9rem;
    }
    
    .status-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .modal-nav {
        bottom: 10px;
    }
    
    .expand-folder-btn {
        font-size: 0.9rem;
        padding: 8px;
    }
}