@font-face {
  font-family: 'KGSecondChancesSketch';
  src: url('/fonts/kgsecondchancessketch.woff2') format('woff2'),
       url('/fonts/kgsecondchancessketch.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-text: #2d3436;
  --color-muted: #636e72;
  --color-faint: #cdcdcd;
  --color-accent: #ffc000;
  --color-accent-soft: #f9cb6d;
  --color-link: #5191fa;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-border: #e6eaed;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(45, 52, 54, 0.08);
  --shadow-md: 0 8px 28px rgba(45, 52, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'KGSecondChancesSketch', sans-serif;
  font-weight: 300;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: transparent;
  padding: 18px 0;
  position: relative;
  z-index: 1;
}

.site-header .brand img {
  height: 54px;
  display: block;
}

/* Hero — styles copied from locircus.css .bravo-form-search-car */
.hero {
  padding: 60px 0 80px;
}

.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-image: url('/banner-hero.svg');
  background-repeat: no-repeat;
  background-position: 120% top;
  background-size: auto 100%;
  z-index: -100000;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { padding: 40px 0 40px; }
  .hero-img { opacity: 0.35; }
}

.hero h1 {
  font-size: 3.4rem;
  margin: 0 0 28px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--color-text);
  max-width: 760px;
}

.hero strong {
  font-weight: 700;
  color: inherit;
}

.hero .closing {
  margin-top: 28px;
  font-style: italic;
  color: var(--color-muted);
}

.hint {
  cursor: help;
}

/* Carousel */
.carousel-section {
  padding: 40px 0 80px;
}

.carousel {
  position: relative;
  background: #f4f6f8;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: 100%;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 840px;
}

.carousel-slide a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  cursor: zoom-in;
}

.carousel-slide a::after {
  content: "⤢ Voir en plein écran";
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(45, 52, 54, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.carousel-slide a:hover::after {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.94);
  border: none;
  color: var(--color-text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s;
}

.carousel-btn:hover {
  background: #fff;
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(45, 52, 54, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}

.carousel-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* Contact */
.contact-section {
  background: #fafafa;
  border-top: 1px solid var(--color-border);
  padding: 64px 0;
}

.contact-section h2 {
  margin: 0 0 8px;
  font-size: 2.2rem;
}

.contact-lead {
  margin: 0 0 28px;
  color: var(--color-muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-text);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 192, 0, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  justify-self: start;
  background: var(--color-accent-soft);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 15px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-transform: none;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--color-accent);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit[disabled] {
  background: var(--color-faint);
  color: #fff;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.95rem;
}

.form-status.is-success { color: #1f8a4c; }
.form-status.is-error { color: #d63031; }

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 22px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .carousel-slide { height: 640px; }
}

@media (max-width: 640px) {
  .hero { padding: 50px 0 24px; }
  .hero h1 { font-size: 2.4rem; }
  .carousel-slide { height: 480px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 24px; }
}
