/**
 * Just In Tech - Styles Personnalisés
 * Version: 1.0.0
 */

/* ==================== RESET GLOBAL - SUPPRIME ESPACE EN HAUT ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
}

/* ==================== Variables CSS ==================== */
:root {
    --primary-color: #FFC107;
    --primary-dark: #FFB300;
    --secondary-color: #212121;
    --tertiary-color: #1976D2;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --text-color: #333333;
    --text-muted: #6c757d;
    
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

/* ==================== Global Styles ==================== */
body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 700;
}

a {
    transition: var(--transition);
}

/* ==================== Header / Navigation ==================== */
.header {
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand i {
    font-size: 1.8rem;
    vertical-align: middle;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* ==================== Hero Slider ==================== */
.hero-slider {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slide-modern {
    min-height: 500px;
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.slide-content {
    position: relative;
    z-index: 2;
}

.slide-title {
    color: #fff;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.slide-subtitle {
    color: rgba(255, 255, 255, 0.9);
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    animation-fill-mode: both;
}

.slide-button {
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    animation-fill-mode: both;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.slide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.slide-image-wrapper {
    position: relative;
    z-index: 2;
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    animation-fill-mode: both;
}

.slide-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    object-fit: cover;
}

.slide-image:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active .slide-title,
.carousel-item.active .slide-subtitle,
.carousel-item.active .slide-button,
.carousel-item.active .slide-image-wrapper {
    animation-play-state: running;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 193, 7, 0.8);
    border-radius: 50%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* ==================== Cards ==================== */
.card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover,
.testimonial-card:hover,
.shadow-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==================== Buttons ==================== */
.btn {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-warning:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-outline-warning {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-warning:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ==================== Testimonials ==================== */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
}

.stars i {
    font-size: 1.2rem;
}

.avatar-placeholder {
    font-size: 1.5rem;
}

/* ==================== Forms ==================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.was-validated .form-control:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

/* ==================== Footer ==================== */
.footer {
    margin-top: auto;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* ==================== Sticky Call Button ==================== */
.btn-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ==================== Utilities ==================== */
.text-warning {
    color: var(--primary-color) !important;
}

.bg-warning {
    background-color: var(--primary-color) !important;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-slider,
    .hero-slide {
        height: 400px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-slider,
    .hero-slide {
        height: 350px;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* ==================== Loading State ==================== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .header,
    .footer,
    .btn-floating {
        display: none;
    }
}

/* Reset global pour éliminer l'espace au-dessus de la barre d'information */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

.info-bar {
    margin-top: 0 !important;
    position: relative;
    top: 0;
}

/* Reset global margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
}
