/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #111;
  line-height: 1.6;
}

/* Color palette (bleu blanc moderne) */
:root {
  --primary: #0044cc;
  --primary-light: #eaf0fb;
  --secondary: #0a0a0a;
  --accent: #007fff;
  --text-dark: #111;
  --text-light: #fff;
  --bg-light: #f9f9f9;
}

/* Global containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* Header */
header {
  background: var(--primary);
  color: white;
  padding: 1rem 0;
}

header .logo {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  background-image: url('images/main_hero.jpg');
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.3rem;
  color: #f0f0f0;
  max-width: 600px;
  margin: 1rem auto;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 60px;
  margin: 0.5rem auto;
  background: var(--accent);
  border-radius: 4px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.3s;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.service-card h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.service-card p {
  color: #555;
  margin-top: 0.5rem;
}

/* Contact */
.contact-section {
  background: var(--primary-light);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.contact-section p,
.contact-section a {
  font-size: 1.1rem;
  color: var(--secondary);
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

footer .footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer .footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

footer .footer-links a:hover {
  color: var(--accent);
}

footer .credits {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .service-card img {
    height: 180px;
  }
}
