/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
:root {
  --color-primary: #051024;    /* Bleu nuit profond */
  --color-secondary: #f0f2f5;  /* Gris perle très léger */
  --color-accent: #c0a062;     /* Accent or/cuivre discret (optionnel) */
  --color-text-main: #222222;  /* Gris très foncé pour le texte principal */
  --color-text-light: #ffffff; /* Blanc pur */
  --color-bg-main: #ffffff;    /* Blanc pur pour le fond général */
  
  --font-family-sans: 'Helvetica Neue', Arial, sans-serif;
  --font-family-serif: 'Georgia', serif; /* Pour des titres plus premium */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

p {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   LAYOUT & COMPONENTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex-grow: 1; /* Permet au main de prendre tout l'espace disponible, poussant le footer en bas */
}

/* --- Navbar --- */
.navbar {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-family-serif);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.navbar-nav {
  display: none; /* Masqué sur mobile par défaut, nécessiterait JS pour le burger */
}

/* --- Hero Section --- */
.hero {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 4px solid var(--color-secondary);
}

.hero h1 {
  color: var(--color-text-light);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* --- Cards Grid Section --- */
.section-services {
  padding: 4rem 0;
  background-color: var(--color-secondary);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

.card {
  background-color: var(--color-bg-main);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-top-color: var(--color-primary);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  background-color: var(--color-bg-main);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0a1e42;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

/* ==========================================================================
   MEDIA QUERIES (Desktop)
   ========================================================================== */
@media (min-width: 768px) {
  /* Navbar */
  .navbar-nav {
    display: flex;
    gap: 2rem;
  }
  
  .navbar-nav a {
    font-weight: 500;
  }
  
  .navbar-nav a:hover {
    color: var(--color-secondary);
  }

  /* Hero */
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }

  /* Cards Grid */
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0;
  }
}