:root {
  --color-primary: #0170B9;
  --color-primary-dark: #015a94;
  --color-text: #4B4F58;
  --color-heading: #3a3a3a;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F5;
  --color-bg-dark: #3a3a3a;
  --color-border: #e5e7eb;
  --color-white: #FFFFFF;
  --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1em; }

ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5em 1em;
  background: var(--color-primary);
  color: white;
}
.skip-link:focus { left: 0; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand .logo { border-radius: 4px; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-heading);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--color-primary); background: rgba(1,112,185,0.06); }
.nav-cta {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--color-primary);
  color: white !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.3s;
  position: absolute;
  left: 6px;
}
.hamburger { top: 17px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; top: 7px; }
.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open .hamburger::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-cta { display: none; }
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--color-bg-dark), #1a1a2e);
  color: white;
  padding: 6rem 1.5rem;
  text-align: center;
}
.hero h1 { color: white; font-size: 3rem; margin-bottom: 0.5em; }
.hero-subtitle { font-size: 1.3rem; opacity: 0.9; margin-bottom: 1.5em; }
.hero-sm { padding: 3rem 1.5rem; }
.hero-sm h1 { font-size: 2.2rem; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: white !important;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

/* === SECTIONS === */
.section { padding: 4rem 1.5rem; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 4rem 1.5rem;
}
.section-cta h2 { color: white; }
.section-cta p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 1.5em; }
.container { max-width: var(--max-width); margin: 0 auto; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 2em;
}
.caption { font-size: 0.85rem; color: #888; margin-top: 0.5em; font-style: italic; }

/* === GRIDS === */
.grid { display: grid; gap: 2rem; margin-top: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-item { display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-sm h1 { font-size: 1.6rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

/* === CARDS === */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card img { margin-bottom: 1rem; width: 100%; height: 200px; object-fit: cover; }
.card h3 { margin-bottom: 0.5em; }

.service-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: background 0.2s;
}
.service-card:hover { background: rgba(255,255,255,0.12); }
.service-card img { margin: 0 auto 1rem; border-radius: var(--radius); width: 100%; height: 180px; object-fit: cover; }

.service-detail { text-align: center; }
.service-detail img { margin: 0 auto 1rem; border-radius: var(--radius); width: 100%; max-width: 400px; height: auto; }

.blog-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--color-text);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); color: var(--color-text); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; }
.blog-card h2, .blog-card h3 { padding: 1rem 1.2rem 0; font-size: 1.1rem; }
.blog-card p { padding: 0.5rem 1.2rem 1.2rem; font-size: 0.9rem; color: #666; }

/* === CHECK LIST === */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 0.4em 0 0.4em 1.8em;
  position: relative;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.1em;
}

/* === ARTICLE CONTENT === */
.article-content { max-width: 800px; margin: 0 auto; }
.article-hero-img { width: 100%; max-height: 500px; object-fit: cover; margin-bottom: 2rem; }
.article-content h2 { margin-top: 2em; }
.article-content ul, .article-content ol { margin-bottom: 1.5em; }

/* === CONTENT PAGES (mentions, politique) === */
.content-page { max-width: 800px; margin: 0 auto; }
.content-page h2 { margin-top: 2em; border-bottom: 1px solid var(--color-border); padding-bottom: 0.3em; }

/* === CONTACT === */
.contact-info { padding: 1rem 0; }
.contact-item { margin-bottom: 1.5em; }
.contact-item h3 { font-size: 1rem; color: var(--color-primary); margin-bottom: 0.3em; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3em;
  color: var(--color-heading);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1,112,185,0.1);
}

/* === FOOTER === */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h3 { color: white; font-size: 1rem; margin-bottom: 1em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.4em; }
.footer-col ul a { color: rgba(255,255,255,0.7); }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0; }

@media (max-width: 768px) {
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
