/* ===== VARIABLES CSS ===== */
:root {
    --primary-black: #0D0D0D;
    --secondary-black: #1A1A1A;
    --accent-red: #ed1d24;
    --bright-red: #ff2a32;
    --dark-red: #b0151b;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
    --dark-gray: #2A2A2A;
    --text-light: #B8B8B8;
    
    --bg-primary: var(--primary-black);
    --bg-secondary: var(--secondary-black);
    --bg-card: var(--dark-gray);
    --text-primary: var(--white);
    --text-secondary: var(--text-light);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* THÈME CLAIR */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-card: #FFFFFF;
    --text-primary: #0D0D0D;
    --text-secondary: #5A5A5A;
    --border-color: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo i {
    color: var(--accent-red);
    font-size: 30px;
}

/* ===== LOGO AVEC THÈMES ===== */
.logo-img {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* Logo par défaut (mode sombre) */
.logo-img-dark {
    display: block;
}

.logo-img-light {
    display: none;
}

/* En mode clair, on inverse */
[data-theme="light"] .logo-img-dark {
    display: none;
}

[data-theme="light"] .logo-img-light {
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-red);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-red);
    transform: rotate(180deg);
}

.theme-toggle i {
    color: var(--text-primary);
    font-size: 18px;
}

.language-selector {
    display: flex;
    gap: 5px;
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn.active {
    background-color: var(--accent-red);
    color: var(--white);
}

.btn-cta {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cta:hover {
    background-color: var(--bright-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 29, 36, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomEffect 10s ease-in-out infinite;
}

@keyframes zoomEffect {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-slider .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-slider .hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 900px;
}

.hero-slider .hero-subtitle {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    max-width: 700px;
}

/* Contrôles du slider */
.hero-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--accent-red);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.hero-slider-control:hover {
    background-color: var(--bright-red);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.hero-slider-control.prev {
    left: 30px;
}

.hero-slider-control.next {
    right: 30px;
}

/* Dots indicateurs */
.hero-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: var(--accent-red);
    transform: scale(1.2);
    width: 30px;
    border-radius: 10px;
}

/* Scroll indicator */
.hero-slider .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-slider .scroll-indicator i {
    font-size: 30px;
    color: var(--white);
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-slider .hero-title {
        font-size: 38px;
    }

    .hero-slider .hero-subtitle {
        font-size: 18px;
    }

    .hero-slider-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-slider-control.prev {
        left: 15px;
    }

    .hero-slider-control.next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-slider .hero-title {
        font-size: 28px;
    }

    .hero-slider .hero-subtitle {
        font-size: 16px;
    }

    .hero-dots {
        bottom: 80px;
    }
}
/* ===== BUTTONS ===== */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--bright-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(237, 29, 36, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-red);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}


/* ===== SECTIONS STYLING ===== */
.section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title-large {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.3;
    color: var(--text-primary);
}

/* ===== ABOUT INTRO SECTION ===== */
.about-intro {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-text .btn {
    margin-top: 15px;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.about-image-placeholder i {
    font-size: 120px;
    color: var(--accent-red);
    opacity: 0.3;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 120px 0;
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-red);
}

.service-icon {
    font-size: 50px;
    color: var(--accent-red);
    margin-bottom: 25px;
}

.service-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

/* ===== WHY US SECTION ===== */
.why-us-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.why-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-icon {
    font-size: 50px;
    color: var(--accent-red);
    margin-bottom: 25px;
}

.why-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.why-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 120px 0;
    background-color: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 35px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.testimonial-stars {
    color: var(--accent-red);
    margin-bottom: 20px;
    font-size: 18px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 16px;
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--dark-red) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-primary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--accent-red);
    font-size: 28px;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.footer-col h4 {
    color: var(--accent-red);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--accent-red);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-contact li i {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-red);
}

/* ===== CHATBOT ===== */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-button {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--bright-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(237, 29, 36, 0.4);
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(237, 29, 36, 0.6);
}

.chatbot-button i {
    color: var(--white);
    font-size: 30px;
}

.chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chatbot-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--bright-red) 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-header i {
    font-size: 30px;
    color: var(--white);
}

.chatbot-header h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 3px;
}

.status-online {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--bg-primary);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 3px;
}

.bot-message,
.user-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background-color: var(--bg-card);
}

.message-avatar i {
    color: var(--white);
    font-size: 16px;
}

.message-content {
    background-color: var(--bg-card);
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 70%;
}

.user-message .message-content {
    background-color: var(--accent-red);
}

.message-content p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.user-message .message-content p {
    color: var(--white);
}

.chatbot-quick-replies {
    padding: 15px 20px;
    background-color: var(--bg-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border-color);
}

.quick-reply {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--accent-red);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.quick-reply:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

