/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background: #00bcd4;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0097a7;
    transform: translateY(-2px);
}

/* Header */
header {
    background: #1a1a2e;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00bcd4;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 70px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00bcd4;
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.slider-nav button {
    background: rgba(0, 188, 212, 0.8);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-nav button:hover {
    background: rgba(0, 188, 212, 1);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

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

.dot.active {
    background: #00bcd4;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a2e;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.about-values h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.about-values ul {
    list-style: none;
}

.about-values li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #00bcd4;
}

/* Services Section */
.services {
    padding: 5rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a2e;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.service-card p {
    color: #00bcd4;
    font-weight: bold;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00bcd4;
    font-weight: bold;
}

/* Bouton Voir Plus */
.see-more-btn {
    text-align: center;
    margin: 3rem 0;
}

/* Section domaines d'intervention */
.intervention-domains {
    margin-top: 4rem;
    text-align: center;
}

.intervention-domains h3 {
    color: #1a1a2e;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.domain-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.domain-item:hover {
    transform: translateY(-3px);
}

.domain-item i {
    font-size: 2rem;
    color: #00bcd4;
}

.domain-item span {
    font-weight: 500;
    color: #1a1a2e;
}

/* Additional Services */
.additional-services {
    padding: 5rem 0;
    background: #f8f9fa;
}

.additional-services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a2e;
}

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

.additional-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.additional-card h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a2e;
}

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #00bcd4;
}

.project-card h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #1a1a2e;
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00bcd4;
}

.contact > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Formulaire de contact */
.contact-form {
    background: rgba(0, 188, 212, 0.1);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h3 {
    color: #00bcd4;
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}

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

/* Informations de contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 10px;
}

.contact-item h3 {
    color: #00bcd4;
    margin-bottom: 1rem;
}

.contact-item h3 i {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: #00bcd4;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #00bcd4;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #00bcd4;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #0097a7;
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    color: #333;
}

.newsletter-form button {
    background: #00bcd4;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #0097a7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* Bouton de retour en haut */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00bcd4;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0097a7;
    transform: translateY(-2px);
}

/* Services Page Styles */
.page-header {
    background: #1a1a2e;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: #00bcd4;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.services-page {
    padding: 5rem 0;
}

/* Services List - 2 colonnes */
.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

/* Carrousel infini pour les images */
.service-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s ease-in-out;
}

.carousel-img.active {
    opacity: 1;
}

.carousel-img.slide-left {
    transform: translateX(-100%);
}

.carousel-img.slide-right {
    transform: translateX(100%);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: #1a1a2e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content ul {
    list-style: none;
}

.service-content li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.service-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00bcd4;
    font-weight: bold;
}

/* References Page Styles */
.references-page {
    padding: 5rem 0;
}

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

.reference-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #00bcd4;
    transition: transform 0.3s;
}

.reference-item:hover {
    transform: translateY(-5px);
}

.reference-item h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.reference-item .project-type {
    color: #00bcd4;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.reference-item .project-description {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a2e;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

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

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .page-header h1 {
        font-size: 2rem;
    }

    /* Services en 1 colonne sur mobile */
    .services-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 1rem;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

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

    .newsletter-form {
        flex-direction: column;
    }
}