/* ── Variables ──────────────────────────────────────────── */
:root {
  --color-text:      #565452;
  --color-accent:    #990019;
  --color-dropdown:  #a12025;
  --color-bg-dark:   #150F0F;
  --color-bg-sidebar:#fff8f8;
  --font-title:      'Arvo', Georgia, serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --max-width:       1200px;
  --sidebar-width:   280px;
  --gap:             28px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body   { font-family: var(--font-body); color: var(--color-text); background: #fff; font-size: 16px; line-height: 1.65; }
img    { max-width: 100%; height: auto; display: block; }
a      { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul     { list-style: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.page-content {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  padding: 36px 0 48px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--color-accent);
  position: relative;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo img { height: 60px; width: auto; }

/* ── Nav ────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav > a,
.nav-dropdown > a {
  font-size: 14px;
  color: var(--color-text);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav > a:hover,
.site-nav > a.active,
.nav-dropdown > a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* Dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-dropdown);
  min-width: 210px;
  border-radius: 0 0 4px 4px;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: #fff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover,
.dropdown-menu a.current { background: rgba(0,0,0,.2); text-decoration: none; }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: 0.3s;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: #f2f0ee;
  border-bottom: 1px solid #e0dbdb;
}
.hero-inner {
  display: flex;
  align-items: stretch;
  height: 300px;
}
.hero-text {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px 32px 0;
}
.hero-h2 {
  font-family: var(--font-title);
  font-size: 49px;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero-p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.65;
}
.hero-images {
  width: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Présentation (accueil) ─────────────────────────────── */
.section-title {
  font-family: var(--font-title);
  font-size: 33px;
  color: var(--color-text);
  border-bottom: 2px solid #f0e4e4;
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.presentation {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.presentation-photo { width: 110px; flex-shrink: 0; border-radius: 3px; overflow: hidden; }
.presentation-text { font-size: 16px; line-height: 1.7; }
.presentation-text strong { color: var(--color-text); }
.service-list { margin: 16px 0; }
.service-list li {
  padding: 5px 0 5px 20px;
  font-size: 14px;
  border-bottom: 1px solid #f5ecec;
  position: relative;
}
.service-list li::before {
  content: '→';
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.service-list li a { color: var(--color-accent); }
.highlight-box {
  background: #fff0f0;
  border-left: 4px solid var(--color-accent);
  padding: 16px 20px;
  margin-top: 24px;
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar-block { margin-bottom: 18px; }
.sidebar-block-header {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 3px 3px 0 0;
}
.sidebar-block-body {
  background: var(--color-bg-sidebar);
  border: 1px solid #e8dcdc;
  border-top: none;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  border-radius: 0 0 3px 3px;
}
.sidebar-block-body a { color: var(--color-accent); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 4px;
}
.services-grid a {
  background: #e4e4e4;
  color: var(--color-text);
  font-size: 11.5px;
  padding: 5px 6px;
  border-radius: 2px;
  text-align: center;
  display: block;
  transition: background 0.2s, color 0.2s;
}
.services-grid a:hover,
.services-grid a.current {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

/* ── Page service ────────────────────────────────────────── */
.page-title {
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--color-text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0e4e4;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.gallery img:hover { opacity: 0.82; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-prev:disabled,
.lightbox-next:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}


/* ── Contact ─────────────────────────────────────────────── */
.contact-info {
  font-size: 15px;
  line-height: 2.4;
  margin-bottom: 28px;
  border-bottom: 1px solid #f0e4e4;
  padding-bottom: 24px;
}
.contact-info a { color: var(--color-accent); }
.contact-form-title {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 16px;
  border-bottom: 2px solid #f0e4e4;
  padding-bottom: 10px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-size: 13px; font-weight: 600; margin-bottom: 4px; display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: #fafafa;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--color-accent); border-color: transparent; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 3px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--color-dropdown); }
.form-success {
  background: #eef7ee;
  border-left: 4px solid #4a9e4a;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #2d5a2d;
  border-radius: 0 3px 3px 0;
}
.form-error {
  color: var(--color-accent);
  font-size: 13px;
  margin-top: 8px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg-dark);
  color: #999;
  font-size: 13px;
  padding: 0 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  position: relative;
}
.scroll-top-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 8px 10px;
  transition: color 0.2s;
}
.scroll-top-btn:hover { color: #eee; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-width: 240px; --gap: 22px; }
  .hero-inner { height: 260px; }
  .hero-h2 { font-size: 36px; }
}

@media (max-width: 768px) {
  .page-content { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { height: auto; flex-direction: column; }
  .hero-images { width: 100%; height: 200px; position: relative; }
  .hero-text { width: 100%; padding: 20px 0 8px; }
  .hero-h2 { font-size: 26px; }
  /* Nav mobile */
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
    z-index: 100;
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav > a {
    padding: 12px 24px;
    width: 100%;
    border-bottom: none;
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { padding: 12px 24px; width: 100%; display: block; }
  .dropdown-menu {
    position: static;
    display: none;
    background: #f5e8e8;
    box-shadow: none;
    border-radius: 0;
  }
  .dropdown-menu a { color: var(--color-text); border-bottom-color: rgba(0,0,0,.05); }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: flex; }
  .presentation { flex-direction: column; }
  .presentation-photo { width: 200px; }
  .section-title { line-height: 1.15; }
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-images { height: 160px; }
  .hero-h2 { font-size: 22px; }
  .hero-p { font-size: 13px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid a { font-size: 12.5px; }
}
