:root {
    --primary: #bc1a27;
    --primary-dark: #9a151f;
    --primary-light: #e74c3c;
    --secondary: #2c3e50;
    --secondary-light: #34495e;
    --accent: #f39c12;
    --dark: #111214;
    --dark-light: #1a1d23;
    --light: #f8f9fa;
    --gray: #95a5a6;
    --white: #ffffff;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, rgba(17, 18, 20, 0.9) 0%, rgba(44, 62, 80, 0.8) 100%);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title {
    position: relative;
    margin-bottom: 3.5rem;
    font-size: 2.5rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Links - Suppression du soulignement */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    text-decoration: none !important;
}

.btn-primary-custom:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary-custom:hover:before {
    left: 0;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(188, 26, 39, 0.3);
    color: var(--white);
    text-decoration: none;
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.4s ease;
    display: inline-block;
    text-decoration: none !important;
}

.btn-outline-custom:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Navigation */
.navbar {
    padding: 1.2rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(17, 18, 20, 0.98) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand img {
    max-width: 160px;
    transition: all 0.3s ease;
}

.nav-item {
    margin: 0 8px;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none !important;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(188, 26, 39, 0.1);
    text-decoration: none;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 80%;
}

.phone-nav {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 600;
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.phone-nav:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(188, 26, 39, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(188, 26, 39, 0.2);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(188, 26, 39, 0.3);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.hero-stat-text {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--dark-light);
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.service-card:hover:before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--white);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.service-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

.service-features li:before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--dark);
}

.about-content {
    padding-right: 3rem;
}

.about-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(188, 26, 39, 0.1);
}

.value-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Solutions Section */
.solutions {
    padding: 120px 0;
    background: var(--dark-light);
}

.solution-tabs {
    margin-bottom: 3rem;
}

.nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    margin: 0 10px 10px 0;
    border-radius: 8px;
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(188, 26, 39, 0.3);
}

.solution-content {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-content h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.solution-content p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact & Devis Section */
.contact {
    padding: 120px 0;
    background: var(--dark-light);
}

.contact-info {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.contact-item-horizontal {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item-horizontal:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(188, 26, 39, 0.3);
}

.contact-item-horizontal .contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.contact-item-horizontal h5 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-item-horizontal p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* Formulaire de devis amélioré */
.quote-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-form-wrapper h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.quote-form {
    max-width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(188, 26, 39, 0.2);
    color: var(--white);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Style pour les select */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

/* Styles pour les options du select */
.form-control option {
    background-color: var(--dark);
    color: var(--white);
    padding: 10px;
}

/* Style pour l'option "Audit de Sécurité" en noir */
.form-control option[value="audit"] {
    background-color: black !important;
    color: white !important;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 100px 0 30px;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.copyright p {
    margin-bottom: 0.5rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.page-transition.active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-top: 3rem;
    }
    
    .nav-link {
        padding: 10px 0 !important;
    }
    
    .phone-nav {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .contact-item-horizontal {
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .contact-info, .quote-form-wrapper {
        padding: 2rem;
    }
    
    .cta h2 {
        font-size: 2.2rem;
    }
    
    .solution-tabs {
        margin-bottom: 1.5rem;
    }
    
    .nav-pills .nav-link {
        margin: 0 5px 10px 0;
        padding: 12px 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
        justify-content: space-around;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .contact-info, .quote-form-wrapper {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .quote-form-wrapper h3 {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
}