/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --dark: #111827;
  --dark-2: #1f2937;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--dark);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-secondary {
  background: var(--gray-light);
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }
.btn-full { width: 100%; }

.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--gray); max-width: 560px; margin: 0 auto; }
.section-header.light p { color: rgba(255,255,255,.65); }
.section-header.light h2 { color: var(--white); }
.section-header.left { text-align: left; }
.section-header.left p { margin-left: 0; }

/* =============================================
   HEADER
   ============================================= */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon { font-size: 26px; line-height: 1; color: var(--orange); }
.logo-name {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 2.5px;
  line-height: 1;
  text-transform: uppercase;
}
.logo-main { color: var(--dark); }
.logo-accent { color: var(--orange); }
.logo-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 4px;
}
.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-sub  { color: rgba(255,255,255,.45); }

.header-inner > nav { display: flex; align-items: center; gap: 8px; }
.header-inner > nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}
.header-inner > nav a:hover { background: var(--gray-light); }
.btn-nav {
  background: var(--orange) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--orange-dark) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-link {
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-link:last-child { border: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #374151 100%);
  overflow: hidden;
}

/* Decorative pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(245,158,11,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245,158,11,.08) 0%, transparent 40%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: .18;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--orange); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   ATOUTS
   ============================================= */
.atouts {
  padding: 56px 0;
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
}
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.atout { text-align: center; }
.atout-icon { font-size: 36px; margin-bottom: 12px; }
.atout h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.atout p { font-size: 14px; color: var(--gray); }

/* =============================================
   CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-img {
  position: relative;
  height: 260px;
  background-color: var(--dark-2);
  overflow: hidden;
  cursor: pointer;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .4s ease;
}
.card:hover .card-photo { transform: scale(1.06); }

.card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-2), var(--dark));
  z-index: 0;
}

.card-img.no-photo .card-photo { display: none; }
.card-img-placeholder span { font-size: 56px; opacity: .5; }

/* Hover overlay */
.card-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background .25s ease;
}
.card:hover .card-img-overlay { background: rgba(0,0,0,.38); }

.overlay-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.card:hover .overlay-btn { opacity: 1; transform: translateY(0); }

.overlay-btn svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.overlay-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--orange);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 3;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.92);
  flex-direction: column;
}
.lightbox.open { display: flex; }

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-shrink: 0;
}
.lightbox-title { font-size: 16px; font-weight: 700; color: var(--white); }
.lightbox-header-right { display: flex; align-items: center; gap: 14px; }
.lightbox-counter { font-size: 13px; color: rgba(255,255,255,.55); }

.lb-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lb-close-btn:hover { background: rgba(255,255,255,.25); }

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 0;
}

.lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  max-height: 100%;
  min-height: 0;
}

.lb-photo {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  transition: opacity .2s ease;
}

.lb-nav {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav:disabled { opacity: .2; pointer-events: none; }

.lightbox-footer {
  flex-shrink: 0;
  padding: 12px 20px 20px;
  display: flex;
  justify-content: center;
}

.lb-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 600px;
}

.lb-thumb {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  opacity: .45;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.lb-thumb:hover { opacity: .8; }
.lb-thumb.active { opacity: 1; border-color: var(--orange); }

.card-body { padding: 24px; }
.card-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.card-body > p { font-size: 14px; color: var(--gray); margin-bottom: 16px; }

.card-specs {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-specs li {
  font-size: 13px;
  color: var(--gray);
  padding-left: 16px;
  position: relative;
}
.card-specs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* =============================================
   TARIFS TABLE
   ============================================= */
.table-wrapper { overflow-x: auto; }

.tarif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  overflow: hidden;
}
.tarif-table th, .tarif-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tarif-table thead tr { background: rgba(255,255,255,.08); }
.tarif-table th { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.tarif-table th small { font-size: 11px; font-weight: 400; opacity: .7; display: block; text-transform: none; }
.tarif-table tbody tr:hover { background: rgba(255,255,255,.04); }
.tarif-table td.label { text-align: left; font-weight: 600; }
.tarif-table td.label small { font-weight: 400; opacity: .65; display: block; font-size: 12px; }
.tarif-table td strong { color: var(--orange); font-size: 17px; }
.tarif-table .livraison-row { font-size: 13px; opacity: .8; }
.tarif-table .center { text-align: center; }

.table-note {
  margin-top: 16px;
  font-size: 13px;
  opacity: .55;
  text-align: center;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-details { margin: 32px 0; display: flex; flex-direction: column; gap: 20px; }
.contact-details li { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { font-size: 22px; margin-top: 2px; flex-shrink: 0; }
.contact-details strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); margin-bottom: 2px; }
.contact-details a { font-weight: 600; font-size: 16px; transition: color var(--transition); }
.contact-details a:hover { color: var(--orange-dark); }
.contact-details span { font-size: 15px; }

.cgv-bloc {
  background: var(--gray-light);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--gray);
}
.cgv-bloc p { font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.cgv-bloc ul { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; list-style: disc; }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }

.form-checkbox { gap: 4px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}
.checkbox-label a { color: var(--orange-dark); text-decoration: underline; }
.checkbox-error {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 2px;
}
.form-checkbox.error .checkbox-error { display: block; }
.form-checkbox.error .checkbox-label { color: #ef4444; }

.form-success {
  display: none;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.form-success.visible { display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.4); }

/* =============================================
   MODALS
   ============================================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}


.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in .2s ease;
}
@keyframes modal-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--border); }

.modal-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.modal-box h3 { font-size: 16px; font-weight: 700; margin: 24px 0 12px; }
.modal-sub { font-size: 13px; color: var(--gray); margin-bottom: 20px; }

.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 8px;
}
.modal-table th, .modal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.modal-table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gray); }
.modal-table td.inclus { color: #059669; font-weight: 700; }
.modal-table td strong { color: var(--orange-dark); font-size: 15px; }
.modal-table tr:last-child td { border: none; }

.modal-specs { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.modal-specs li { padding-left: 18px; position: relative; color: var(--gray); }
.modal-specs li::before { content: '▸'; position: absolute; left: 0; color: var(--orange); }
.modal-specs strong { color: var(--dark); }

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--dark);
  border-top: 3px solid var(--orange);
  padding: 18px 20px;
  transform: translateY(100%);
  transition: transform .35s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-content p {
  flex: 1;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
  min-width: 220px;
}
.cookie-content p strong { color: var(--white); }
.cookie-content a { color: var(--orange); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-refuse {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,.1);
  color: var(--white);
  transition: background var(--transition);
}
.btn-cookie-refuse:hover { background: rgba(255,255,255,.2); }

.footer-cookie-btn {
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  opacity: .7;
  transition: opacity var(--transition);
}
.footer-cookie-btn:hover { opacity: 1; }

/* =============================================
   CONTACT CTA (index.html)
   ============================================= */
.contact-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 32px;
}
.contact-cta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.contact-cta-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transform: translateY(-2px);
}
.contact-cta-card .contact-icon { font-size: 28px; margin-top: 2px; flex-shrink: 0; }
.contact-cta-card strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); margin-bottom: 4px; }
.contact-cta-card span { font-weight: 600; font-size: 15px; color: var(--dark); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .header-inner > nav { display: none; }
  .burger { display: flex; }
  .section { padding: 56px 0; }
  .hero-content { padding: 60px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .modal-box { padding: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .atouts-grid { grid-template-columns: 1fr 1fr; }
}
