/* ============================================================
   Boldini – Styles principaux
   Tous les sélecteurs sont préfixés bp- pour éviter les
   conflits avec les styles Uncode.
   ============================================================ */

/* Reset ciblé ------------------------------------------------ */
body.boldini-fullpage {
  margin: 0;
  padding: 0;
  background: #0a0a0a !important;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

body.boldini-fullpage *,
body.boldini-fullpage *::before,
body.boldini-fullpage *::after {
  box-sizing: border-box;
}

body.boldini-fullpage a {
  color: inherit;
  text-decoration: none;
}

/* Masquer les éléments Uncode non souhaités sur ce template */
body.boldini-fullpage .page-wrapper,
body.boldini-fullpage #header-outer,
body.boldini-fullpage .site-footer {
  display: none !important;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.bp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  transition: background .3s, box-shadow .3s;
}

.bp-nav.scrolled {
  background: rgba(10, 10, 10, .94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.bp-nav-logo {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}

.bp-nav-logo span {
  color: #c8a96e;
}

.bp-nav-links {
  display: flex;
  gap: 36px;
}

.bp-nav-links a {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  transition: color .2s;
}

.bp-nav-links a:hover {
  color: #c8a96e;
}

/* Burger (mobile) */
.bp-nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.bp-nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}

/* ─── HERO ───────────────────────────────────────────────── */
.bp-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  will-change: transform;
}

.bp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%);
}

.bp-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 80px;
  max-width: 860px;
}

.bp-hero-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #c8a96e;
  border: 1px solid #c8a96e;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.bp-hero-title {
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 20px;
}

.bp-hero-title strong {
  font-weight: 500;
  color: #c8a96e;
}

.bp-hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 0 40px;
}

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

/* Scroll hint */
.bp-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

.bp-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(200,169,110,.6), transparent);
  animation: bp-sd 2s ease-in-out infinite;
}

@keyframes bp-sd {
  0%, 100% { opacity: 0; transform: scaleY(.3) translateY(-8px); }
  50%       { opacity: 1; transform: scaleY(1); }
}

/* ─── BOUTONS ────────────────────────────────────────────── */
.bp-btn-gold {
  background: #c8a96e;
  color: #0a0a0a;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: background .2s;
}

.bp-btn-gold:hover {
  background: #d4b87a;
}

.bp-btn-out {
  background: transparent;
  color: #fff;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: 1px solid rgba(255, 255, 255, .35);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s;
}

.bp-btn-out:hover {
  border-color: #fff;
}

/* ─── STATS BAR ──────────────────────────────────────────── */
.bp-stats-bar {
  background: #c8a96e;
  display: flex;
}

.bp-stat {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, .15);
}

.bp-stat:last-child {
  border-right: none;
}

.bp-stat-n {
  font-size: 34px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1;
}

.bp-stat-l {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .55);
  margin-top: 4px;
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.bp-section {
  padding: 96px 48px;
  background: #0a0a0a;
}

.bp-sec-tag {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 14px;
}

.bp-sec-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 300;
  color: #fff;
  margin: 0 0 48px;
  line-height: 1.1;
}

/* ─── SERVICES ───────────────────────────────────────────── */
.bp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .07);
}

.bp-svc {
  background: #0f0f0f;
  padding: 40px 32px;
  transition: background .25s;
}

.bp-svc:hover {
  background: #141414;
}

.bp-svc-ico {
  margin-bottom: 24px;
}

.bp-svc-ico svg {
  width: 28px;
  height: 28px;
}

.bp-svc-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}

.bp-svc-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  line-height: 1.7;
}

/* ─── PORTFOLIO ──────────────────────────────────────────── */
.bp-portfolio-section {
  background: #0d0d0d;
}

.bp-portfolio-header {
  padding: 96px 48px 0;
}

/*
  Grille éditoriale – placement explicite sur 4 colonnes × 3 rangées
  ┌─────────────┬─────────────────────┐
  │             │      Photo 2        │  ← 300 px
  │   Photo 1   ├──────────┬──────────┤
  │  (tall)     │  Photo 3 │  Photo 4 │  ← 240 px
  ├─────────────┴──────────┴──────────┤
  │          Photo 5 (bandeau)        │  ← 280 px
  └───────────────────────────────────┘
*/
.bp-pgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 300px 240px 280px;
  gap: 4px;
  margin: 48px 48px 96px;
}

/* Placement explicite des 5 photos */
.bp-pgrid .bp-pitem:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.bp-pgrid .bp-pitem:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.bp-pgrid .bp-pitem:nth-child(3) { grid-column: 3;     grid-row: 2; }
.bp-pgrid .bp-pitem:nth-child(4) { grid-column: 4;     grid-row: 2; }
.bp-pgrid .bp-pitem:nth-child(5) { grid-column: 1 / 5; grid-row: 3; }

.bp-pitem {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
}

.bp-pitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.bp-pitem:hover img {
  transform: scale(1.06);
}

.bp-pitem-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-pover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background .3s;
}

.bp-pitem:hover .bp-pover {
  background: rgba(0, 0, 0, .55);
}

