/* CSS Variables */
:root {
    --bg-dark: #1e1e1e; /* Nwa fonse */
    --bg-card: #2d2d2d; /* Pou kad article ak fòm */
    --text-light: #f0f0f0; /* Tèks blan klè */
    --primary: #ff9800; /* Zoranj */
    --border: #444;
}

/* Reset Senp ak Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Century Gothic", Arial, sans-serif;
    background: var(--bg-dark) !important;
    color: var(--text-light) !important;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header (si toujou itilize nan kèk paj) */
#headerpr {
    background: #000;
    padding: 20px;
    text-align: center;
}

#headerpr img {
    max-width: 300px;
    height: auto;
}

/* Bannè */
#banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Layout Prensipal: Meni Vètikal + Kontni */
#main {
    display: flex;
    flex: 1;
}

/* Meni Vètikal */
#menu_v {
    width: 20%;
    background: var(--bg-dark);
    padding: 20px;
    border-right: 1px solid var(--border);
}

#menu_v h2 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 10px;
}

#menu_v ul {
    list-style: none;
}

#menu_v li {
    margin-bottom: 12px;
}

#menu_v a {
    display: block;
    padding: 12px;
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

#menu_v a:hover, #menu_v a.active {
    background: var(--primary);
    color: #000;
}

#menu_v hr {
    border-color: var(--border);
    margin: 10px 0;
}

/* Kontni Prensipal */
#cuerpo {
    width: 80%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.article h1, .article h2, .article h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.article p {
    text-align: justify;
    margin-bottom: 15px;
}

/* Lis Pwodwi */
#produits-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
}

.produit-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.produit-item strong {
    display: block;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Fòm Kontak */
.article form {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.article form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
}

.article form input,
.article form select,
.article form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #444;
    color: var(--text-light);
}

.article form button {
    background: var(--primary);
    color: #000;
    padding: 14px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article form button:hover {
    background: #ffb74d;
}

/* Footer */
#pie {
    background: #111;
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid var(--primary);
}

#contacts h1 span {
    color: var(--text-light);
    font-size: 26px;
}

#contacts div a {
    margin: 0 15px;
}

#contacts img {
    width: 50px;
    height: 50px;
    transition: opacity 0.3s;
}

#contacts img:hover {
    opacity: 0.7;
}

#pie address {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
}

/* Navbar Bootstrap Ajisteman */
.navbar {
    background: #222 !important;
    padding: 15px 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary) !important;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    padding: 10px 20px !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.dropdown-menu {
    background: #333;
    border: none;
}

.dropdown-item {
    color: var(--text-light);
}

.dropdown-item:hover {
    background: var(--primary);
    color: #000;
}

.navbar-toggler {
    border-color: var(--primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff9800' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
    }
    .navbar-collapse {
        background: #222;
        padding: 10px;
    }
}

/* Kat Google Maps */
.map-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: 0;
}

.btn-map {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-map:hover {
    background: #ffb74d;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 400px;
    }
}

/* Vizyon ak Misyon */
.vision, .mission {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

.vision h2, .mission h2 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 20px;
}

.vision p, .mission p {
    font-size: 18px;
    line-height: 1.8;
}

/* Grid Òf Espesyal */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.offer-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    text-align: center;
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: translateY(-10px);
}

.offer-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.offer-card h3 {
    padding: 15px 10px 5px;
    font-size: 18px;
    color: var(--primary);
}

.offer-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #ff4444;
    padding: 10px;
    background: rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .offer-card img {
        height: 250px;
    }
}

/* DataTables */
.table {
    background: var(--bg-card);
    color: var(--text-light);
    margin: 30px auto;
    max-width: 900px;
}

.table thead {
    background: #222;
    color: var(--primary);
}

.table th {
    text-align: center;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #333;
}

.table caption {
    caption-side: top;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.table-responsive {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-light) !important;
    background: #444 !important;
    border: 1px solid var(--border);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: #000 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: #444;
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* Lis Sèvis Debaz ak Espesyalize */
.service-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-list > div {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    width: 45%;
    min-width: 300px;
    margin: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.service-list h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-list ul {
    list-style: disc inside;
    font-size: 17px;
}

.service-list li {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .service-list {
        flex-direction: column;
    }
    .service-list > div {
        width: 100%;
    }
    .table {
        font-size: 14px;
    }
}

/* Kad Flip Efè (pou tout paj sèvis) */
.flip-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
}

.flip-card {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    background: var(--bg-card);
    color: var(--text-light);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 18px;
    text-align: center;
}

/* Imaj ak Tèks Alterné (Bootstrap row) */
.row {
    max-width: 900px;
    margin: 40px auto;
}

.row img {
    margin: 15px 0;
}

@media (max-width: 768px) {
    .flip-cards {
        flex-direction: column;
        align-items: center;
    }
    .flip-card {
        width: 90%;
        max-width: 350px;
    }
    .row {
        flex-direction: column;
    }
    .row .col-md-6 {
        text-align: center;
    }
    #main {
        flex-direction: column;
    }
    #menu_v, #cuerpo {
        width: 100%;
    }
    #menu_v {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    #cuerpo {
        padding: 20px;
    }
    .article, .article form {
        max-width: 100%;
        padding: 20px;
    }
    .produit-item {
        width: 100%;
    }
}