/* ========================================
   Rémi Néron Pro Services - Main Styles
   Bootstrap 5 + Custom CSS
   ======================================== */

/* Variables */
:root {
    --primary: #1C2033;
    --primary-light: #2a3050;
    --accent: #cb875f;
    --accent-hover: #b5764f;
    --light: #f8f9fa;
    --dark: #212529;
    --text-light: #6c757d;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', Arial, sans-serif;
    color: var(--dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
}

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

/* ========================================
   Navbar
   ======================================== */
.navbar {
    background-color: var(--primary) !important;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-brand .brand-text {
    line-height: 1.1;
    font-size: 0.9rem;
    font-weight: 600;
}

.navbar-brand .highlight {
    color: var(--accent);
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent) !important;
}

/* ========================================
   Hero Carousel
   ======================================== */
#heroCarousel .carousel-item {
    height: 80vh;
    min-height: 500px;
}

#heroCarousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.carousel-caption-custom {
    position: absolute;
    top: calc(50% + 38px); /* Offset for navbar (76px / 2) */
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 20px;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ========================================
   Features Bar (below carousel)
   ======================================== */
.features-bar {
    background-color: var(--primary);
    padding: 30px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ========================================
   Approach Banner
   ======================================== */
.approach-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    color: #fff;
}

.approach-banner h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.approach-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 80px 0;
    scroll-margin-top: 76px; /* Offset for fixed navbar */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header .lead {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* ========================================
   Cards
   ======================================== */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.card-img-top {
    border-radius: 8px 8px 0 0;
    height: 200px;
    object-fit: cover;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Feature Cards (About section) */
.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card .card-icon {
    margin-bottom: 1.5rem;
}

/* ========================================
   Portfolio/Work Section
   ======================================== */
.portfolio-card .card-img-top {
    height: 220px;
}

.portfolio-card .card-body {
    padding: 1.25rem;
}

.portfolio-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.portfolio-card .card-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Skills Section
   ======================================== */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item .skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-item .progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.skill-item .progress-bar {
    background-color: var(--accent);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-item .progress-bar.animated {
    width: var(--target-width);
}

/* ========================================
   Team Section
   ======================================== */
.team-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent);
    margin-bottom: 1.5rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item .info h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-info-item .info p {
    margin-bottom: 0;
    color: var(--text-light);
}

.contact-info-item .info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info-item .info a:hover {
    color: var(--accent);
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 5px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(203, 135, 95, 0.25);
}

.contact-form .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.contact-form .btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Form alerts */
.form-alert {
    display: none;
    margin-top: 1rem;
}

.form-alert.show {
    display: block;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background-color: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
}

footer h5 {
    color: #fff;
    margin-bottom: 1rem;
}

footer .tagline {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
}

footer hr {
    border-color: rgba(255,255,255,0.2);
    margin: 20px 0;
}

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

/* ========================================
   Buttons
   ======================================== */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--primary);
}

/* ========================================
   Utilities
   ======================================== */
.text-primary {
    color: var(--primary) !important;
}

/* Honeypot field (spam protection) */
.hp-field {
    position: absolute;
    left: -9999px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
        scroll-margin-top: 66px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .team-image {
        width: 200px;
        height: 200px;
    }
}
