/* Custom styles pour le site Caplogik */

/* Police par défaut */
body {
    font-family: 'Nunito Sans', sans-serif;
}

:root {
    --bs-primary: #2b5278;
    --bs-primary-rgb: 43, 82, 120;
    --bs-secondary: #b4c8dc;
    --bs-secondary-rgb: 52, 73, 94;
    --bs-info: #2980b9;
    --bs-info-rgb: 41, 128, 185;
}

/* Surcharges Bootstrap */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #34495e;
    border-color: #34495e;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* Utilitaires */
.min-vh-75 {
    min-height: 75vh;
}

/* Composants */
.service-card {
    transition: transform 0.2s ease-in-out;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Formulaires */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Navigation */
.navbar-dark .navbar-nav .nav-link {
    font-weight: 800;
    font-size: 1.1rem;
    padding-left: 2rem;
    color: var(--bs-primary);
}

/* Styles pour navbar sur fond blanc */
.navbar-light .navbar-nav .nav-link {
    color: var(--bs-primary);
    font-weight: 800;
    font-size: 1.1rem;
    padding-left: 2rem;
    transition: color 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #34495e;
}

/* Bouton hamburger personnalisé */
.navbar-toggler {
    border: 2px solid var(--bs-primary);
    background-color: var(--bs-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

.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='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.navbar-logo {
    height: 70px;
    width: auto;
    max-width: 150px;
}

/* Réduction de la hauteur du header en mobile */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 50px;
    }
    
    .navbar {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

/* Espacement pour le header fixe */
section {
    scroll-margin-top: 80px;
}

/* Espacement vertical plus généreux pour les sections principales */
.section-spacious {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

@media (max-width: 768px) {
    .section-spacious {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* ========================================
   SECTION CLIENTS
   ======================================== */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 100%;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .client-logo {
        height: 100px;
    }
    
    .client-logo img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Style pour les liens dans la section contact */
.contact-content a {
    color: var(--bs-primary);
    transition: color 0.2s ease;
}

.contact-content a:hover {
    color: #34495e;
    text-decoration: underline !important;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bs-primary);
    padding: 1.5rem 0;
    border-top: 1px solid var(--bs-secondary);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}
