:root {
  --primaire: #044568;
  --fonce: #03344e;
  --accent: #D4A574;
  --fond: #F8FAFB;
}

/* Template Essentiel — le bloc :root (palette) est injecté par SiteAssembler
   Variables : --primaire, --fonce, --accent, --fond */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #2c2c2c;
  line-height: 1.75;
  background: #fff;
  /* Fond discret aux couleurs du site : halos à ~4-5 %, aucun fichier image */
  background:
    radial-gradient(860px 500px at 90% -6%, color-mix(in srgb, var(--primaire) 5%, transparent), transparent 70%),
    radial-gradient(720px 440px at -6% 60%, color-mix(in srgb, var(--primaire) 4%, transparent), transparent 72%),
    #fff;
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 26px; }
.muted { color: #8a8a8a; font-size: .9rem; }
a { color: var(--primaire); }
.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 */
.masthead { background: var(--fond); text-align: center; padding-top: 40px; }
.brand { font-size: 2rem; font-weight: 700; color: var(--primaire); text-decoration: none; letter-spacing: .5px; }
.brand-logo { max-height: 64px; width: auto; display: inline-block; }
.tagline { font-style: italic; color: #6a6a6a; margin: 6px 0 24px; }
.main-nav { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; background: #fff; }
.main-nav .container { display: flex; justify-content: center; flex-wrap: wrap; }
.main-nav a {
  padding: 12px 18px; text-decoration: none; color: #444;
  font-family: 'Segoe UI', system-ui, sans-serif; font-size: .93rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active { color: var(--primaire); }

/* Hero */
.hero { text-align: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--primaire); margin-bottom: 16px; }
.hero-sub { max-width: 620px; margin: 0 auto 30px; font-size: 1.08rem; color: #555; }
.hero-photo { margin-bottom: 40px; }
.hero-photo img { width: 100%; max-height: 420px; object-fit: cover; border: 1px solid #e5e0d8; }
.hero-photo.hero-carousel { position: relative; height: 420px; }
.hero-photo.hero-carousel img {
  position: absolute; inset: 0; height: 100%; max-height: none;
  opacity: 0; transition: opacity 1s ease;
}
.hero-photo.hero-carousel img.visible { opacity: 1; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; 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, .55); cursor: pointer; box-shadow: 0 0 3px rgba(0, 0, 0, .4);
}
.hero-dots button.active { background: #fff; }

/* Boutons */
.btn {
  display: inline-block; background: var(--primaire); color: #fff; text-decoration: none;
  padding: 12px 32px; font-family: 'Segoe UI', system-ui, sans-serif;
  letter-spacing: .5px; border: 1px solid var(--primaire);
}
.btn:hover, .btn:focus { background: var(--accent); border-color: var(--accent); }
.btn.outline { background: transparent; color: var(--primaire); }
.btn.outline:hover, .btn.outline:focus { background: var(--primaire); color: #fff; }
.btn.light { background: #fff; color: var(--fonce); border-color: #fff; }

/* Sections */
.section { padding: 52px 0; }
.section.framed { background: var(--fond); border-top: 1px solid #e5e0d8; border-bottom: 1px solid #e5e0d8; }
.section h2 {
  font-size: 1.5rem; color: var(--primaire); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block;
}
.section p { margin-bottom: 14px; }
.page-head { background: var(--fond); text-align: center; padding: 48px 0 36px; }
.page-head h1 { color: var(--primaire); font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* Services */
.service-list { list-style: none; }
.service-list li { padding: 18px 0; border-bottom: 1px dotted #cfc8bc; }
.service-list li.with-photo { display: flex; gap: 18px; align-items: flex-start; }
.photo-zoom { overflow: hidden; border: 1px solid #e5e0d8; }
.photo-zoom img { display: block; transition: transform .7s ease; }
.photo-zoom:hover img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .photo-zoom img { transition: none; } }
.photo-zoom-service { flex-shrink: 0; }
.service-photo { width: 160px; height: 105px; object-fit: cover; }
.service-list li:last-child { border-bottom: none; }
.service-list strong { color: var(--primaire); font-size: 1.08rem; }
.service-list p { margin: 6px 0 0; color: #555; }

/* Colonnes */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.column h3 { color: var(--primaire); margin-bottom: 8px; font-size: 1.05rem; }
.photo-zoom-colonne { margin-bottom: 12px; }
.column-photo { width: 100%; height: 130px; object-fit: cover; }

/* FAQ */
.faq { border-bottom: 1px dotted #cfc8bc; padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--primaire); }
.faq p { margin-top: 8px; color: #555; }

/* Bandeau CTA */
.cta-band { background: var(--primaire); color: #fff; padding: 52px 0; text-align: center; }
.cta-band h2 { font-size: 1.5rem; margin-bottom: 10px; }
.cta-band p { max-width: 600px; margin: 0 auto 22px; opacity: .95; }

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

/* Formulaire de contact */
.contact-form { margin-top: 30px; border-top: 1px dotted #cfc8bc; padding-top: 24px; }
.contact-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.contact-form h3 { color: var(--primaire); margin-bottom: 10px; }
.contact-form label { display: block; font-weight: 700; margin: 12px 0 4px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 13px; border: 1px solid #cfc8bc; font: inherit; margin-top: 4px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primaire); outline-offset: 1px; }
.contact-form textarea { resize: vertical; }
.form-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.msg-envoye { background: #eef5ee; color: #22662f; padding: 12px 16px; margin-bottom: 10px; }
.msg-erreur { background: #f7e9e7; color: #8f2a20; padding: 12px 16px; margin-bottom: 10px; }

/* Pied de page */
.site-footer {
  margin-top: 48px; background: var(--fond); border-top: 3px solid var(--primaire);
  text-align: center; padding: 36px 0 28px;
}
.footer-title { font-weight: 700; color: var(--primaire); font-size: 1.1rem; margin-bottom: 6px; }
.site-footer .socials a { margin: 0 8px; }
.footer-bottom { margin-top: 16px; font-size: .85rem; color: #8a8a8a; }
.watermark { color: #8a8a8a; }

/* Responsive */
@media (max-width: 720px) {
  .columns { grid-template-columns: 1fr; }
  .service-list li.with-photo { flex-direction: column; }
  .photo-zoom-service { width: 100%; }
  .service-photo { width: 100%; height: 170px; }
  .galerie-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 40px; }
}
