/* ============================================
   KAE HOLDING SARL - STYLE PROFESSIONNEL
   Palette: Noir (#000000, #1a1a1a) & Doré (#D4AF37, #FFD700)
   Police: Times New Roman
   ============================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- TYPOGRAPHIE ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: #D4AF37;
    letter-spacing: 1px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #D4AF37;
}

h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #FFD700;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: #D4AF37;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #D4AF37;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    max-height: 70px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #D4AF37;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #D4AF37;
    cursor: pointer;
}

/* ---------- BANNIERE / HERO ---------- */
.hero {
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../uploads/photos/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 90px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #D4AF37;
    color: #000;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Times New Roman', Times, serif;
}

.btn:hover {
    background: #FFD700;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #000;
}

/* ---------- SECTIONS ---------- */
section {
    padding: 5rem 5%;
}

.section-dark {
    background: #0a0a0a;
}

.section-light {
    background: #111111;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

/* ---------- GRILLE SECTEURS ---------- */
.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.secteur-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
}

.secteur-card:hover {
    transform: translateY(-10px);
    border-color: #D4AF37;
    box-shadow: 0 10px 30px rgba(212,175,55,0.1);
}

.secteur-icon {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 1rem;
}

.secteur-card h3 {
    margin: 1rem 0;
}

/* ---------- GRILLE FILIALES ---------- */
.filiales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filiale-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid #D4AF37;
}

/* ---------- GALLERIE PHOTOS ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ---------- ACTUALITES ---------- */
.actus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.actu-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.actu-img {
    height: 200px;
    overflow: hidden;
}

.actu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.actu-card:hover .actu-img img {
    transform: scale(1.05);
}

.actu-content {
    padding: 1.5rem;
}

.actu-date {
    color: #D4AF37;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.actu-content h3 {
    margin-top: 0;
}

/* ---------- FORMULAIRES ---------- */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #D4AF37;
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    font-family: 'Times New Roman', Times, serif;
    border-radius: 4px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #D4AF37;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- FOOTER ---------- */
footer {
    background: #000000;
    border-top: 3px solid #D4AF37;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: #D4AF37;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: #999;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #D4AF37;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #D4AF37;
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.85rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .hero { height: 60vh; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        gap: 0;
        border-top: 1px solid #D4AF37;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        padding: 0.8rem 0;
    }
    
    .hero {
        margin-top: 80px;
    }
    
    .secteurs-grid,
    .actus-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 5%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 8px 20px;
    }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---------- BACK-OFFICE (ADMIN) ---------- */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: #000;
    border-right: 1px solid #D4AF37;
    padding: 2rem 1rem;
}

.admin-sidebar h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li {
    margin-bottom: 0.5rem;
}

.admin-sidebar a {
    display: block;
    padding: 10px 15px;
    color: #e0e0e0;
    border-radius: 5px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #D4AF37;
    color: #000;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: #0a0a0a;
}

.admin-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.admin-table th {
    color: #D4AF37;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}