@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --color-bg: #383838;
    --color-surface: #454545;
    --color-surface-2: #222222;
    --color-surface-border: rgba(255, 255, 255, 0.08);
    --color-text: #fff;
    --color-text-muted: #bbb;
    --color-primary: #336f42;
    --color-primary-light: #00b82e;
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Poppins', 'Roboto', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --transition-base: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.navbar-logo {
    display: block;
    height: 90px;
}

.footer-logo {
    height: 70px;
}

.navbar {
    min-height: 120px;
    background-color: var(--color-surface-2) !important;
    box-shadow: var(--shadow-sm);
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-base), border-color var(--transition-base);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--color-primary-light);
}
.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link.show,
.navbar-dark .navbar-nav .show > .nav-link {
    color: var(--color-primary-light);
    border-bottom-color: var(--color-primary-light);
}
#myCarousel {
    margin-top: 120px;
}
.carousel-inner {
    height: 500px;
}
.carousel-item {
    height: 100%;
}
.carousel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.55) 100%);
}

.carousel-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.75rem;
    letter-spacing: 0.01em;
    z-index: 2;
}
@media (min-width: 768px) {
    .carousel-heading {
        font-size: 2.5rem;
    }
}

.carousel-toggle {
    position: absolute;
    z-index: 2;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.carousel-toggle:hover,
.carousel-toggle:focus {
    background: rgba(0, 0, 0, 0.8);
}

.notre-metier {

}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.info-card img {
    box-shadow: var(--shadow-sm);
}

.featured-galleries {
    margin-top: 60px;
    padding-bottom: 40px;
}

.separator-contact {
    background: url("../img/contact.jpg") no-repeat center center;
    height: 400px;
}

.contact-label {
    font-weight: 700;
    font-size: 1.25rem;
}
.contact-value {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.contact-value:last-child {
    margin-bottom: 0;
}

#nos-metiers::before,
#equipe::before,
#reemploi::before,
#mentions-legales::before,
#galerie::before,
#not-found::before,
#contact::before {
    display: block;
    content: " ";
    height: 140px;
    margin-top: 40px;
    visibility: hidden;
}

.breadcrumb {
    background-color: rgba(255, 255, 255, 0.08);
}
.breadcrumb-item a {
    color: #00b82e;
}
.breadcrumb-item.active {
    color: #ccc;
}

.gallery_box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}
@media (min-width: 576px) {
    .gallery_box {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .gallery_box {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}
@media (min-width: 1200px) {
    .gallery_box {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery_box li {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    min-width: 0;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.gallery_box li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.gallery_box li a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery_box li:hover img {
    transform: scale(1.08);
}

.gallery_box .box_data {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 60%);
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}
.gallery_box .box_data span {
    padding: 12px;
    font-size: 16px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.lightbox-image {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
}
.lightbox-caption {
    color: #fff;
    margin: 12px 0 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    opacity: 1;
}
.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-nav:hover,
.lightbox-nav:focus {
    background: rgba(0, 0, 0, 0.8);
}
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
@media (min-width: 992px) {
    .lightbox-prev { left: -60px; }
    .lightbox-next { right: -60px; }
}

.btn {
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}

input.form-control, textarea.form-control, select.form-control {
    border-radius: var(--radius-sm);
    border-color: var(--color-primary);
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background: var(--color-primary-light) !important;
    border-color: var(--color-primary-light) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}
.color-green {
    color: var(--color-primary-light) !important;
}

.site-footer {
    background: #222;
    border-top: 2px solid #336f42;
    padding: 40px 0 20px;
    margin-top: 60px;
    font-size: 15px;
}
.site-footer h2 {
    color: #00b82e;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}
.site-footer a {
    color: #fff;
}
.site-footer a:hover {
    color: #00b82e;
    text-decoration: none;
}
.footer-links li {
    margin-bottom: 6px;
}
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 10px;
    padding-top: 15px;
    color: #999;
    font-size: 13px;
}