/* ============================================================
   ASLAN ENSEIGNE - Main Stylesheet
   Colors: Red #C0392B | Black #111111 | White #FFFFFF
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #C0392B;
  --red-dark: #962d22;
  --red-light: #e74c3c;
  --black: #111111;
  --black-soft: #1e1e1e;
  --gray-dark: #2c2c2c;
  --gray: #555555;
  --gray-light: #888888;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: all .3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- UTILITY ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.bg-red { background: var(--red); }
.bg-black { background: var(--black); }
.bg-gray { background: var(--gray-bg); }
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: 2rem; }

/* ---------- TYPOGRAPHY ---------- */
.section-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--black);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.7;
}

.section-title span { color: var(--red); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 3px;
  transition: var(--transition);
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); }

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline-red:hover { background: var(--red); color: var(--white); }

.btn-dark {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}
.btn-dark:hover { background: var(--red); border-color: var(--red); }

.btn-sm { padding: 10px 22px; font-size: .85rem; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--black);
  color: #aaa;
  font-size: .8rem;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #aaa; }
.topbar a:hover { color: var(--red); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- HEADER / NAV ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.15); }

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 26px; height: 26px; fill: white; }
.logo-text { line-height: 1; }
.logo-text strong { font-size: 1.3rem; font-weight: 900; color: var(--black); letter-spacing: -.5px; display: block; }
.logo-text span { font-size: .7rem; color: var(--red); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-dark);
  border-radius: 4px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link svg { width: 12px; height: 12px; transition: transform .25s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all .25s ease;
  z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-dark);
  border-bottom: 1px solid #f0f0f0;
}
.dropdown-link:last-child { border-bottom: none; }
.dropdown-link:hover { color: var(--red); background: #fafafa; }
.dropdown-link .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Wide dropdown: 2 columns for long service lists */
.dropdown-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 560px;
  max-height: 70vh;
  overflow-y: auto;
}
.dropdown-wide .dropdown-link { border-bottom: 1px solid #f0f0f0; }
.dropdown-wide .dropdown-link:nth-child(odd) { border-right: 1px solid #f0f0f0; }

.nav-cta { margin-left: 8px; flex-shrink: 0; }

/* En-tête et pied du panneau mobile — masqués sur grand écran */
.nav-panel-head, .nav-panel-foot { display: none; }

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
/* Hero slider (crossfade, loop) */
.hero-slider { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s linear;
  will-change: opacity, transform;
}
.hero-slide.active { opacity: .38; transform: scale(1); }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .3s, width .3s;
  padding: 0;
}
.hero-dot.active { background: var(--red); width: 48px; }
.hero-dot:hover { background: rgba(255,255,255,.7); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .4s ease; transform: none; }
  .hero-slide.active { transform: none; }
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}
.hero-title span { color: var(--red); }
.hero-desc {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  padding: 32px 0 80px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 20px;
  flex-wrap: wrap;
}
.stat-item { }
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--red); }
.stat-label { font-size: .82rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ---------- SERVICES OVERVIEW ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}
/* Variant: flex grid that centers orphan cards on the last row */
.services-grid-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.services-grid-center .service-card {
  width: 262px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 600px) {
  .services-grid-center .service-card { width: 100%; }
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.service-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--gray-bg);
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 24px; }
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card-icon svg { width: 24px; height: 24px; fill: white; }
.service-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--black); }
.service-card-desc { font-size: .875rem; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.service-card-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-card-link svg { width: 14px; height: 14px; transition: transform .25s; }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

/* ---------- WHY US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-img {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.why-img img { width: 100%; height: 500px; object-fit: cover; border-radius: 6px; }
.why-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--red);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 4px;
}
.why-badge strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.why-badge span { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; }

.why-list { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item-icon {
  width: 48px;
  height: 48px;
  background: #fff0ee;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-item-icon svg { width: 22px; height: 22px; fill: var(--red); }
.why-item-title { font-weight: 700; margin-bottom: 4px; font-size: .95rem; }
.why-item-desc { font-size: .875rem; color: var(--gray); line-height: 1.6; }

/* ---------- PROCESS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; padding: 0 16px; }
.process-num {
  width: 72px;
  height: 72px;
  background: var(--red);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.process-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step-desc { font-size: .85rem; color: var(--gray); line-height: 1.6; }

/* ---------- PORTFOLIO / REALISATIONS ---------- */
.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 3px;
  border: 2px solid var(--border);
  color: var(--gray);
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.portfolio-grid .portfolio-item { width: calc((100% - 40px) / 3); }
@media (max-width: 900px) {
  .portfolio-grid .portfolio-item { width: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .portfolio-grid .portfolio-item { width: 100%; }
}
.portfolio-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s ease; display: block; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-tag { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.portfolio-overlay-title { font-size: 1.05rem; font-weight: 700; color: var(--white); }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.testimonials-grid .testimonial-card { width: calc((100% - 48px) / 3); }
@media (max-width: 900px) {
  .testimonials-grid .testimonial-card { width: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .testimonials-grid .testimonial-card { width: 100%; }
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  position: relative;
}
.testimonial-quote {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: .3;
}
.stars { color: #f0a500; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: .9rem; color: var(--gray); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-bg);
  border: 2px solid var(--red);
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-company { font-size: .78rem; color: var(--gray); }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--red);
  padding: 64px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); margin-bottom: 8px; }
.cta-band-desc { color: rgba(255,255,255,.8); font-size: 1rem; }

/* ---------- PARTNERS ---------- */
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 40px;
  opacity: .6;
  filter: grayscale(1);
}
.partner-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--gray-dark);
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 4px;
}

