/* ================================================================
   VARIABLES & BASE
================================================================ */
:root {
    --dark:    #1a1a1a;
    --mid:     #4b4b4b;
    --light:   #f5f5f5;
    --white:   #ffffff;
    --border:  #e0e0e0;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--mid);
    background: #fff;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Section helpers */
.section-tag {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--mid);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.section-lead {
    font-size: 0.95rem;
    color: var(--mid);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.title-bar {
    width: 42px;
    height: 3px;
    background: var(--dark);
    margin: 0.75rem 0 1.5rem;
}
.title-bar.centered { margin: 0.75rem auto 1.5rem; }

/* Buttons */
.btn-ct-dark {
    background: var(--dark);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.8rem 1.8rem;
    border-radius: 2px;
    border: 2px solid var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
}
.btn-ct-dark:hover { background: #333; color: #fff; border-color: #333; }

.btn-ct-outline {
    background: transparent;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.8rem 1.8rem;
    border-radius: 2px;
    border: 2px solid var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
}
.btn-ct-outline:hover { background: var(--dark); color: #fff; }

.btn-ct-white {
    background: #fff;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.8rem 1.8rem;
    border-radius: 2px;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-ct-white:hover { background: #e8e8e8; color: var(--dark); }

.btn-ct-white-outline {
    background: transparent;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.8rem 1.8rem;
    border-radius: 2px;
    border: 2px solid rgba(255,255,255,0.55);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.btn-ct-white-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }


/* ================================================================
   NAVBAR
================================================================ */
.navbar-ct {
    background: #000;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.navbar-ct .navbar-brand {
    padding: 0.6rem 0;
}
.navbar-ct .navbar-brand img {
    height: 140px;
    width: 140px;
    object-fit: contain;
    filter: invert(1);
}
.navbar-ct .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.85) !important;
    padding: 1.4rem 1rem !important;
    transition: color 0.2s;
}
.navbar-ct .nav-link:hover { color: #fff !important; }
.navbar-ct .nav-link.active { color: #fff !important; }

.navbar-ct .navbar-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
}
.navbar-ct .navbar-phone i { font-size: 0.85rem; opacity: 0.75; }

.navbar-ct .btn-nav-cta {
    background: #fff;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
    margin-left: 1.25rem;
    white-space: nowrap;
    transition: background 0.2s;
}
.navbar-ct .btn-nav-cta:hover { background: #e0e0e0; color: var(--dark); }

.navbar-toggler {
    border-color: rgba(255,255,255,0.25);
    padding: 0.3rem 0.6rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ================================================================
   HERO CAROUSEL
================================================================ */
#heroCarousel {
    position: relative;
}

.hero-slide {
    position: relative;
    height: 620px;
    overflow: hidden;
}
.hero-slide img.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Léger voile global sur la partie photo droite */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}
/* Séparateur 3 bandes diagonales — opacité croissante de droite à gauche */
.hero-diag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    pointer-events: none;
    z-index: 2;
}
/* Bande 1 : la plus large, la plus opaque (gauche) */
.hero-diag-1 {
    clip-path: polygon(0 0, 50% 0, 42% 100%, 0 100%);
    opacity: 0.90;
}
/* Bande 2 : bande intermédiaire (~30px) */
.hero-diag-2 {
    clip-path: polygon(50% 0, 52.5% 0, 44.5% 100%, 42% 100%);
    opacity: 0.55;
}
/* Bande 3 : bande légère (~30px) */
.hero-diag-3 {
    clip-path: polygon(52.5% 0, 55% 0, 47% 100%, 44.5% 100%);
    opacity: 0.25;
}

/* Text overlay */
.hero-caption {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 46%;
    padding-left: 80px;
    padding-right: 20px;
    z-index: 3;
    color: #fff;
}
.hero-caption .slide-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.1rem;
}
.hero-caption .slide-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: rgba(255,255,255,0.5);
}
.hero-caption h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}
.hero-caption p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    max-width: 400px;
    margin-bottom: 2.25rem;
    line-height: 1.75;
}
.hero-caption .btn-group-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
    transition: background 0.2s;
}
#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(255,255,255,0.2);
}
#heroCarousel .carousel-control-prev { left: 20px; }
#heroCarousel .carousel-control-next { right: 20px; }
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

/* Indicators */
#heroCarousel .carousel-indicators {
    margin-bottom: 1.5rem;
    z-index: 5;
}
#heroCarousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border-top: none;
    border-bottom: none;
    margin: 0 5px;
    transition: all 0.25s;
}
#heroCarousel .carousel-indicators li.active {
    background: #fff;
    width: 26px;
    border-radius: 4px;
}


/* ================================================================
   BANDEAU STATISTIQUES
================================================================ */
.section-stats {
    background: var(--dark);
    padding: 2.25rem 0;
    position: relative;
}
/* Diagonal top cut on stats band */
.section-stats::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--dark);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.stat-item {
    text-align: center;
    color: #fff;
    padding: 1rem 1.5rem;
    position: relative;
}
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 45px;
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}


/* ================================================================
   SERVICES
================================================================ */
.section-services {
    padding: 90px 0 70px;
    background: #fff;
}
.service-card {
    background: var(--light);
    border-radius: 3px;
    padding: 2.25rem 2rem;
    height: 100%;
    border-bottom: 3px solid transparent;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.service-card:hover {
    background: var(--dark);
    border-bottom-color: #555;
    transform: translateY(-5px);
}
.service-card:hover .svc-icon,
.service-card:hover h4,
.service-card:hover p { color: #fff; }

.svc-icon {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
    transition: color 0.25s;
    display: block;
}
.service-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.25s;
}
.service-card p {
    font-size: 0.875rem;
    color: var(--mid);
    line-height: 1.65;
    margin: 0;
    transition: color 0.25s;
}


/* ================================================================
   À PROPOS
================================================================ */
.section-about {
    padding: 90px 0;
    background: var(--light);
}
.about-img-wrap {
    position: relative;
}
.about-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}
/* Accent block behind image */
.about-img-wrap::before {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 65%;
    height: 65%;
    background: var(--dark);
    z-index: 0;
    border-radius: 3px;
}
.about-img-wrap img { position: relative; z-index: 1; }

