:root {
  --navy: #182A4E;
  --navy-dark: #0F1C36;
  --bronze: #A9805C;
  --bronze-light: #C9A480;
  --cream: #F7F5F1;
  --white: #FFFFFF;
  --text: #2B2E36;
  --text-light: #6B7280;
  --border: #E7E3DC;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 28, 54, 0.08);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 800px; }

.section { padding: 100px 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--navy-dark); color: var(--white); }

.eyebrow {
  display: block;
  color: var(--bronze);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--bronze-light); }
.center { text-align: center; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
}
h2 { font-size: 2.2rem; margin-bottom: 40px; }
h2.light { color: var(--white); }
h3 { font-size: 1.25rem; margin-bottom: 12px; }

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--bronze); color: var(--white); }
.btn--primary:hover { background: var(--navy); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

.icon-phone::before { content: "\260E"; margin-right: 4px; }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.header__logo img { width: auto; height: 64px; }
.nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav a { font-weight: 500; color: var(--navy); font-size: 0.95rem; }
.nav a:hover { color: var(--bronze); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { font-weight: 600; color: var(--navy); white-space: nowrap; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 26px; height: 2px; background: var(--navy); }

/* HERO */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,28,54,0.88) 0%, rgba(15,28,54,0.75) 60%, rgba(15,28,54,0.92) 100%);
}
.hero__content {
  position: relative;
  padding: 140px 24px 100px;
  max-width: 780px;
}
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 12px; }
.hero__tagline { color: var(--bronze-light); font-size: 1.15rem; font-weight: 600; font-style: italic; margin-bottom: 20px; }
.hero__subtitle { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 620px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--bronze-light); }
.stat span { color: rgba(255,255,255,0.75); font-size: 0.85rem; }

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__points { margin: 20px 0 28px; }
.about__points li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text); }
.about__points li::before { content: "✓"; position: absolute; left: 0; color: var(--bronze); font-weight: 700; }

/* GRID / CARDS */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  color: var(--navy);
}
.card__icon svg { width: 32px; height: 32px; }

/* SECTION INTRO */
.section__intro {
  color: var(--text-light); max-width: 720px; margin: -24px auto 44px; font-size: 0.98rem;
}

/* ZONES (SEO local) */
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.zone {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.zone:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.zone h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.zone h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); margin-right: 8px; vertical-align: middle; }
.zone p { font-size: 0.9rem; }

/* DOMAINS */
.domains { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.domains span {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
}

/* METHOD (carousel) */
.method { background: var(--cream); padding-bottom: 60px; }
.method__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 48px;
}
.eyebrow--dot { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.eyebrow--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); }
.method__header h2 { margin-bottom: 0; font-size: 2rem; }
.method__dots { display: flex; gap: 8px; flex-shrink: 0; padding-bottom: 6px; }
.method__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: var(--border); cursor: pointer; padding: 0; transition: background 0.2s ease;
}
.method__dots button.active { background: var(--bronze); }

.method__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 24px 32px; margin: 0 auto; max-width: 1180px;
  cursor: grab; scrollbar-width: none;
}
.method__track:active { cursor: grabbing; }
.method__track::-webkit-scrollbar { display: none; }

.method__card {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 16px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.method__card:hover {
  transform: translateY(-14px);
  box-shadow: var(--shadow);
}
.method__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.method__number {
  font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--bronze-light);
}
.method__badge { color: var(--bronze); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.method__card p { font-size: 0.92rem; }

/* GALLERY */
.realisations__hint { color: var(--text-light); font-size: 0.88rem; margin-top: -28px; margin-bottom: 40px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow); border: none; padding: 0; margin: 0; cursor: pointer;
  font-family: inherit; display: block; width: 100%;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; display: block; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; text-align: left;
  background: linear-gradient(180deg, rgba(15,28,54,0) 40%, rgba(15,28,54,0.85) 100%);
}
.gallery__overlay-title { color: var(--white); font-weight: 700; font-size: 1rem; }
.gallery__overlay-sub { color: var(--bronze-light); font-size: 0.8rem; font-weight: 600; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(15,28,54,0.8); }
.lightbox__panel {
  position: relative; background: var(--white); border-radius: 16px; overflow: hidden;
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.lightbox__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(15,28,54,0.55); color: var(--white); border: none; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.lightbox__slider { position: relative; background: var(--navy-dark); }
.lightbox__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; height: 360px;
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.lightbox__slide img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border-radius: 50%; background: rgba(15,28,54,0.55); color: var(--white); border: none;
  cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background 0.2s ease;
}
.lightbox__arrow:hover { background: var(--bronze); }
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.lightbox__slider--single .lightbox__arrow, .lightbox__slider--single .lightbox__dots { display: none; }
.lightbox__dots {
  position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 2;
}
.lightbox__dots button {
  width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4);
  cursor: pointer; padding: 0; transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__dots button.active { background: var(--white); transform: scale(1.3); }
