/* ===================================================
   Ciarro Motorcycle — feuille de style principale
   Style : moderne et épuré
   =================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-text: #16181d;
  --color-text-light: #5b6270;
  --color-border: #e6e8ec;
  --color-accent: #d62828;
  --color-accent-dark: #a81f1f;
  --color-dark: #0f1115;
  --radius: 10px;
  --max-width: 1180px;
  --shadow: 0 4px 24px rgba(15, 17, 21, 0.06);
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { color: var(--color-text-light); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn-secondary:hover {
  background: var(--color-dark);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-dark);
}
.btn-light:hover {
  background: var(--color-bg-alt);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 28px;
  background: var(--color-dark);
  padding: 16px 26px;
  border-radius: 12px;
}
.logo span.accent { color: var(--color-accent); }
.logo img {
  height: 68px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--color-accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  display: block;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 100%);
  padding: 90px 0 70px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero h1 { margin-bottom: 18px; }
.hero p.lead {
  font-size: 1.1rem;
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 34px;
  margin-top: 46px;
}
.hero-badge {
  height: 130px;
  width: auto;
}
@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .hero-badge {
    height: 90px;
  }
}
.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  color: var(--color-dark);
}
.hero-stats div span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ---------- Placeholder image blocks ---------- */
.img-placeholder {
  background: var(--color-bg-alt);
  border: 1px dashed #c7cbd3;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-align: center;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: "🏍";
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  opacity: 0.5;
}
.img-placeholder span {
  margin-bottom: 16px;
  padding: 0 16px;
}

.hero-visual {
  aspect-ratio: 4 / 3;
}

/* ---------- Carrousel photo (accueil) ---------- */
.hero-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-carousel-slide.active {
  opacity: 1;
}
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 17, 21, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.hero-carousel-arrow:hover {
  background: rgba(15, 17, 21, 0.8);
}
.hero-carousel-arrow.prev { left: 14px; }
.hero-carousel-arrow.next { right: 14px; }
.hero-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}
.hero-carousel-dots button.active {
  background: #fff;
}
.hero-carousel[data-three-sixty="true"] img {
  -webkit-user-drag: none;
  user-select: none;
}
.hero-carousel-360-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 17, 21, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.hero-carousel-360-hint.hidden {
  opacity: 0;
}
.hero-carousel-slide {
  cursor: zoom-in;
}

/* ---------- Lightbox photo plein écran ---------- */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.photo-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.photo-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.photo-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 600px) {
  .photo-lightbox { padding: 16px; }
}

/* ---------- Sections génériques ---------- */
section {
  padding: 80px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.bg-alt {
  background: var(--color-bg-alt);
}

/* ---------- Marques ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.brand-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.brand-card .brand-name {
  font-size: 1.4rem;
  font-weight: 800;
}
.brand-card-logo {
  height: 120px;
  width: auto;
  max-width: 200px;
  margin: 0 auto 10px;
  align-self: center;
  object-fit: contain;
}

/* ---------- Cards / grille génériques ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.moto-photo {
  background: var(--color-bg-alt);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.moto-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.card-body {
  padding: 22px;
}
.card-body h3 { margin-bottom: 8px; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card-price {
  margin-top: 14px;
  font-weight: 700;
  color: var(--color-dark);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-dark);
  color: #fff;
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #b7bac1; }

/* ---------- Formulaires ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: #e9f8ee;
  border: 1px solid #b4e6c6;
  color: #1c6b39;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-weight: 600;
}
.form-success.visible { display: block; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 26px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
}
.contact-info-item .icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 30px;
}
.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #c7cad1;
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #c7cad1; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8b8f99;
}

/* ---------- Page header (pages internes) ---------- */
.page-header {
  background: var(--color-bg-alt);
  padding: 60px 0 50px;
  text-align: center;
}
.page-header p {
  max-width: 560px;
  margin: 14px auto 0;
}

/* ---------- En-tête marque (Benelli / Morbidelli) : logo + texte + garantie ---------- */
.page-header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  text-align: left;
}
.page-header-logo,
.page-header-warranty {
  height: 140px;
  width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}
.page-header-logo {
  border-radius: 50%;
}
.page-header-text {
  max-width: 560px;
  text-align: center;
}
.page-header-text p {
  margin: 14px auto 0;
}
@media (max-width: 720px) {
  .page-header-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-header-text p {
    margin: 14px auto 0;
  }
}

/* ---------- Fiche occasion en vedette (annonce avec galerie photo) ---------- */
.occasion-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}
.occasion-feature-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}
.occasion-feature-gallery .hero-carousel {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.occasion-feature-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.occasion-feature-info h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.occasion-feature-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0 18px;
}
.occasion-feature-specs span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-alt);
  padding: 6px 12px;
  border-radius: 999px;
}
.occasion-feature-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .occasion-feature {
    grid-template-columns: 1fr;
  }
}

/* ---------- Filtres ---------- */
.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: all var(--transition);
}
.filter-pill.active,
.filter-pill:hover {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .brands-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Boutons marques (logos) ---------- */
.brand-buttons {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.brand-btn {
  flex: 1;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 46px 24px;
  border-radius: 16px;
  background: var(--color-dark);
  text-decoration: none;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.brand-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.brand-btn p {
  color: #c7cad1;
  margin: 0;
  font-size: 0.9rem;
}
.brand-btn.occasions-btn {
  background: var(--color-accent);
}
.brand-btn.occasions-btn p { color: rgba(255,255,255,0.85); }

.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
}
.brand-logo-badge.benelli {
  background: #ffffff;
  color: #0a6b3b;
  border-color: #0a6b3b;
}
.brand-logo-badge.morbidelli {
  background: #ffffff;
  color: #0f1115;
  border-color: #0f1115;
}
.brand-logo-badge.occasions-badge {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 22px;
}
.brand-logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.brand-logo-img-dark {
  height: 110px;
  width: 110px;
  object-fit: contain;
  border-radius: 16px;
  align-self: center;
}

/* ---------- Switcher marque (sous-nav Benelli / Morbidelli / Occasions) ---------- */
.brand-switch {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.brand-switch a {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 700;
  background: #fff;
  color: var(--color-text);
  transition: all var(--transition);
}
.brand-switch a:hover {
  border-color: var(--color-dark);
}
.brand-switch a.active {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

@media (max-width: 900px) {
  .brand-buttons { flex-direction: column; }
}

/* ---------- Boutons flottants réseaux sociaux ---------- */
.social-float {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.social-float a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.social-float a svg {
  width: 100%;
  height: 100%;
  display: block;
}
.social-float a:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(15, 17, 21, 0.16);
}
.social-float a.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 720px) {
  .social-float { right: 10px; gap: 10px; }
  .social-float a { width: 40px; height: 40px; }
}
