/* ==========================================================================
   RETRO CHROM - Exact Design Match to Live WordPress / Divi Site
   Colors: Orange #fc551f / #ff5400, Dark #2b303a, Green #1d9f60
   Typography: 'Bungee' (headings), 'Open Sans' (body)
   Layout: Floating Card Sections with 60px Margins and SVG Cutouts
   ========================================================================== */

:root {
  --primary: #fc551f;
  --primary-accent: #ff5400;
  --primary-hover: #e04612;
  --green: #1d9f60;
  --dark-bg: #2b303a;
  --text-dark: #333333;
  --text-body: #444444;
  --text-gray: #7f7f7f;
  --white: #ffffff;
  --border-light: rgba(51, 51, 51, 0.12);
  --border-white: rgba(255, 255, 255, 0.24);

  --font-title: 'Bungee', cursive, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --header-height: 66px;
  --card-radius: 0px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ==========================================================================
   Header & Sticky Navigation (Matches Divi top-nav)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: capitalize;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 30px;
}

.mobile-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 24px;
  border-top: 1px solid #eee;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-drawer.is-open {
  transform: translateY(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f2f2f2;
}

/* ==========================================================================
   Section Card Layout (The 60px Margin Floating Cards)
   ========================================================================== */
.section-card {
  max-width: 1280px;
  margin: 60px auto;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.section-full {
  width: 100%;
  position: relative;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Divi Section Titles with Vertical Left Orange Bar */
.section-title-bordered {
  font-family: var(--font-title);
  font-size: 40px;
  line-height: 1.3em;
  color: #222222;
  border-left: 10px solid var(--primary-accent);
  padding-left: 30px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-hero .section-title-bordered,
.section-contact .section-title-bordered {
  color: var(--white);
}

.title-white {
  color: var(--white) !important;
  border-left-color: var(--white) !important;
}

/* SVG Cutout Dividers */
.card-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  line-height: 0;
  z-index: 2;
  transform: rotateX(180deg);
  pointer-events: none;
}

.card-divider-top svg {
  width: 100%;
  height: 100px;
  display: block;
}

.card-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  line-height: 0;
  z-index: 2;
  transform: rotateY(180deg);
  pointer-events: none;
}

.card-divider-bottom svg {
  width: 100%;
  height: 100px;
  display: block;
}

/* ==========================================================================
   Section 1: Qui sommes-nous ? (Hero Card)
   ========================================================================== */
.section-hero {
  background: radial-gradient(circle at top left, #2b303a 10%, rgba(43, 48, 58, 0.5) 100%),
              url('../assets/images/backgrounds/hero-motorcycle.jpg') center/cover no-repeat;
  padding: 120px 0 0;
  color: var(--white);
}

.hero-main-content {
  padding: 0 60px;
  max-width: 820px;
}

.hero-text-block {
  font-size: 18px;
  line-height: 1.8em;
  color: var(--white);
  margin-top: 20px;
}

.hero-text-block p {
  margin-bottom: 16px;
}

.hero-text-block strong {
  color: var(--white);
  font-weight: 700;
}

/* Attached Bottom Bar in Hero */
.hero-bottom-bar {
  display: flex;
  width: 90%;
  max-width: 90%;
  margin-top: 50px;
  background-color: var(--white);
}

.hero-bar-btn-col {
  width: 35%;
  flex-shrink: 0;
}

.hero-btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px 28px;
  background-color: var(--primary);
  border: 12px solid var(--primary);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-btn-cta:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.hero-bar-phone-col {
  width: 65%;
  display: flex;
  align-items: center;
  padding: 20px 30px;
  background-color: var(--white);
}

.hero-phone-label {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-gray);
  margin-right: 14px;
}

.hero-phone-number {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--primary-accent);
  text-decoration: none;
}

.hero-phone-number:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   Section 2: Nos Services
   ========================================================================== */
.section-services {
  background-color: var(--white);
  padding: 80px 0;
}

.services-header-row {
  max-width: 1140px;
  margin: 0 auto 40px;
}

.services-intro-text {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.8em;
  color: var(--text-body);
  margin-top: 14px;
}