.about-content {
    padding-left: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2.25rem;
}
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.about-list li:last-child { border-bottom: none; }
.about-list li i {
    color: var(--dark);
    margin-top: 5px;
    flex-shrink: 0;
}


/* ================================================================
   RÉALISATIONS / GALERIE
================================================================ */
.section-gallery {
    padding: 90px 0 70px;
    background: #fff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 8px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,20,20,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(20,20,20,0.5); }
.gallery-overlay i {
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay i { opacity: 1; }


/* ================================================================
   POURQUOI NOUS CHOISIR
================================================================ */
.section-why {
    padding: 90px 0;
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* Decorative diagonal shape */
.section-why::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 45%;
    height: 100%;
    background: rgba(255,255,255,0.03);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.section-why .section-tag { color: rgba(255,255,255,0.5); }
.section-why .section-title { color: #fff; }
.section-why .title-bar { background: rgba(255,255,255,0.4); }

.why-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}
.why-card:last-child { margin-bottom: 0; }
.why-icon-wrap {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.why-card:hover .why-icon-wrap { background: rgba(255,255,255,0.1); }
.why-icon-wrap i { font-size: 1.15rem; color: #fff; }
.why-text h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}
.why-text p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.6;
}

.why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    min-height: 400px;
}


/* ================================================================
   CONTACT
================================================================ */
.section-contact {
    padding: 0 ;
    background: var(--light);
}
.contact-info-block {
    background: var(--dark);
    color: #fff;
    border-radius: 3px;
    padding: 2.5rem 2rem;
    height: 100%;
}
.contact-info-block h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.contact-info-block p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    line-height: 1.65;
}
.cinfo-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.cinfo-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cinfo-icon i { color: #fff; font-size: 0.95rem; }
.cinfo-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-bottom: 3px;
}
.cinfo-value {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}
.cinfo-value a { color: rgba(255,255,255,0.85); }
.cinfo-value a:hover { color: #fff; }

/* Form */
.contact-form-block {
    background: #fff;
    border-radius: 3px;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.contact-form-block h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.contact-form-block > p {
    font-size: 0.875rem;
    color: var(--mid);
    margin-bottom: 1.75rem;
}
.form-control-ct {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    background: #fff;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}
.form-control-ct:focus {
    outline: none;
    border-color: var(--dark);
}
textarea.form-control-ct {
    resize: vertical;
    min-height: 120px;
}
.btn-submit-ct {
    width: 100%;
    background: var(--dark);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.9rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    margin-top: 0.25rem;
}
.btn-submit-ct:hover { background: #333; }


/* ================================================================
   FOOTER
================================================================ */
.footer {
    background: #fff;
    color: var(--mid);
    padding: 0.2rem 0;
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
}
.footer a { color: var(--mid); transition: color 0.2s; }
.footer a:hover { color: var(--dark); }
.footer-logo-wrap {
    display: inline-block;
    border-radius: 3px;
    padding: 0;
}
.footer-logo-wrap img {
    height: 100px;
    width: auto;
    display: block;
}


/* ================================================================
   LIGHTBOX
================================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-inner img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.7);
    display: block;
}
.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    color: #fff;
    font-size: 1.9rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.2s;
    z-index: 10000;
    background: none;
    border: none;
    padding: 0;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1.3rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 991px) {
    .hero-slide { height: 480px; }
    .hero-caption { width: 82%; padding-left: 30px; }
    .hero-caption h1 { font-size: 2.3rem; }
    .hero-diag-1 { clip-path: polygon(0 0, 82% 0, 70% 100%, 0 100%); }
    .hero-diag-2 { clip-path: polygon(82% 0, 86% 0, 74% 100%, 70% 100%); }
    .hero-diag-3 { clip-path: polygon(86% 0, 90% 0, 78% 100%, 74% 100%); }
    .about-content { padding-left: 1rem; padding-top: 3rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.tall, .gallery-item.wide { grid-row: auto; grid-column: auto; }
}
@media (max-width: 767px) {
    .section-title { font-size: 1.65rem; }
    .hero-slide { height: 400px; }
    /* Panneaux ramenés à 50% — la photo reste visible à droite */
    .hero-diag-1 { clip-path: polygon(0 0, 50% 0, 42% 100%, 0 100%); }
    .hero-diag-2 { clip-path: polygon(50% 0, 52.5% 0, 44.5% 100%, 42% 100%); }
    .hero-diag-3 { clip-path: polygon(52.5% 0, 55% 0, 47% 100%, 44.5% 100%); }
    .hero-caption { width: 46%; padding-left: 20px; }
    .hero-caption h1 { font-size: 1.55rem; }
    .hero-caption p { display: none; }
    .hero-caption .btn-group-hero { display: none; }
    .btn-ct-white-outline { display: none; }
    .stat-item + .stat-item::before { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form-block { margin-top: 1.5rem; }
    .about-img-wrap::before { display: none; }
    /* Footer logo centré sur mobile */
    .footer-logo-wrap { display: block; }
    .footer-logo-wrap img { margin: 0 auto; }
}
@media (max-width: 480px) {
    .hero-slide { height: 340px; }
    .hero-caption { width: 48%; padding-left: 14px; }
    .hero-caption h1 { font-size: 1.25rem; }
}
