
/* style.css - design moderne pour GROUPE KA SARL */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root{
  --primary:#0d6efd;
  --dark:#0b2238;
  --muted:#6c757d;
  --accent:#f6a21d;
}
*{box-sizing:border-box}
body{font-family:'Poppins',system-ui,Segoe UI,Roboto,'Helvetica Neue',Arial; color:#222; background:#f7f9fb; margin:0; -webkit-font-smoothing:antialiased;}
a{color:var(--primary); text-decoration:none}
.navbar-brand {
    font-weight: 700;
    color: var(--dark) !important;
    padding: 0.5rem 0;
}

.navbar-brand img {
    width: 420px;
    height: auto;
    display: block;
    max-height: 120px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 300px;
        max-height: 110px;
    }
}
@media (max-width: 576px) {
    .navbar-brand img {
        width: 240px;
        max-height: 100px;
    }
}
header.hero{background:linear-gradient(90deg, rgba(13,40,77,0.95), rgba(6,12,34,0.95)), url('../images/hero.jpg') center/cover no-repeat; color:#fff; padding:5.5rem 0;}
.hero-calculator{background:linear-gradient(120deg, rgba(11,34,56,0.92), rgba(13,110,253,0.65)), url('../images/hero.jpg') center/cover no-repeat;}
.hero-blog{background:linear-gradient(120deg, rgba(11,34,56,0.92), rgba(246,162,29,0.65)); color:#fff;}
.hero-clients{background:linear-gradient(135deg, rgba(11,34,56,0.92), rgba(2,6,23,0.8)); color:#fff;}
.hero .lead{font-size:1.125rem; opacity:.95}
.typewriter{display:inline-flex;align-items:center;white-space:nowrap;overflow:hidden;font-weight:600;letter-spacing:.02em}
.typewriter::after{content:'';width:2px;height:1.2em;margin-left:6px;background:currentColor;animation:caret-blink 1s steps(1,end) infinite}
.typewriter-text{display:block}
.typewriter-light{color:#f7fbff}
.typewriter-dark{color:var(--dark)}
.typewriter-accent{color:var(--accent)}
@keyframes caret-blink{0%,45%{opacity:1}55%,100%{opacity:0}}
.calculator-form .form-label{font-weight:600;color:var(--dark);}
.calculator-result{padding:1.25rem;border-radius:12px;background:#f5f7fb;min-height:120px;}
.calculator-result .estimate-amount{font-size:2rem;font-weight:700;color:var(--accent);}
.calculator-result .estimate-note{font-size:.9rem;color:var(--muted);}
.services .card{border:0; border-radius: .75rem; box-shadow: 0 8px 30px rgba(12,38,63,0.08); transition: transform .28s ease, box-shadow .28s ease;}
.services .card:hover{transform:translateY(-6px); box-shadow:0 18px 45px rgba(12,38,63,0.12);}
.project-card{border-radius:.75rem; overflow:hidden; box-shadow:0 10px 30px rgba(2,6,23,0.06);}
footer.site-footer{background:#0b2238; color:#cfe6ff; padding:2.2rem 0; margin-top:3rem;}
.btn-accent{background:var(--accent); color:#08293b; border:none; font-weight:600;}
.contact-card{background:#fff; border-radius:.75rem; padding:1.25rem; box-shadow:0 12px 30px rgba(2,6,23,0.06);}
.form-control:focus{box-shadow:0 0 0 .2rem rgba(13,110,253,0.12);}
.small-muted{color:var(--muted); font-size:.95rem;}
.badge-role{background:rgba(255,255,255,0.08); color:#fff; border-radius:6px; padding:.35rem .6rem; font-weight:600;}
@media (max-width:768px){ header.hero{padding:3.5rem 0} }

/* Styles du carrousel de projets */
.carousel {
    margin: 2rem auto;
    max-width: 600px; /* Réduit la largeur maximale */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    background: #fff;
}

.carousel-img {
    width: 100%;
    height: 320px; /* Hauteur fixe plus petite */
    object-fit: cover;
    display: block;
}

.carousel-caption {
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    text-align: left;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.project-description {
    font-size: 0.95rem;
    opacity: 0.95;
    color: #f0f0f0;
}

.carousel-indicators {
    margin-bottom: 0.75rem;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.8);
    border: none;
}

.carousel-control-prev,
.carousel-control-next {
    width: 12%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 0.8;
}

/* Bouton flottant retour accueil */
.home-float {
    position: fixed;
    width: 60px;
    height: 60px;
    left: 30px;
    bottom: 30px;
    background-color: #0d6efd;
    color: white !important;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.home-float:hover {
    background-color: #0b2238;
    transform: translateY(-5px);
    color: white !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.home-icon {
    font-size: 24px;
}

/* Mobile call bar (phone + WhatsApp) */
.callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: none;
    z-index: 9999;
}
.callbar .inner {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    justify-content: space-between;
}
.callbar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
}
.callbar .btn-call { background:#0b2238; }
.callbar .btn-wa   { background:#25d366; }
@media (max-width:768px){
  .callbar{ display:block; }
  body { padding-bottom: 72px; }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 90px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.back-to-top:hover { background:#0b2238; }

.chat-toggle {
    position: fixed;
    right: 16px;
    bottom: 150px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    color: #08293b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.chat-toggle:hover { background:#f8b23f; }
.chat-panel {
    position: fixed;
    right: 16px;
    bottom: 215px;
    width: 320px;
    max-width: calc(100% - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(8,41,59,0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}
.chat-panel.active { display: flex; }
.chat-panel header {
    padding: 16px;
    background: #0b2238;
    color: #fff;
}
.chat-panel header h5 {
    margin: 0;
    font-size: 1rem;
}
.chat-panel .chat-body {
    padding: 16px;
    display: grid;
    gap: 12px;
    background: #f5f7fb;
}
.chat-panel .chat-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.chat-panel .chat-channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(11,34,56,0.12);
}
.chat-panel .chat-channel i {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}
.chat-panel .chat-channel.whatsapp i { background:#25d366; }
.chat-panel .chat-channel.messenger i { background:#0084ff; }
.chat-panel .chat-channel.crisp i { background:#0f9ed6; }
.chat-panel footer {
    padding: 12px 16px;
    font-size: .85rem;
    color: var(--muted);
    background: #fff;
}
@media (max-width:768px){
  .chat-toggle {
    bottom: 130px;
  }
  .chat-panel {
    bottom: 190px;
  }
}

.blog-lang-btn.active{background:#fff;color:#0b2238;font-weight:600;}
.blog-entries article .card-img-top{height:220px;object-fit:cover;}
.newsletter-form .form-control{border-radius:10px;}
.client-login-form .form-label{font-weight:600;color:var(--dark);}
.client-login-form .form-control{border-radius:10px;}
.client-login-form .btn-primary{border-radius:10px;}
.accordion-button{font-weight:600;}
.accordion-button:not(.collapsed){background:#f1f4f9;color:var(--dark);}
.accordion-button:focus{box-shadow:none;}
.map-iframe{border:0;width:100%;height:100%;}

/* Styles pour la page services */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-title {
    color: var(--dark);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-description {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.media-gallery {
    margin-top: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.gallery-video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Style pour les contrôles vidéo */
video::-webkit-media-controls {
    background-color: rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .gallery-img,
    .gallery-video {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .carousel {
        max-width: 100%;
        margin: 1.5rem auto;
        border-radius: 8px;
    }
    .carousel-img {
        height: 240px;
    }
    .project-title {
        font-size: 1.1rem;
    }
    .project-description {
        font-size: 0.85rem;
    }
    .carousel-caption {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .gallery-img,
    .gallery-video {
        height: 180px;
    }
}

/* Logo / brand image styles */
.site-logo{display:inline-flex;align-items:center;text-decoration:none}
.site-logo img{display:block;max-width:100%;height:auto;width:420px;max-height:120px}

/* Reduce logo size on very small screens */
@media (max-width:576px){
  .site-logo img{width:240px;max-height:100px}
}
