:root {
  --primary: #1e3a8a;
  --secondary: #2563eb;
  --accent: #60a5fa;
  --bg: #f9fafb;
  --text: #1f2937;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body > main {
  flex: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* ----- HEADER ----- */
header {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 0;
  box-shadow: 0 2px 4px var(--shadow);
  text-align: center;
}

.header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 80px;
  max-width: 200px;
}

.nav-centered {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* ----- HERO SECTION ----- */
.hero {
  background: var(--secondary);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px var(--shadow);
}

/* ----- BUTTON ----- */
.btn {
  background-color: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 1.5rem;
}

.btn:hover {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ----- PRICING TABLE ----- */
.tarif-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  box-shadow: 0 2px 5px var(--shadow);
  margin-top: 1.5rem;
}

.tarif-table th,
.tarif-table td {
  border: 1px solid #e5e7eb;
  padding: 1rem;
  text-align: left;
}

.tarif-table thead {
  background-color: var(--primary);
  color: var(--white);
}

.tarif-table tbody tr:nth-child(even) {
  background-color: #f3f4f6;
}

/* ----- CONTACT FORM ----- */
.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background-color: var(--bg);
}

.contact-form button {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  align-self: flex-start;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: var(--accent);
}

/* ----- FOOTER ----- */
footer,
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* ----- SERVICE CARDS (GRID) ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem auto;
  max-width: 900px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
@media (max-width: 768px) {
  .intro-section {
    flex-direction: column;
    text-align: center;
  }

  .intro-logo {
    margin-top: 1rem;
  }
}

}

.service-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  padding: 1.5rem 0.75rem;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 300px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-content p.description {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  font-size: 0.9rem;
  color: var(--text);
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.service-card:hover .description {
  opacity: 1;
  max-height: 150px;
  margin-top: 0.5rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.intro-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-left h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.intro-left p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  text-align: justify;
}

.intro-right {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.intro-right img {
  max-width: 500px;
  height: auto;
}

/* ✅ Responsive mobile : empile les deux cases */
@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}



:root {
  --primary: #1e3a8a;
  --text: #1f2937;
  --bg: #f9fafb;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
}

body {
  background-color: var(--bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

.legal-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--white);
  box-shadow: 0 2px 8px var(--shadow);
  border-radius: 8px;
}

.legal-container h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.legal-container h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.2rem;
}

.legal-container p,
.legal-container li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.legal-container ul {
  margin-left: 1.5rem;
  padding-left: 0;
}

@media (max-width: 768px) {
  .legal-container {
    padding: 1.2rem;
    margin: 1rem;
  }

  .legal-container h1 {
    font-size: 1.6rem;
  }

  .legal-container h2 {
    font-size: 1.1rem;
  }
}

/* NOUVEAU : Classe pour masquer sémantiquement des éléments (utilisé pour un H1 SEO invisible) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
