:root {
  --primaire: #044568;
  --fonce: #03344e;
  --accent: #E8742F;
  --fond: #F8F9FB;
}

/* Template Horizon — le bloc :root (palette) est injecté par SiteAssembler
   Variables : --primaire, --fonce, --accent, --fond */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #23303d;
  line-height: 1.65;
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--primaire); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 28px; }
.muted { color: #5c6b7a; font-size: .92rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--fonce); color: #fff; padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e7edf2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--primaire); text-decoration: none; }
.brand-logo { max-height: 44px; width: auto; display: block; }
.main-nav a {
  margin-left: 22px; text-decoration: none; color: #46566a; font-weight: 500;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active { color: var(--primaire); border-bottom-color: var(--accent); }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primaire), var(--fonce));
  background-size: cover; background-position: center;
  color: #fff; padding: 96px 0; text-align: center;
  position: relative; overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.visible { opacity: 1; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; text-align: center; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; margin: 0 5px; padding: 0;
  background: rgba(255, 255, 255, .45); cursor: pointer;
}
.hero-dots button.active { background: #fff; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 16px; }
.hero-sub { font-size: 1.15rem; max-width: 640px; margin: 0 auto 32px; opacity: .95; }

/* Boutons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 13px 30px; border-radius: 999px; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.btn.ghost { background: transparent; color: var(--primaire); border: 2px solid var(--primaire); }
.btn.light { background: #fff; color: var(--fonce); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--fond); }
.section h2 { font-size: 1.7rem; color: var(--fonce); margin-bottom: 22px; }
.lead { font-size: 1.06rem; color: #3c4c5c; margin-bottom: 14px; }
.page-head { background: var(--fond); padding: 52px 0 38px; }
.page-head h1 { color: var(--fonce); font-size: clamp(1.7rem, 4vw, 2.4rem); }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid #e7edf2; border-radius: 14px; padding: 26px;
  box-shadow: 0 2px 8px rgba(16, 42, 67, .05);
}
.card h3 { color: var(--fonce); margin-bottom: 10px; font-size: 1.12rem; }
.card-photo { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.card.highlight { border-top: 4px solid var(--accent); }

/* FAQ */
.faq { background: #fff; border: 1px solid #e7edf2; border-radius: 10px; margin-bottom: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--fonce); }
.faq p { margin-top: 10px; color: #3c4c5c; }

/* Bandeau CTA */
.cta-band { background: linear-gradient(135deg, var(--fonce), var(--primaire)); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-band p { max-width: 620px; margin: 0 auto 24px; opacity: .95; }

/* Galerie */
.galerie-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.galerie-grid img { border-radius: 12px; width: 100%; object-fit: cover; }

/* Pied de page */
.site-footer { background: #1d2733; color: #cfd9e3; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 48px 20px; }
.footer-title { color: #fff; margin-bottom: 12px; font-size: 1.02rem; }
.site-footer a { color: #9fd0cb; text-decoration: none; }
.site-footer .socials a { margin-right: 12px; }
.footer-bottom { border-top: 1px solid #2d3a49; padding: 16px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.watermark { color: #7f95a8 !important; }

/* Responsive */
@media (max-width: 820px) {
  .cards, .cards.two, .footer-grid, .galerie-grid { grid-template-columns: 1fr; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-burger span { width: 24px; height: 2.5px; background: var(--primaire); border-radius: 2px; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e7edf2; padding: 12px 20px 18px;
  }
  .main-nav a { display: block; margin: 10px 0 0; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .hero { padding: 64px 0; }
}