.chatbot-input {
    display: flex;
    padding: 15px 20px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid transparent;
    padding: 12px 15px;
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
    border-color: var(--accent-red);
}

.chatbot-input button {
    background-color: var(--accent-red);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input button:hover {
    background-color: var(--bright-red);
}

.chatbot-input button i {
    color: var(--white);
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        padding: 30px 0;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-controls {
        gap: 10px;
    }

    .btn-cta {
        display: none;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title-large {
        font-size: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-grid,
    .why-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chatbot-window {
        width: calc(100vw - 40px);
        max-width: 380px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .chatbot-button {
        width: 60px;
        height: 60px;
    }
}

/* ===== PAGE HEADER (Pour les pages internes) ===== */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICES DETAIL SECTION ===== */
.services-detail-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.service-detail {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}

.service-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail.reverse {
    grid-template-columns: 1fr 120px;
}

.service-detail.reverse .service-detail-icon {
    order: 2;
}

.service-detail.reverse .service-detail-content {
    order: 1;
}

.service-detail-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--bright-red) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--white);
}

.service-detail-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-detail-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 16px;
}

.service-features li i {
    color: var(--accent-red);
    font-size: 18px;
}

/* ===== PROJECTS GRID ===== */
.projects-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--accent-red);
}

.project-image i {
    font-size: 80px;
    color: var(--accent-red);
    opacity: 0.3;
}

.project-content {
    padding: 30px;
}

.project-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

/* ===== ABOUT PAGE ===== */
.about-page-section {
    padding: 80px 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-info-card h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.info-item {
    display: flex;
    align-items: start;
    gap: 20px;
    margin-bottom: 30px;
}

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

.info-icon i {
    color: var(--white);
    font-size: 22px;
}

.info-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

.info-content a {
    color: var(--accent-red);
    text-decoration: none;
}

.contact-form-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-form-card h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--accent-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--bright-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 29, 36, 0.4);
}

.map-section {
    height: 400px;
    margin-top: 80px;
    border-radius: 15px;
    overflow: hidden;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 968px) {
    .page-header h1 {
        font-size: 36px;
    }

    .service-detail,
    .service-detail.reverse {
        grid-template-columns: 1fr;
    }

    .service-detail.reverse .service-detail-icon,
    .service-detail.reverse .service-detail-content {
        order: initial;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}
/* ===== CORRECTION FOOTER AVEC LOGO ===== */

/* Logo footer - meilleur affichage */
.footer-logo {
    margin-bottom: 20px;
    display: block;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    display: block;
}

/* Mode sombre : afficher logo blanc */
body:not([data-theme="light"]) .footer-logo-dark {
    display: block;
}

body:not([data-theme="light"]) .footer-logo-light {
    display: none;
}

/* Mode clair : afficher logo noir */
[data-theme="light"] .footer-logo-dark {
    display: none;
}

[data-theme="light"] .footer-logo-light {
    display: block;
}

/* Supprimer les anciens styles icône + texte */
.footer-logo i.fas.fa-shield-alt {
    display: none;
}

.footer-logo span {
    display: none;
}

/* Footer première colonne */
.footer-content .footer-col:first-child {
    max-width: 100%;
}

/* Responsive footer logo */
@media (max-width: 768px) {
    .footer-logo-img {
        height: 40px;
        margin: 0 auto;
    }
    
    .footer-col:first-child {
        text-align: center;
    }
}
/* ===== CORRECTIONS NAVIGATION MOBILE ===== */

/* Hamburger menu - amélioration */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animation hamburger actif */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation mobile */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        padding: 30px 0;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        gap: 0;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        width: 100%;
        font-size: 16px;
    }

    .nav-controls {
        position: fixed;
        top: calc(80px + 280px);
        right: -100%;
        flex-direction: column;
        background-color: var(--bg-secondary);
        padding: 20px;
        width: 100%;
        gap: 15px;
        transition: right 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 998;
        border-top: 1px solid var(--border-color);
    }

    .nav-controls.active {
        right: 0;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .language-selector {
        justify-content: center;
    }

    .theme-toggle {
        margin: 0 auto;
    }
}

/* ===== CORRECTIONS HERO SLIDER MOBILE ===== */

/* Hero slider responsive */
@media (max-width: 968px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }

    .hero-slide {
        padding: 20px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-cta {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Boutons navigation slider */
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hero-nav-btn.prev {
        left: 10px;
    }

    .hero-nav-btn.next {
        right: 10px;
    }

    /* Dots indicateurs */
    .hero-dots {
        bottom: 20px;
        gap: 8px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 65vh;
        min-height: 450px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Assurer que le slider est visible */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Fix overlay pour meilleure lisibilité */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.6) 0%, rgba(13, 13, 13, 0.8) 100%);
    z-index: 0;
}
