/* =========================================================
   Groupe Pro-Excellence Inc — feuille de style
   Design elegant, minimaliste, inspire par erige.ca
   ========================================================= */

:root {
  --ink: #14171b;
  --ink-soft: #3a3f45;
  --paper: #ffffff;
  --sand: #f4f1ec;
  --sand-deep: #e9e4db;
  --line: #e2ddd4;
  --accent: #b3853f;      /* laiton chaud */
  --accent-dark: #966d2f;
  --muted: #8a8f96;
  --shadow: 0 24px 60px -30px rgba(20, 23, 27, .45);
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .2px;
}

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

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

.container-x {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Libelles / sur-titres */
.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}
.section.sand { background: var(--sand); }
.section.ink {
  background: var(--ink);
  color: #efeae1;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 18px 0 0;
}
.section-head p { color: var(--ink-soft); margin-top: 18px; }
.section.ink .section-head p { color: #b9b3a8; }

/* ---------- Boutons ---------- */
.btn-x {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: "Inter", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: all .45s var(--ease);
  border-radius: var(--radius);
}
.btn-x:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-x.ghost { background: transparent; color: var(--ink); }
.btn-x.ghost:hover { background: var(--ink); color: #fff; }
.btn-x.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-x.light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-x.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-x.outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: .55rem; line-height: 1; }
.brand__mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
  transition: color .5s var(--ease);
}
.brand__tag {
  font-family: "Inter", sans-serif;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: rgba(255,255,255,.7);
  transition: color .5s var(--ease);
}
.nav.scrolled .brand__mark { color: var(--ink); }
.nav.scrolled .brand__tag { color: var(--accent); }
.brand__mark b { color: var(--accent); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  position: relative;
  transition: color .4s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav.scrolled .nav__links a { color: var(--ink-soft); }
.nav.scrolled .nav__links a:hover { color: var(--ink); }

.nav__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  color: #fff; padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  transition: all .4s var(--ease);
}
.nav__phone:hover { background: var(--accent); border-color: var(--accent); }
.nav.scrolled .nav__phone { color: var(--ink); border-color: var(--line); }
.nav.scrolled .nav__phone:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 24px; position: relative; }
.nav__toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: #fff; transition: all .4s var(--ease); }
.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 11px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.nav.scrolled .nav__toggle span { background: var(--ink); }

/* Menu mobile plein ecran */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem; color: #fff; padding: 8px 0;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu__close { position: absolute; top: 26px; right: 26px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
.mobile-menu__phone { margin-top: 24px; color: var(--accent); letter-spacing: .1em; font-family: "Inter", sans-serif; font-size: 1rem; }

/* =========================================================
   Hero avec video en fond
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(15,17,20,.82) 0%, rgba(15,17,20,.28) 45%, rgba(15,17,20,.55) 100%);
}
.hero__inner { padding-top: 90px; max-width: 900px; }
.hero__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  margin: 22px 0 0;
  letter-spacing: 0;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub {
  margin: 26px 0 40px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 560px;
  color: rgba(255,255,255,.9);
  font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll .line { width: 1px; height: 46px; background: rgba(255,255,255,.5); animation: scrollLine 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 40% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================================
   Bande stats / approche
   ========================================================= */
.approche__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.approche__lead { font-size: clamp(1.5rem, 3vw, 2.15rem); font-family: "Cormorant Garamond", serif; line-height: 1.3; color: var(--ink); }
.approche__lead span { color: var(--accent); }
.approche__text { color: var(--ink-soft); margin-top: 20px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 34px 26px; }
.section.sand .stat { background: var(--sand); }
.stat__num { font-family: "Cormorant Garamond", serif; font-size: 3rem; color: var(--accent); line-height: 1; }
.stat__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-top: 12px; }