.services-intro-text strong {
  color: var(--text-dark);
}

/* Service Cards Rows (Row 1: 3 cards, Row 2: 2 cards centered) */
.services-cards-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto 30px;
}

.services-cards-row-2 {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
}

.services-cards-row-2 .service-card-box {
  flex: 0 1 calc(33.333% - 20px);
}

.service-card-box {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-box-title {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.8em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.card-box-img {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.card-box-img img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.card-box-content p {
  font-size: 15px;
  line-height: 1.8em;
  color: var(--text-body);
  margin-bottom: 14px;
  text-align: center;
}

.card-box-content strong {
  color: var(--text-dark);
}

.materials-p {
  margin-top: 18px;
  font-size: 14px !important;
  color: var(--text-dark) !important;
}

/* ==========================================================================
   Section 3: Nos Réalisations (Gallery)
   ========================================================================== */
.section-gallery {
  padding: 60px 0 80px;
  background-color: var(--white);
}

.gallery-header-row {
  max-width: 1140px;
  margin: 0 auto 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 400 / 284;
  overflow: hidden;
  background-color: #eee;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-zoom-icon {
  font-size: 24px;
  color: var(--white);
  transform: scale(0.8);
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-zoom-icon {
  transform: scale(1);
}

/* Gallery Pagination */
.gallery-pagination-row {
  max-width: 1140px;
  margin: 25px auto 0;
  display: flex;
  justify-content: flex-end;
}

.gallery-pagination {
  display: flex;
  gap: 8px;
}

.page-btn {
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #777;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover,
.page-btn.active {
  color: var(--primary);
  font-weight: 900;
}

/* ==========================================================================
   Section 4: Nos Clients (Orange Card)
   ========================================================================== */
.section-clients {
  background-color: var(--primary);
  background-image: url('../assets/images/backgrounds/clients-pattern.png');
  background-repeat: no-repeat;
  background-position: top right;
  padding: 120px 60px;
  color: var(--white);
}

.clients-main-content {
  max-width: 1140px;
  margin: 0 auto;
}

.clients-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.client-box {
  border: 1px solid var(--border-white);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.client-box:hover {
  transform: translateY(-4px);
}

.client-stars {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.client-stars img {
  width: 105px;
  height: 18px;
}

.client-name {
  font-size: 18px;
  line-height: 1.8em;
  font-weight: 700;
  color: var(--white);
}

/* ==========================================================================
   Section 5: Demande d'informations & Devis (Dark Card)
   ========================================================================== */
.section-contact {
  background-image: radial-gradient(circle at top left, #2b303a 10%, rgba(43, 48, 58, 0.5) 100%),
                    url('../assets/images/backgrounds/contact-wheel.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 60px;
  color: var(--white);
}

.divider-orange g {
  fill: var(--primary) !important;
}

.contact-main-content {
  max-width: 1140px;
  margin: 0 auto;
}

.contact-subtitle {
  font-size: 16px;
  line-height: 1.8em;
  color: var(--white);
  margin-bottom: 30px;
}

.contact-form-container {
  margin-top: 20px;
}

.form-hp {
  display: none !important;
}

.form-grid-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-field-wrap.full-width {
  flex: 1 1 100%;
}

.form-white-input,
.form-white-textarea {
  width: 100%;
  padding: 16px 20px;
  background-color: var(--white);
  border: 0;
  color: var(--text-dark);
  font-size: 16px;
  border-radius: 0;
}

.form-white-input::placeholder,
.form-white-textarea::placeholder {
  color: #777777;
}

.form-white-textarea {
  resize: vertical;
  min-height: 130px;
}

.field-error {
  display: none;
  font-size: 0.85rem;
  color: #ff8585;
  margin-top: 6px;
}

.form-field-wrap.has-error .form-white-input,
.form-field-wrap.has-error .form-white-textarea {
  outline: 2px solid #ff4444;
}

.form-field-wrap.has-error .field-error {
  display: block;
}

.form-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.btn-orange-submit {
  background-color: var(--primary);
  border: 12px solid var(--primary);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 4px;
  padding: 10px 40px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-orange-submit:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.form-alert {
  padding: 14px 20px;
  margin-bottom: 20px;
  font-weight: 600;
  border-radius: 2px;
}

.form-alert.is-success {
  background-color: #2b7a4b;
  color: var(--white);
}

.form-alert.is-error {
  background-color: #932323;
  color: var(--white);
}

/* ==========================================================================
   Section 6: Footer (Floating Card)
   ========================================================================== */
.footer-card {
  background-image: radial-gradient(circle at top left, #2b303a 10%, rgba(43, 48, 58, 0.5) 100%),
                    url('../assets/images/backgrounds/footer-cars.jpg');
  background-size: cover;
  background-position: center right;
  padding: 0 0 40px;
  margin: 28px auto 60px;
  color: var(--white);
  box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, 0.12);
}

/* Attached Top Bar in Footer */
.footer-top-bar {
  display: flex;
  width: 90%;
  max-width: 90%;
  background-color: var(--green);
  margin-bottom: 50px;
}

.footer-bar-hours-col {
  width: 66.666%;
  background-color: var(--white);
  padding: 24px 30px;
  display: flex;
  align-items: center;
}

.footer-bar-hours-col p {
  color: var(--text-gray);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 4px;
  line-height: 2em;
}

.footer-bar-btn-col {
  width: 33.333%;
  flex-shrink: 0;
}

.footer-btn-googlemap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: var(--green);
  border: 12px solid var(--green);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-btn-googlemap:hover {
  background-color: #17834e;
  border-color: #17834e;
}

/* Footer Main Grid */
.footer-main-grid {
  padding: 0 60px;
  max-width: 1140px;
  margin: 0 auto;
}

.footer-details-col {
  max-width: 600px;
}

.footer-p {
  font-size: 16px;
  line-height: 1.8em;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-p strong {
  font-weight: 700;
}

.text-orange-link {
  color: var(--primary-accent);
}

.text-orange-link:hover {
  text-decoration: underline;
}

.footer-phone-row {
  font-size: 16px;
  line-height: 1.8em;
  margin-top: 10px;
}

.phone-white-link {
  font-size: 20px;
  color: var(--white);
  font-weight: 700;
}

.footer-cta-wrap {
  margin-top: 24px;
}

.footer-btn-services {
  display: inline-block;
  background-color: var(--primary);
  border: 12px solid var(--primary);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 4px;
  padding: 12px 30px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-btn-services:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Footer Legal Bar */
.footer-legal-bar {
  padding: 30px 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-copyright-text a {
  color: var(--primary-accent);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.lightbox.is-active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrap img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-info {
  margin-top: 14px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.95rem;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--primary);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-nav:hover {
  background: var(--primary);
  color: var(--white);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #171a21;
  color: var(--white);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  padding: 16px 0;
  border-top: 2px solid var(--primary);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1 1 600px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-cookie-accept {
  background-color: var(--primary);
  color: var(--white);
  border: 0;
  padding: 8px 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-cookie-info {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 8px 18px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .section-card {
    margin: 40px 24px;
  }

  .hero-bottom-bar,
  .footer-top-bar {
    width: 100%;
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .services-cards-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-cards-row-2 {
    flex-direction: column;
  }

  .services-cards-row-2 .service-card-box {
    flex: 1;
  }

  .clients-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .section-card {
    margin: 20px 10px;
    box-shadow: none;
  }

  .section-title-bordered {
    font-size: 28px;
    padding-left: 18px;
    border-left-width: 8px;
  }

  .hero-main-content,
  .section-clients,
  .section-contact,
  .footer-main-grid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero-bottom-bar,
  .footer-top-bar {
    flex-direction: column;
  }

  .hero-bar-btn-col,
  .hero-bar-phone-col,
  .footer-bar-hours-col,
  .footer-bar-btn-col {
    width: 100%;
  }

  .hero-btn-cta,
  .footer-btn-googlemap {
    padding: 18px 20px;
    font-size: 16px;
  }

  .services-cards-row-3 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid-3x2 {
    grid-template-columns: 1fr;
  }

  .form-grid-row {
    flex-direction: column;
    gap: 15px;
  }

  .footer-legal-bar {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