.bp-plabel {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-plabel::before {
  content: '';
  width: 22px;
  height: 2px;
  background: #c8a96e;
  flex-shrink: 0;
}

.bp-pitem:hover .bp-plabel {
  opacity: 1;
  transform: translateY(0);
}

/* ─── BANDE PARALLAXE ────────────────────────────────────── */
.bp-pband {
  position: relative;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-pband-bg {
  position: absolute;
  inset: -80px 0;
  background-size: cover;
  background-position: center;
  background-color: #222;
  will-change: transform;
}

.bp-pband-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.bp-pband-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 48px;
}

.bp-pband-content p {
  font-size: clamp(20px, 3.5vw, 40px);
  font-weight: 300;
  color: #fff;
  line-height: 1.35;
  max-width: 680px;
  margin: 0 auto 32px;
}

.bp-pband-content em {
  color: #c8a96e;
  font-style: normal;
}

/* ─── CONTACT ────────────────────────────────────────────── */
.bp-contact {
  padding: 96px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  background: #0a0a0a;
}

.bp-divider {
  width: 48px;
  height: 2px;
  background: #c8a96e;
  margin-bottom: 32px;
}

.bp-cinfo {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.bp-cdot {
  width: 8px;
  height: 8px;
  background: #c8a96e;
  flex-shrink: 0;
  margin-top: 6px;
}

.bp-ctxt {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
}

.bp-ctxt strong {
  color: #fff;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

/* Formulaire */
.bp-cform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bp-fgrp {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-fgrp label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

.bp-fgrp input,
.bp-fgrp textarea,
.bp-fgrp select {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.bp-fgrp select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a96e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.bp-fgrp select option {
  background: #1a1a1a;
  color: #fff;
}

.bp-fgrp input:focus,
.bp-fgrp textarea:focus,
.bp-fgrp select:focus {
  border-color: #c8a96e;
}

.bp-fgrp textarea {
  resize: vertical;
  min-height: 110px;
}

.bp-frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bp-fsubmit {
  background: #c8a96e;
  color: #0a0a0a;
  border: none;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: background .2s;
  margin-top: 6px;
}

.bp-fsubmit:hover:not(:disabled) {
  background: #d4b87a;
}

.bp-fsubmit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.bp-form-msg {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.bp-form-msg.success {
  background: rgba(200, 169, 110, .12);
  border: 1px solid rgba(200, 169, 110, .35);
  color: #c8a96e;
}

.bp-form-msg.error {
  background: rgba(220, 50, 50, .1);
  border: 1px solid rgba(220, 50, 50, .3);
  color: #f08080;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.bp-footer {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a0a0a;
}

.bp-ftxt {
  font-size: 12px;
  color: rgba(255, 255, 255, .25);
}

.bp-footer-link {
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s;
}

.bp-footer-link:hover {
  color: rgba(255, 255, 255, .55);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .bp-nav {
    padding: 18px 24px;
  }

  .bp-nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, .97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform .35s ease;
    z-index: 190;
  }

  .bp-nav-links.open {
    transform: translateY(0);
  }

  .bp-nav-links a {
    font-size: 14px;
    letter-spacing: .2em;
  }

  .bp-nav-burger {
    display: flex;
    z-index: 210;
  }

  .bp-hero-content {
    padding: 0 24px 60px;
  }

  .bp-scroll-hint {
    display: none;
  }

  .bp-services-grid {
    grid-template-columns: 1fr;
  }

  /* Tablette : 2 colonnes, 3 rangées */
  .bp-pgrid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 200px 200px;
    margin: 32px 24px 64px;
  }

  .bp-pgrid .bp-pitem:nth-child(1) { grid-column: 1;     grid-row: 1; }
  .bp-pgrid .bp-pitem:nth-child(2) { grid-column: 2;     grid-row: 1; }
  .bp-pgrid .bp-pitem:nth-child(3) { grid-column: 1;     grid-row: 2; }
  .bp-pgrid .bp-pitem:nth-child(4) { grid-column: 2;     grid-row: 2; }
  .bp-pgrid .bp-pitem:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }

  .bp-portfolio-header {
    padding: 64px 24px 0;
  }

  .bp-section {
    padding: 64px 24px;
  }

  .bp-contact {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 24px;
  }

  .bp-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .bp-stats-bar {
    flex-wrap: wrap;
  }

  .bp-stat {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
  }

  /* Mobile : 1 colonne, hauteurs auto */
  .bp-pgrid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    margin: 24px 16px 48px;
  }

  .bp-pgrid .bp-pitem:nth-child(1),
  .bp-pgrid .bp-pitem:nth-child(2),
  .bp-pgrid .bp-pitem:nth-child(3),
  .bp-pgrid .bp-pitem:nth-child(4),
  .bp-pgrid .bp-pitem:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 4/3;
  }

  .bp-pitem {
    aspect-ratio: 4/3;
  }

  .bp-frow {
    grid-template-columns: 1fr;
  }

  .bp-pband-content {
    padding: 0 24px;
  }

  .bp-hero-cta {
    flex-direction: column;
  }

  .bp-btn-gold,
  .bp-btn-out {
    text-align: center;
  }
}