/* ---------- CONTACT SECTION ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; fill: white; }
.contact-info-label { font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.contact-info-value { font-weight: 600; font-size: .95rem; }
.contact-info-sub { font-size: .85rem; color: var(--gray); }

/* ---------- FORM ---------- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .5px; color: var(--gray-dark); margin-bottom: 6px; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ---------- MAP ---------- */
.map-container {
  border-radius: 6px;
  overflow: hidden;
  height: 300px;
  background: var(--gray-bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: var(--black);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/enseigne-boulangerie-pain-au-levain.jpg');
  background-size: cover;
  background-position: center;
  opacity: .2;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.page-hero-desc { color: #ccc; font-size: 1rem; max-width: 560px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #999;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--red); }
.breadcrumb span { color: #666; }

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.team-card {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card-img { height: 280px; overflow: hidden; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .team-card-img img { transform: scale(1.05); }
.team-card-body { padding: 20px; }
.team-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.team-role { font-size: .82rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- SERVICE DETAIL PAGE ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.service-detail-img {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
}
.service-detail-img img { width: 100%; height: 420px; object-fit: cover; border-radius: 6px; }
.service-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--gray-dark);
}
.feature-item svg { width: 16px; height: 16px; fill: var(--red); flex-shrink: 0; }

.sidebar-card {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-card-title { font-weight: 800; font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: .875rem;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--red); }
.sidebar-link.active { color: var(--red); font-weight: 700; }
.sidebar-link svg { width: 14px; height: 14px; fill: var(--red); }

.quote-sidebar {
  background: var(--red);
  color: var(--white);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
}
.quote-sidebar-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.quote-sidebar-desc { font-size: .85rem; opacity: .85; margin-bottom: 20px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  color: var(--black);
}
.faq-question:hover { color: var(--red); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-icon svg { width: 14px; height: 14px; fill: white; transition: transform .3s; }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }
.faq-answer {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  color: #aaa;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-logo { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-logo-icon { background: var(--red); padding: 8px; border-radius: 4px; }
.footer-logo-icon svg { width: 22px; height: 22px; fill: white; }
.footer-logo-name { font-size: 1.2rem; font-weight: 900; color: var(--white); }
.footer-desc { font-size: .875rem; line-height: 1.7; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #222;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-btn:hover { background: var(--red); border-color: var(--red); }
.social-btn svg { width: 16px; height: 16px; fill: #aaa; }
.social-btn:hover svg { fill: white; }

.footer-col-title {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #aaa;
  padding: 5px 0;
  transition: var(--transition);
}
.footer-link:hover { color: var(--red); padding-left: 4px; }
.footer-link svg { width: 10px; height: 10px; fill: var(--red); flex-shrink: 0; }

.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: .85rem; line-height: 1.5; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-text { font-size: .8rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .8rem; color: #aaa; }
.footer-bottom-links a:hover { color: var(--red); }

/* ---------- NOTIFICATION BAR ---------- */
.notification-bar {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 10px 48px;
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0;
}
.notification-close {
  position: absolute;
  right: 16px;
  cursor: pointer;
  opacity: .7;
  font-size: 1.2rem;
  line-height: 1;
}
.notification-close:hover { opacity: 1; }

/* ---------- PAGE NUMBERS / PAGINATION ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--red-dark); }
.scroll-top svg { width: 20px; height: 20px; fill: white; }

/* ---------- ABOUT VALUE CARDS ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Videos grid */
@media (max-width: 900px) {
  .videos-grid { grid-template-columns: 1fr !important; }
}

/* Symmetric utility grid: 4 cols → 2 → 1 (always even rows for 4-card sections) */
.grid-sym-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) {
  .grid-sym-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-sym-4 { grid-template-columns: 1fr; }
}
.value-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition);
}
.value-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.value-icon {
  width: 64px;
  height: 64px;
  background: #fff0ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.value-icon svg { width: 28px; height: 28px; fill: var(--red); }
.value-title { font-weight: 800; margin-bottom: 8px; font-size: 1rem; }
.value-desc { font-size: .875rem; color: var(--gray); line-height: 1.6; }

/* ---------- DEVIS PAGE ---------- */
.devis-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}
.devis-benefits { margin-top: 32px; }
.devis-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.devis-benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.devis-benefit-icon svg { width: 20px; height: 20px; fill: white; }
.devis-benefit-title { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.devis-benefit-desc { font-size: .875rem; color: var(--gray); }

/* ---------- MENTIONS / LEGAL ---------- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 1.3rem; font-weight: 800; margin: 36px 0 12px; color: var(--black); }
.legal-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; color: var(--black); }
.legal-content p { font-size: .9rem; color: var(--gray); line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { margin: 12px 0 14px 20px; }
.legal-content ul li { font-size: .9rem; color: var(--gray); margin-bottom: 8px; line-height: 1.7; list-style: disc; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .why-grid, .contact-grid, .service-detail-grid, .devis-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 768px) {
  /* ═══ MENU MOBILE — panneau plein écran glissant depuis la droite ═══ */
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    background: var(--white);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 1200;
  }
  .nav-menu.open { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  /* En-tête du panneau */
  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .nav-panel-title {
    color: var(--white);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .nav-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
  }
  .nav-close:active { background: var(--red); }
  .nav-close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.5; fill: none; }

  /* Liens principaux */
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link {
    justify-content: space-between;
    padding: 18px 22px;
    font-size: 1rem;
    border-radius: 0;
  }
  .nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
  .nav-item:hover .nav-link svg { transform: none; }
  .nav-item.expanded > .nav-link { color: var(--red); background: #fdf3f2; }
  .nav-item.expanded > .nav-link svg { transform: rotate(180deg); }

  /* Sous-menu repliable : 1er appui = ouvrir, 2e appui = accéder à la page */
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--gray-bg);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  .nav-item:hover .dropdown { transform: none; }
  .nav-item.expanded .dropdown { max-height: 1600px; }
  .dropdown-wide {
    display: block;
    grid-template-columns: 1fr;
    min-width: 0;
    overflow-y: hidden;
  }
  .dropdown-link { padding: 14px 22px 14px 36px; font-size: .88rem; }
  .dropdown-wide .dropdown-link:nth-child(odd) { border-right: none; }

  /* Pied du panneau : devis + contact direct */
  .nav-panel-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 22px 34px;
    margin-top: auto;
    background: var(--gray-bg);
    border-top: 1px solid var(--border);
  }
  .nav-panel-foot .btn { width: 100%; justify-content: center; }
  .nav-panel-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--black);
  }
  .nav-panel-contact svg { width: 15px; height: 15px; fill: var(--red); flex-shrink: 0; }
  .nav-panel-mail { font-size: .82rem; color: var(--gray); text-align: center; font-weight: 500; }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .service-features { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section-padding { padding: 56px 0; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp .6s ease both; }
.animate-up-delay-1 { animation-delay: .15s; }
.animate-up-delay-2 { animation-delay: .3s; }
.animate-up-delay-3 { animation-delay: .45s; }

/* ---------- BOUTONS FLOTTANTS APPEL & WHATSAPP (mobile uniquement) ---------- */
.fab { display: none; }

@media (max-width: 768px) {
  .fab {
    position: fixed;
    left: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform .2s ease, opacity .3s ease;
  }
  .call-fab { bottom: 28px;  background: var(--red);  box-shadow: 0 6px 22px rgba(192, 57, 43, .5); }
  .wa-fab   { bottom: 100px; background: #25D366;     box-shadow: 0 6px 22px rgba(37, 211, 102, .45); }

  .fab svg {
    width: 27px;
    height: 27px;
    fill: var(--white);
    position: relative;
    z-index: 1;
  }
  .call-fab svg { animation: callSecoue 3s ease-in-out infinite; }
  .wa-fab svg   { animation: waRebond 3s ease-in-out infinite; }
  .fab:active { transform: scale(.93); }

  /* Ondes concentriques en boucle — reprennent la couleur du bouton */
  .fab-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: inherit;
    opacity: .6;
    animation: callOnde 2.4s cubic-bezier(.2, .6, .4, 1) infinite;
  }
  .fab-ring:nth-child(2) { animation-delay: 1.2s; }
  .wa-fab .fab-ring { animation-delay: .6s; }
  .wa-fab .fab-ring:nth-child(2) { animation-delay: 1.8s; }

  /* Les boutons s'effacent quand le menu plein écran est ouvert */
  body.nav-open .fab { opacity: 0; pointer-events: none; }
}

@keyframes callOnde {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes callSecoue {
  0%, 55%, 100%      { transform: rotate(0); }
  57%, 63%, 69%      { transform: rotate(-16deg); }
  60%, 66%, 72%      { transform: rotate(16deg); }
  75%                { transform: rotate(0); }
}

@keyframes waRebond {
  0%, 60%, 100% { transform: scale(1); }
  68%           { transform: scale(1.22); }
  76%           { transform: scale(.94); }
  84%           { transform: scale(1.1); }
  92%           { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .fab-ring { animation: none; opacity: 0; }
  .fab svg { animation: none; }
}

/* ---------- FORMULAIRES : ALERTES & ANTI-ROBOT ---------- */
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: .9rem;
  line-height: 1.55;
  margin-bottom: 18px;
  border-left: 4px solid;
}
.form-alert-success { background: #eafaf0; border-color: #27ae60; color: #1c6b40; }
.form-alert-error   { background: #fdeceb; border-color: var(--red); color: #922b21; }

/* Piège à robots — invisible pour les visiteurs */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 90px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
body.lightbox-locked { overflow: hidden; }

.lightbox-figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-img {
  max-width: min(1200px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.96);
  transition: transform .3s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-caption {
  text-align: center;
  color: var(--white);
  max-width: 700px;
}
.lightbox-caption-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.lightbox-caption-title { font-size: 1rem; font-weight: 700; }
.lightbox-counter { color: #888; font-size: .8rem; margin-top: 6px; }

.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.lightbox-btn:hover { background: var(--red); border-color: var(--red); }
.lightbox-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
  .lightbox { padding: 20px 12px 80px; }
  .lightbox-img { max-height: 62vh; }
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; }
}

/* Clickable portfolio cue */
.portfolio-item { cursor: zoom-in; }

/* ---------- LAZY MEDIA ---------- */
img[loading="lazy"] {
  background: linear-gradient(110deg, #ededed 8%, #f7f7f7 18%, #ededed 33%);
  background-size: 200% 100%;
  animation: imgShimmer 1.4s linear infinite;
}
img.is-loaded { background: none; animation: none; }
@keyframes imgShimmer {
  to { background-position-x: -200%; }
}
@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"] { animation: none; }
}