/* =========================================================
   Services
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service__img { aspect-ratio: 4/3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 32px 30px 36px; flex: 1; display: flex; flex-direction: column; }
.service__index { font-size: .74rem; letter-spacing: .2em; color: var(--accent); font-weight: 600; }
.service__body h3 { font-size: 1.8rem; margin: 14px 0 12px; }
.service__body p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* =========================================================
   Realisations / galerie
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.filter {
  font-family: "Inter", sans-serif;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 10px 20px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  cursor: pointer; border-radius: 40px; transition: all .4s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 22px 20px;
  background: linear-gradient(to top, rgba(15,17,20,.85), transparent);
  color: #fff; opacity: 0; transform: translateY(12px); transition: all .5s var(--ease);
}
.gallery-item:hover .gallery-item__cap { opacity: 1; transform: translateY(0); }
.gallery-item__cap .k { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.gallery-item__cap h4 { font-size: 1.35rem; margin: 6px 0 0; }
.gallery-item__plus {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem; opacity: 0; transition: all .5s var(--ease);
  border: 1px solid rgba(255,255,255,.3);
}
.gallery-item:hover .gallery-item__plus { opacity: 1; }
.gallery-item.hide { display: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 1500; display: none; }
.lb.open { display: block; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(12,13,16,.92); }
.lb__panel {
  position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; height: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; gap: 0;
  padding: 60px 24px;
}
.lb__imgwrap { background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb__imgwrap img { max-height: 80vh; width: 100%; object-fit: contain; }
.lb__info { background: var(--paper); color: var(--ink); padding: 46px 40px; display: flex; flex-direction: column; justify-content: center; }
.lb__info .k { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lb__info h3 { font-size: 2.2rem; margin: 12px 0 18px; }
.lb__info p { color: var(--ink-soft); font-size: .98rem; }
.lb__close { position: absolute; top: 22px; right: 24px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; z-index: 3; line-height: 1; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; z-index: 3; transition: background .3s; }
.lb__nav:hover { background: var(--accent); border-color: var(--accent); }
.lb__nav.prev { left: 18px; }
.lb__nav.next { right: 18px; }

/* =========================================================
   Temoignages
   ========================================================= */
.testi { max-width: 940px; margin: 0 auto; text-align: center; }
.testi__quote { font-family: "Cormorant Garamond", serif; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.4; color: #fff; font-style: italic; }
.section.ink .testi__quote { color: #f2ede4; }
.testi__mark { font-family: "Cormorant Garamond", serif; font-size: 5rem; color: var(--accent); line-height: .5; height: 40px; }
.testi__meta { margin-top: 30px; }
.testi__name { font-weight: 600; letter-spacing: .08em; color: #fff; }
.testi__proj { font-size: .82rem; color: #a49d90; margin-top: 4px; text-transform: uppercase; letter-spacing: .12em; }
.testi__slide { display: none; }
.testi__slide.active { display: block; animation: fade .8s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.testi__dots { display: flex; gap: 10px; justify-content: center; margin-top: 44px; }
.testi__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); border: 0; cursor: pointer; transition: all .4s var(--ease); padding: 0; }
.testi__dot.active { background: var(--accent); transform: scale(1.3); }

/* =========================================================
   Contact
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact__info h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 20px; }
.contact__info p { color: var(--ink-soft); }
.contact__list { margin: 34px 0 0; padding: 0; list-style: none; }
.contact__list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list .ic { color: var(--accent); font-size: 1.1rem; margin-top: 3px; }
.contact__list .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.contact__list .val { font-size: 1.12rem; color: var(--ink); font-weight: 500; }

.form { background: var(--paper); border: 1px solid var(--line); padding: 40px; box-shadow: var(--shadow); border-radius: var(--radius); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 8px; font-weight: 600; }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: #fbfaf7;
  font-family: "Inter", sans-serif; font-size: .96rem; color: var(--ink); border-radius: var(--radius);
  transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; justify-content: center; border: 0; margin-top: 6px; }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 16px; text-align: center; }

.alert-x { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 22px; font-size: .92rem; }
.alert-x.ok { background: #edf6ee; border: 1px solid #bfe0c4; color: #235c30; }
.alert-x.err { background: #fbecec; border: 1px solid #e6c3c3; color: #7c2222; }

/* =========================================================
   Pied de page
   ========================================================= */
.footer { background: #0f1114; color: #b9b3a8; padding: 80px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand .brand__mark { color: #fff; font-size: 2rem; }
.footer__brand p { margin-top: 18px; max-width: 320px; font-size: .95rem; }
.footer h5 { color: #fff; font-family: "Inter", sans-serif; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: .82rem; color: #6c6f74; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   Animations d'apparition
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .approche__grid { grid-template-columns: 1fr; gap: 44px; }
  .services__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .lb__panel { grid-template-columns: 1fr; padding: 40px 16px; overflow-y: auto; }
  .lb__imgwrap img { max-height: 50vh; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form { padding: 26px; }
  .lb__nav { display: none; }
  .hero { align-items: flex-end; }
  .hero__inner { padding-top: 130px; padding-bottom: 72px; }
  .hero__scroll { display: none; }
}