.lightbox__body { padding: 28px 32px 32px; }
.lightbox__tag {
  display: inline-block; background: var(--cream); color: var(--bronze); font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.lightbox__panel h3 { margin-bottom: 4px; }
.lightbox__location { color: var(--bronze); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.lightbox__desc { color: var(--text); }

/* TESTIMONIALS */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial p { color: var(--text); font-style: italic; margin-bottom: 16px; }
.testimonial span { color: var(--bronze); font-weight: 600; font-size: 0.9rem; }

/* ACCORDION */
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__heading { margin: 0; font-size: inherit; }
.accordion__trigger {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0; font-family: var(--font-heading); font-size: 1.1rem;
  color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.accordion__trigger::after { content: "+"; font-size: 1.4rem; color: var(--bronze); }
.accordion__item.open .accordion__trigger::after { content: "−"; }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion__panel p { padding-bottom: 20px; }
.accordion__item.open .accordion__panel { max-height: 200px; }

/* DEVIS FORM */
.devis { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.devis__text { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.devis__contacts { display: flex; flex-direction: column; gap: 20px; }
.devis__contacts strong { display: block; color: var(--white); }
.devis__contacts span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.devis__contacts a { color: var(--bronze-light); font-weight: 600; }

.devis__form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--bronze);
}
.devis__feedback { margin-top: 14px; font-size: 0.9rem; }
.devis__feedback.success { color: #2f7a4f; }
.devis__feedback.error { color: #b3403f; }

/* DROPZONE */
.dropzone {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 24px; text-align: center; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--bronze); background: var(--cream); }
.dropzone__text { color: var(--text); font-size: 0.9rem; margin-bottom: 4px; }
.dropzone__text span { color: var(--bronze); font-weight: 600; text-decoration: underline; }
.dropzone__hint { color: var(--text-light); font-size: 0.78rem; }
.dropzone__previews {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.dropzone__previews:empty { margin-top: 0; }
.dropzone__preview {
  position: relative; width: 70px; height: 70px; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow);
}
.dropzone__preview img { width: 100%; height: 100%; object-fit: cover; }
.dropzone__preview button {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: rgba(15,28,54,0.75); color: var(--white);
  font-size: 0.75rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* FOOTER */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px 24px 40px; }
.footer__logo { width: auto; height: 64px; margin-bottom: 14px; border-radius: 8px; background: var(--cream); padding: 6px 10px; }
.footer__col h4 { color: var(--white); margin-bottom: 16px; font-family: var(--font-heading); }
.footer__col a { display: block; margin-bottom: 10px; }
.footer__col a:hover { color: var(--bronze-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .about, .devis, .footer__inner { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .zones { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .method__header { flex-direction: column; align-items: flex-start; }
  .method__card { flex-basis: calc(60% - 12px); }

  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px;
  }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  h2 { font-size: 1.7rem; }
  .method__card { flex-basis: 85%; }

  .zones { grid-template-columns: 1fr; }

  /* Sliders: prestations et réalisations */
  .grid--3, .gallery {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 4px 24px 12px;
  }
  .grid--3::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .grid--3 > *, .gallery > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .gallery__item { aspect-ratio: 4/3; }
}
