/* Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --background-color: #f4f4f4;
    --card-background: #fff;
    --font-family: 'Roboto', sans-serif;
}

/* Base */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

header nav ul li {
    margin: 0 15px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--primary-color);
}

/* Bannière pleine largeur */
#banner-full-width {
    width: 100%;
    overflow: hidden; /* S'assure que l'image ne déborde pas */
    margin-bottom: 2rem; /* Espacement après la bannière */
}

.banner-image {
    width: 100%;
    height: auto; /* Maintient le ratio de l'image */
    display: block; /* Supprime l'espace sous l'image */
}

/* Vous pouvez ajuster les styles existants si nécessaire pour la bannière et le logo */
/* Par exemple, si vous voulez que la section #hero vienne juste après la bannière */
#hero {
    /* Supprimez les marges hautes si elles sont en conflit avec la bannière */
    margin-top: 0; 
    padding-top: 50px; /* Ajustez le padding pour le contenu */
}

/* Bannière et Logo */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-and-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    width: 120px; /* Ajuste la taille du logo selon tes préférences */
    height: auto;
    margin-right: 15px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

header h1 {
    font-size: 2.8rem;
    margin: 0;
}

header p {
    font-size: 1.1rem;
    margin-top: 0;
}

/* Ajustements pour la navigation si nécessaire */
header nav {
    margin-top: 20px;
}

/* Sections */
#hero {
    background: url('https://source.unsplash.com/random/1600x900/?linux,code') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

#hero h2, #hero p, #hero .cta-button {
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #0056b3;
}

#services-preview {
    padding: 4rem 0;
    text-align: center;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s ease;
}

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

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .service-cards {
        flex-direction: column;
    }
}

/* Services Page Styles */

#services-page-intro {
    text-align: center;
    padding: 4rem 0 2rem;
}

.service-details {
    padding: 2rem 0;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-icon {
    flex-shrink: 0;
    font-size: 4rem;
    color: var(--primary-color);
    text-align: center;
    width: 100px;
}

.service-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.service-content p {
    margin-right: 125px;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-content li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23007BFF" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>') no-repeat left center;
    background-size: 16px;
    padding-left: 25px;
    margin-bottom: 10px;
}

#contact-cta {
    text-align: center;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 4rem 0;
}

#contact-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .service-item, .service-item.reverse {
        flex-direction: column;
        text-align: center;
    }
    .service-item .service-icon {
        margin-bottom: 1rem;
    }
}

/* Blog Page Styles */
#blog-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

#blog-posts {
    padding: 2rem 0;
}

.blog-post {
    display: flex;
    gap: 2rem;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post img {
    width: 300px;
    height: auto;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
}

.post-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.post-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
    }

    .blog-post img {
        width: 100%;
        height: 200px; /* Taille fixe sur mobile */
    }
}

/* Contact Page Styles */
#contact-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

#contact-form-section {
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1 colonne pour les infos, 2 pour le formulaire */
    gap: 3rem;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 3rem;
}

.contact-info h3, .contact-form h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    box-sizing: border-box; /* Inclut le padding dans la largeur totale */
}

.form-group textarea {
    resize: vertical; /* Permet de redimensionner verticalement */
}

.contact-form .cta-button {
    width: auto; /* Pour ne pas prendre toute la largeur */
    padding: 12px 25px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
        padding: 2rem;
    }
    .contact-form {
        margin-top: 2rem;
    }
}

/* Projets Page Styles */
#projets-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

#projets-list {
    padding: 2rem 0;
}

.projet-card {
    display: flex;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.projet-card img {
    width: 350px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.project-tags {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-project-button {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: margin-left 0.3s ease;
}

.view-project-button:hover {
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .projet-card {
        flex-direction: column;
        text-align: center;
    }
    .projet-card img {
        width: 100%;
        height: 250px;
    }
    .card-content {
        padding: 1.5rem;
    }
}

/* Team page style */
#team-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

#team-list {
    padding: 2rem 0;
}

.team-card {
    display: flex;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.team-card img {
    width: 350px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.project-tags {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-project-button {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: margin-left 0.3s ease;
}

.view-project-button:hover {
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .team-card {
        flex-direction: column;
        text-align: center;
    }
    .team-card img {
        width: 100%;
        height: 250px;
    }
    .card-content {
        padding: 1.5rem;
    }
}