/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(44,62,80,0.13);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    background: #fff;
    padding: 2px 4px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fade-in-title, .fade-in-subtitle, .fade-in-text, .fade-in-btn {
    opacity: 0;
}
.fade-in-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transform: translateY(-30px);
    animation: fadeInUp 1s 0.2s forwards;
}
.fade-in-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
    transform: translateY(-30px);
    animation: fadeInUp 1s 0.5s forwards;
}
.fade-in-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    transform: translateY(-30px);
    animation: fadeInUp 1s 0.8s forwards;
}
.fade-in-btn {
    transform: scale(0.95);
    animation: fadeInScale 0.8s 1.1s forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    to { opacity: 1; transform: scale(1); }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}
.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Titres principaux */
.hero h2, .slider-container h2 {
    text-shadow: 0 4px 18px rgba(0,0,0,0.55), 0 1px 0 #fff;
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.hero h2 {
    background: rgba(44,62,80,0.55);
    display: inline-block;
    padding: 0.5em 1.2em;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    color: #fff;
}
.slider-container h2 {
    background: rgba(44,62,80,0.40);
    display: inline-block;
    padding: 0.4em 1.1em;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 2.2rem;
}

section {
    padding: 5rem 0;
}
section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Cards génériques (services, atouts, slider, galerie) */
.card, .service-item, .advantage-item, .slide-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover, .service-item:hover, .advantage-item:hover, .slide-item:hover {
    transform: translateY(-5px);
}
.card i, .service-item i, .advantage-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Grilles */
.services-grid, .advantages-grid, .slider-track {
    display: grid;
    gap: 2rem;
}
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 3rem;
}
.advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.slider-track {
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

/* Images génériques (galerie, slider) */
.gallery-collection .gallery-img, .slider-img {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.1rem;
    filter: grayscale(10%) brightness(0.98) contrast(1.08);
    box-shadow: var(--shadow);
    transition: filter 0.4s, transform 0.4s;
}
.gallery-collection .gallery-img:hover, .slider-img:hover {
    filter: grayscale(0%) brightness(1.08);
    transform: scale(1.03) rotate(-1deg);
    z-index: 2;
}

/* Description sous image */
.slide-desc {
    color: #232526;
    font-size: 1.13rem;
    text-align: center;
    margin-top: 0.5rem;
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    padding: 0.7em 1em;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 4px #0001;
    line-height: 1.5;
    text-shadow: none;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}
.form-group textarea {
    height: 150px;
    resize: vertical;
}
.submit-button {
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.submit-button:hover {
    background-color: #c0392b;
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

/* Social links */
.social-links {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    margin-top: 0;
}
.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    transition: color 0.2s;
}
.social-links a:hover {
    color: #e74c3c;
}
.social-links i {
    font-size: 1.3em;
    color: #e74c3c;
    transition: color 0.2s;
}
.social-links a:hover i {
    color: #2c3e50;
}

/* Alertes formulaire */
#form-alert {
    margin-bottom: 1rem;
    min-height: 32px;
}
.form-alert {
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    animation: fadeInAlert 0.5s;
}
.form-alert.error {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #e74c3c;
}
.form-alert.success {
    background: #eafaf1;
    color: #27ae60;
    border: 1px solid #27ae60;
}
@keyframes fadeInAlert {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slider-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0.8rem 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.8rem 2rem;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

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

    .slider-track {
        grid-template-columns: 1fr;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 30px;
    }

    section {
        padding: 3rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Ajout du bouton menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Amélioration des formulaires sur mobile */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}

@media (max-width: 480px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
}

/* Amélioration des images sur mobile */
.slider-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

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

@media (max-width: 480px) {
    .slider-img {
        max-height: 200px;
    }
}

/* Section À propos décorée */
.about {
    background: linear-gradient(120deg, #f8f9fa 80%, #eaf6fb 100%);
    border-radius: var(--radius);
    box-shadow: 0 2px 18px rgba(44,62,80,0.07);
    padding: 3.5rem 0 3rem 0;
    position: relative;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
.about::before {
    content: '\f0ad'; /* fa-cogs */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5rem;
    color: #e74c3c22;
    z-index: 0;
    pointer-events: none;
}
.about-content {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}
.about-content p {
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}
.about h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.2rem;
    text-align: center;
    letter-spacing: 0.5px;
}
@media (max-width: 600px) {
    .about-content {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .about h2 {
        font-size: 1.2rem;
    }
}

/* Section réalisations moderne */
.projects {
    background: linear-gradient(120deg, #232526 60%, #434343 100%);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.13);
    padding: 4.5rem 0 4rem 0;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}
.slider-container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}
.slider-container h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    border-radius: 18px;
    padding: 0.7em 2em;
    margin: 0 auto 2.2rem auto;
    box-shadow: 0 2px 12px rgba(44,62,80,0.10);
    text-align: center;
    width: fit-content;
    letter-spacing: 0.5px;
    position: relative;
}
.slider-title-icon {
    font-size: 1.5em;
    color: #e74c3c;
    filter: drop-shadow(0 2px 6px #0002);
}
@media (max-width: 600px) {
    .projects {
        padding: 2.2rem 0 2rem 0;
        border-radius: 10px;
    }
    .slider-container h2 {
        font-size: 1.1rem;
        padding: 0.4em 0.7em;
        border-radius: 8px;
    }
    .slider-title-icon {
        font-size: 1.1em;
    }
}

.slider-container p {
    background: rgba(255,255,255,0.85);
    color: #232526;
    padding: 1.1em 1.5em;
    border-radius: 12px;
    font-size: 1.08rem;
    margin: 0 auto 2.2rem auto;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
}
@media (max-width: 600px) {
    .slider-container p {
        font-size: 0.98rem;
        padding: 0.7em 0.5em;
    }
} 