/* Base Styles */
:root {
    --primary-color: #e60000;
    --primary-dark: #c00000;
    --primary-light: #ff3333;
    --secondary-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 0.25rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}



.phone-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    background-color: white;
}

.phone-prefix {
    margin-right: 0.5rem;
    color: var(--gray-600);
}

.phone-input input {
    border: none;
    outline: none;
    flex: 1;
    font-family: inherit;
    font-size: 1rem;
}

.phone-input input:focus {
    box-shadow: none;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--primary-color);
    margin: 0 auto 1.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--gray-100);
}

/* Header / Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    padding: 0.5rem 0;
}

#header.scrolled {
    background-color: white;
    box-shadow: var(--shadow);
}

#header.scrolled .logo,
#header.scrolled .nav-link {
    color: var(--gray-800);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-menu ul {
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-link {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 5px;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('../images/img_accueil.jpg'); /* Chemin de l'image */
    background-size: cover; /* Pour couvrir toute la section */
    background-position: center; /* Pour centrer l'image */
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(230, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.card p {
    color: var(--gray-600);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 0.5rem;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.product-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Bouton Commander */
.btn-product {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-top: 0.5rem;
}

.btn-product:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Clients Section */
.clients-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.clients-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 3)); /* Largeur de chaque logo * nombre de logos uniques */
    }
}

.client-logo {
    width: 200px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    flex-shrink: 0;
}

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

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

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form h3,
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.2);
    background-color: rgba(255, 248, 248, 0.5);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.info-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.info-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.info-content p {
    color: var(--gray-600);
}

.map-container {
    height: 250px;
    background-color: var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.map-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-about p {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.footer-links ul {
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
}

.footer-links a:hover {
    color: white;
}

.footer-contact address {
    font-style: normal;
    color: var(--gray-400);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

/* Footer Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-width: 300px;
    transform: translateX(calc(100% + 30px));
    transition: transform 0.3s ease;
    z-index: 1001;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
}

.toast-icon {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.toast-message {
    flex: 1;
}

.toast-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    color: var(--gray-600);
}

.toast-progress {
    height: 3px;
    background-color: var(--success-color);
    margin-top: 0.75rem;
    width: 100%;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        width: 0%;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        transition: 0.3s;
        box-shadow: var(--shadow);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    .nav-menu li {
        margin: 0 0 1rem 0;
    }
    
    .nav-menu li:last-child {
        margin-bottom: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .about-cards,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .toast {
        min-width: auto;
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        bottom: 15px;
        transform: translateY(calc(100% + 30px));
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .about-cards,
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .client-logo {
        width: 150px;
        height: 100px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 3));
        }
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .card-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Products Section - New Slider */
.product-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-slider {
    position: relative;
    padding: 0 40px;
    margin-bottom: 2rem;
}

.slider-container {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 300px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 0.5rem;
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.product-content p {
    color: var(--gray-600);
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary-dark);
}

.slider-btn.prev-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.slider-btn.next-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive styles for product slider */
@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(50% - 20px);
        min-width: 250px;
    }
    
    .section-header p {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .product-slider {
        padding: 0 30px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .product-card {
        min-width: 220px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .product-content p {
        font-size: 0.9rem;
    }
    
    .map-container {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 calc(100% - 20px);
        min-width: 200px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .product-slider {
        padding: 0 25px;
    }
    
    .slider-btn {
        width: 25px;
        height: 25px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .card-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .product-card {
        min-width: 180px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 0.75rem;
    }
    
    .product-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-content p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-product {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .slider-btn {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
}

/* Pour les très petits écrans */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .product-slider {
        padding: 0 20px;
    }
    
    .slider-btn {
        width: 20px;
        height: 20px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.contact-form {
    transition: all 0.5s ease;
    border-radius: var(--border-radius);
    position: relative;
}

.contact-form.highlight {
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.6);
    transform: scale(1.03);
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    z-index: 5;
}

.contact-form.highlight::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    animation: pulse 1.5s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}