/* ADC Metal — feuille de style (site statique) */
:root {
  --bg: #111;
  --header: #363436;
  --panel: rgba(20, 20, 20, .88);
  --panel-light: #fff;
  --text: #eee;
  --text-dark: #222;
  --muted: #9a9a9a;
  --accent: #29a8e0;
  --header-h: 110px;
  --footer-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Questrial", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-weight: normal; margin: 0 0 .6em; }

/* ---------- Fond plein écran / diaporama ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background: #000 center / cover no-repeat;
}
.bg .slide {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity .9s ease;
}
.bg .slide.is-active { opacity: 1; }
.slider-nav {
  position: fixed; top: 50%; z-index: 2;
  width: 44px; height: 44px; margin-top: -22px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 22px; line-height: 44px; cursor: pointer;
  transition: background .2s;
}
.slider-nav:hover, .slider-nav:focus-visible { background: rgba(0, 0, 0, .85); }
.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }

/* ---------- En-tête ---------- */
.site-header {
  background: var(--header);
  background-image: linear-gradient(180deg, #403e40 0%, #2c2a2c 100%);
  min-height: var(--header-h);
  position: relative; z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; min-height: var(--header-h);
}
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; }
.logo img { width: 150px; }
.logo span { font-size: 15px; letter-spacing: 3px; margin-top: -4px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 14px 18px 12px;
  color: #fff; text-decoration: none;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  border-top: 3px solid transparent;
  background: linear-gradient(180deg, #4a484a, #2f2d2f);
  transition: background .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a:focus-visible { border-top-color: var(--accent); background: #555; }
.main-nav a[aria-current="page"] { border-top-color: #f5f5f5; background: #5a585a; }

.header-inner {
  display: grid; position: relative;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo right" "logo nav";
  align-items: center; column-gap: 24px;
}
.logo { grid-area: logo; }
.header-right { grid-area: right; justify-self: end; align-self: end; display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.main-nav { grid-area: nav; justify-self: end; align-self: start; padding-bottom: 8px; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lang-switch a, .lang-switch span {
  display: block; padding: 6px 8px;
  font-size: 13px; letter-spacing: 1px; text-decoration: none;
  color: #bbb; border-bottom: 2px solid transparent;
}
.lang-switch a:hover, .lang-switch a:focus-visible { color: #fff; border-bottom-color: var(--accent); }
.lang-switch span[aria-current] { color: #fff; font-weight: bold; border-bottom-color: #f5f5f5; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid #777; color: #fff;
  font-size: 15px; padding: 8px 14px; cursor: pointer; border-radius: 3px;
  white-space: nowrap;
}

/* ---------- Contenu ---------- */
main { flex: 1; padding: 40px 20px 30px; }
.panel {
  max-width: 1150px; margin: 0 auto;
  background: var(--panel-light); color: var(--text-dark);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}
.panel-title {
  display: inline-block;
  background: #111; color: #fff;
  font-size: 18px; font-weight: bold;
  padding: 8px 16px; margin: 0;
}
.panel-body { padding: 30px 40px 40px; }
.panel-body p { font-size: 18px; }
.panel-body em { font-style: italic; }

/* Accueil */
.home main { display: flex; justify-content: flex-end; align-items: flex-end; }
.baseline {
  width: 100%; max-width: 440px;
  background: var(--panel); color: var(--text);
  border-left: 6px solid var(--accent);
  padding: 22px 26px;
  max-height: calc(100vh - var(--header-h) - var(--footer-h) - 80px);
  overflow-y: auto;
}
.baseline h1 { font-size: 15px; font-weight: bold; margin-bottom: 10px; }
.baseline p { font-size: 17px; margin: 0 0 12px; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.gallery a {
  display: block; aspect-ratio: 1; overflow: hidden;
  background: #eee; outline-offset: 2px;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s, opacity .3s;
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.08); opacity: .85; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .9);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; box-shadow: 0 0 40px #000; }
.lightbox figcaption { color: #fff; margin-top: 12px; text-align: center; min-height: 1.5em; }
.lightbox .lb-count { color: var(--muted); font-size: 14px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; width: 48px; height: 48px; border-radius: 50%;
  font-size: 24px; cursor: pointer;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .3); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }

/* Processus */
.process-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.process-img { margin: 0 auto; }
.process-hint { display: none; font-size: 13px; color: #777; margin: 8px 0 0; }
@media (max-width: 760px) {
  .process-img { min-width: 900px; }
  .process-hint { display: block; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 40px; }
.contact-info h2 { font-size: 22px; font-weight: bold; }
.contact-intro { font-size: 17px; margin: 0 0 22px; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.btn {
  display: inline-block;
  background: #363436; color: #fff; border: 0;
  padding: 13px 22px; font: inherit; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; text-align: center;
  cursor: pointer; transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: #fff; }
.btn-contact span { margin-right: 6px; }
.contact-details { margin: 0; font-size: 16px; }
.contact-details dt { font-weight: bold; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #666; margin-top: 14px; }
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 2px 0 0; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: #1b1b1b; color: #bbb;
  font-size: 12px; min-height: var(--footer-h);
  position: relative; z-index: 10;
  flex-shrink: 0;
}
.site-footer ul {
  list-style: none; margin: 0 auto; padding: 14px 20px;
  max-width: 1280px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
}
.site-footer li { white-space: nowrap; }
.site-footer li + li::before { content: "·"; margin: 0 12px; color: #666; }
.site-footer a { color: #ddd; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 80px; }
  .logo img { width: 110px; }
  .logo span { font-size: 12px; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-areas: "logo right"; }
  .header-right { gap: 8px; align-self: center; padding-top: 0; }
  .main-nav {
    margin: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #2c2a2c; display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .5);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { background: none; border-top: 0; border-left: 3px solid transparent; padding: 14px 20px; }
  .main-nav a[aria-current="page"] { border-left-color: #f5f5f5; background: #3e3c3e; }
  .main-nav a:hover { border-left-color: var(--accent); }
  .contact-grid { grid-template-columns: 1fr; }
  /* Pied de page : une info par ligne, centrée */
  .site-footer ul { flex-direction: column; align-items: center; gap: 4px; padding: 18px 16px; text-align: center; }
  .site-footer li { white-space: normal; }
  .site-footer li + li::before { content: none; }
  .panel-body { padding: 22px 20px 28px; }
  .slider-nav { display: none; }
}
@media (max-width: 560px) {
  main { padding: 20px 16px; }
  .home main { align-items: flex-end; }
  .baseline { max-height: none; }
  .baseline p { font-size: 16px; }
  .panel-body p { font-size: 16px; }
  .map iframe { min-height: 300px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg .slide, .gallery img { transition: none; }
}
