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

:root {
  --brown:  #3D2B1F;
  --brown2: #5C3D2E;
  --sand:   #C8B89A;
  --warm:   #F5F0E8;
  --light:  #FAF7F2;
  --gold:   #9C6B3C;
  --text:   #1A1816;
  --gray:   #666;
}

html { scroll-behavior: smooth; }
body { font-family: "DM Sans", sans-serif; background: var(--light); color: var(--text); overflow-x: hidden; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 3rem;
  background: rgba(25,15,8,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,184,154,0.1);
  transition: padding .3s;
}
nav.scrolled { padding: .3rem 3rem; }
.nav-logo img { height: 48px; width: auto; object-fit: contain; }
.tag-votre {
  font-style: italic;
  color: var(--gold);
  font-size: 1.1em;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: .05em;
}
/* Desktop nav */
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: #bbb; text-decoration: none; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.nav-links a:hover { color: var(--sand); }
.nav-cta { background: var(--gold); color: #fff; border: none; padding: .6rem 1.5rem; font-family: "DM Sans",sans-serif; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .3s; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: var(--brown2); }
/* Burger hidden on desktop */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; z-index: 400; position: relative; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--sand); transition: all .3s; border-radius: 2px; }

/* ── SECTION COMMONS ── */
.section-tag { display: inline-block; color: var(--gold); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .7rem; }
h2 { font-family: "Playfair Display", serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--brown); }
.section-sub { color: var(--gray); margin-top: .6rem; font-size: .95rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.btn-main { background: var(--gold); color: #fff; padding: .85rem 2rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .3s; display: inline-block; border: none; cursor: pointer; font-family: "DM Sans", sans-serif; }
.btn-main:hover { background: var(--brown2); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--sand); color: var(--sand); padding: .85rem 2rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .3s; display: inline-block; }
.btn-outline:hover { background: var(--sand); color: var(--brown); }

/* ── HERO ── */
#hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20,10,5,.88) 0%, rgba(30,18,10,.75) 50%, rgba(20,10,5,.6) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 9rem 2rem 5rem; }
.hero-content { max-width: 640px; }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(156,107,60,.15); border: 1px solid rgba(156,107,60,.35); color: var(--gold); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; padding: .4rem 1rem; margin-bottom: 1.2rem; }
.hero-brand { font-family: "Playfair Display", serif; font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; color: #fff; line-height: 1; margin-bottom: 1rem; letter-spacing: -.01em; white-space: nowrap; }
.hero-brand span { color: var(--sand); }
.hero-brand-sub { color: var(--sand); font-size: .55em; font-weight: 700; vertical-align: middle; letter-spacing: .02em; }
h1 { font-family: "Playfair Display", serif; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.15; color: var(--warm); margin-bottom: 1.2rem; }
h1 span { color: var(--sand); }
.hero-sub { color: #b0a090; font-size: 1rem; line-height: 1.75; max-width: 500px; margin-bottom: 2.2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; padding-top: 2rem; border-top: 1px solid rgba(200,184,154,.15); }
.stat-num { font-family: "Playfair Display", serif; font-size: 2.2rem; color: var(--sand); display: block; line-height: 1; }
.stat-label { font-size: .72rem; color: #888; letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; display: block; }
.hero-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); color: rgba(200,184,154,.5); font-size: 1.5rem; text-decoration: none; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── SERVICES ── */
#services { padding: 7rem 0; background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.service-card { background: #fff; border: 1px solid #e8e0d4; padding: 2rem 1.8rem; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service-card::after { content:""; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--gold); transform:scaleX(0); transform-origin:left; transition:transform .4s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.07); border-color: var(--sand); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-title { font-family:"Playfair Display",serif; font-size: 1.1rem; color: var(--brown); margin-bottom: .6rem; }
.service-desc { color: #777; font-size: .88rem; line-height: 1.65; }

/* ── RÉALISATIONS FUSIONNÉES ── */
#realisations { padding: 7rem 0; background: var(--brown); }
.real-slider-wrap { max-width: 900px; margin: 0 auto 2.5rem; }
.real-slider-subtitle {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--sand);
  margin-bottom: 1.2rem;
  min-height: 2rem;
  transition: opacity .3s;
}
.slider-box { position: relative; overflow: hidden; cursor: col-resize; user-select: none; box-shadow: 0 20px 60px rgba(0,0,0,.3); aspect-ratio: 16/9; }
.img-apres { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-avant { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 50% 0 0); }
.slider-line { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.slider-btn { width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.slider-tag-avant, .slider-tag-apres { position: absolute; top: 1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; background: rgba(0,0,0,.5); color: #fff; }
.slider-tag-avant { left: 1rem; }
.slider-tag-apres { right: 1rem; color: var(--sand); }
.slider-labels { display: flex; justify-content: space-between; margin-top: .7rem; font-size: .72rem; color: #999; letter-spacing: .1em; text-transform: uppercase; max-width: 900px; margin-left: auto; margin-right: auto; }

.real-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
  max-width: 900px;
  margin: 2rem auto 0;
}
.real-thumb {
  background: none; border: 2px solid transparent;
  cursor: pointer; padding: 0; transition: all .25s;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.real-thumb img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block; filter: brightness(.7);
  transition: filter .3s;
}
.real-thumb span {
  color: rgba(200,184,154,.5); font-size: .65rem;
  letter-spacing: .06em; text-transform: uppercase;
  text-align: center; line-height: 1.3;
  transition: color .25s;
}
.real-thumb:hover img, .real-thumb.active img { filter: brightness(1); }
.real-thumb.active { border-color: var(--gold); }
.real-thumb.active span, .real-thumb:hover span { color: var(--sand); }

/* ── À PROPOS ── */
#apropos { padding: 7rem 0; background: #fff; }
.apropos-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: center; }
.apropos-img-wrap { position: relative; }
.apropos-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.apropos-badge { position: absolute; bottom: -1.5rem; right: -1.5rem; background: var(--brown); padding: 1.5rem 2rem; text-align: center; }
.badge-num { font-family:"Playfair Display",serif; font-size: 2.5rem; color: var(--gold); display: block; line-height: 1; }
.badge-label { color: #aaa; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .4rem; display: block; }
.apropos-content .section-tag { display: block; }
.apropos-content h2 { text-align: left; margin-bottom: 1rem; }
.apropos-content p { color: var(--gray); line-height: 1.8; font-size: .95rem; }
.apropos-list { list-style: none; margin: 1.5rem 0 2rem; }
.apropos-list li { padding: .5rem 0; font-size: .9rem; color: #555; border-bottom: 1px solid #f0ece6; display: flex; align-items: center; gap: .8rem; }
.apropos-list li::before { content:"✦"; color: var(--gold); font-size: .65rem; flex-shrink: 0; }

/* ── AVIS ── */
#avis { padding: 6rem 0; background: var(--warm); }
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.avis-card { background: #fff; padding: 2rem; border: 1px solid #e8e0d4; position: relative; transition: box-shadow .3s; }
.avis-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.07); }
.avis-quote { position: absolute; top: 1rem; right: 1.5rem; font-size: 3.5rem; color: var(--sand); opacity: .25; font-family:"Playfair Display",serif; line-height: 1; }
.avis-stars { color: #D4A017; font-size: .95rem; margin-bottom: .8rem; letter-spacing: .1em; }
.avis-text { color: #555; font-size: .88rem; line-height: 1.7; font-style: italic; margin-bottom: 1.2rem; }
.avis-author { font-weight: 500; color: var(--brown); font-size: .88rem; }
.avis-location { color: #999; font-size: .78rem; margin-top: .2rem; }

/* ── CONTACT ── */
#contact { padding: 7rem 0; background: var(--brown); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: .8rem; }
.contact-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.4rem; background: rgba(255,255,255,.05); border: 1px solid rgba(200,184,154,.12); text-decoration: none; transition: border-color .3s; }
.contact-item:hover { border-color: var(--gold); }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-type { color: rgba(200,184,154,.6); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; display: block; }
.contact-val { color: var(--warm); font-size: .92rem; display: block; margin-top: .2rem; }
.zone-note { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); font-size: .8rem; margin-top: 1.2rem; border: 1px solid rgba(156,107,60,.3); padding: .5rem 1rem; background: rgba(156,107,60,.08); }
.contact-right { background: rgba(255,255,255,.04); border: 1px solid rgba(200,184,154,.12); padding: 2.5rem; }
.contact-right h3 { font-family:"Playfair Display",serif; color: var(--warm); font-size: 1.35rem; margin-bottom: .8rem; }
.devis-note { color: rgba(200,184,154,.65); font-size: .84rem; line-height: 1.6; margin-bottom: 1.5rem; }
.devis-note strong { color: var(--sand); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; color: rgba(200,184,154,.7); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .45rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(200,184,154,.2);
  color: var(--warm); padding: .75rem 1rem; font-family:"DM Sans",sans-serif; font-size: .9rem;
  outline: none; transition: border-color .3s; -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 95px; }
.form-group select option { background: var(--brown); color: var(--warm); }
.form-submit { width: 100%; background: var(--gold); color: #fff; border: none; padding: 1rem; font-family:"DM Sans",sans-serif; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .3s; margin-top: .5rem; }
.form-submit:hover { background: #7a5230; }

/* ── FOOTER ── */
footer { background: #120b06; padding: 2.5rem 3rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo img { height: 46px; width: auto; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: #555; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--sand); }
.footer-copy { color: #444; font-size: .78rem; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; text-decoration: none;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); background: var(--brown2); }

/* ── NAV ACTIVE LINK ── */
.nav-links a.active { color: var(--sand); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   RESPONSIVE TABLET
══════════════════════════════════════ */
@media(max-width: 1024px) {
  .apropos-inner { gap: 3rem; }
  .avis-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════ */
@media(max-width: 768px) {

  /* ── NAV ── */
  nav { padding: .5rem 1.2rem; }
  nav.scrolled { padding: .4rem 1.2rem; }
  .nav-logo img { height: 36px; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* MENU MOBILE : overlay plein écran avec fond solide */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100%;
    background: #0f0803;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 300;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(200,184,154,0.15);
  }
  .nav-links li:first-child {
    border-top: 1px solid rgba(200,184,154,0.15);
  }
  .nav-links a {
    font-size: 1.1rem;
    color: var(--warm);
    letter-spacing: .12em;
    display: block;
    padding: 1.1rem 0;
    text-align: center;
    background: transparent;
  }
  .nav-links a:hover {
    color: var(--sand);
    background: rgba(200,184,154,0.05);
  }

  /* Burger animé quand menu ouvert */
  .nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.active span:nth-child(2) { opacity: 0; }
  .nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── HERO ── */
  #hero { min-height: 100vh; }
  .hero-inner { padding: 5.5rem 1.2rem 3rem; }
  .hero-tag { font-size: .62rem; margin-bottom: .8rem; }
  .hero-brand {
    font-size: clamp(1.4rem, 6.5vw, 2.4rem);
    white-space: normal;
    line-height: 1.15;
    margin-bottom: .6rem;
  }
  .hero-brand-sub { font-size: .5em; display: inline; }
  h1 {
    font-size: clamp(.95rem, 3.5vw, 1.3rem);
    line-height: 1.45;
    margin-bottom: .8rem;
  }
  .hero-sub { font-size: .85rem; line-height: 1.6; margin-bottom: 1.5rem; }
  .hero-btns { flex-direction: column; gap: .6rem; margin-bottom: 1.8rem; }
  .btn-main, .btn-outline { padding: .7rem 1.5rem; font-size: .8rem; text-align: center; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: .6rem; }
  .hero-scroll { display: none; }

  /* ── SECTIONS GLOBALES ── */
  #services, #realisations, #apropos, #avis, #contact { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }
  .section-header { margin-bottom: 2rem; }
  h2 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); }
  .section-sub { font-size: .84rem; }
  .section-tag { font-size: .65rem; }

  /* ── SERVICES ── */
  .services-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .service-card { padding: 1.1rem .9rem; }
  .service-icon { font-size: 1.4rem; margin-bottom: .5rem; }
  .service-title { font-size: .88rem; margin-bottom: .3rem; }
  .service-desc { font-size: .76rem; line-height: 1.5; }

  /* ── RÉALISATIONS ── */
  .real-slider-subtitle { font-size: 1rem; margin-bottom: .7rem; }
  .real-thumbs { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .real-thumb span { font-size: .56rem; }

  /* ── À PROPOS ── */
  .apropos-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .apropos-img-wrap { display: none; }
  .apropos-content p { font-size: .87rem; line-height: 1.7; }
  .apropos-list li { font-size: .84rem; }

  /* ── AVIS ── */
  .avis-grid { grid-template-columns: 1fr; gap: .8rem; }
  .avis-card { padding: 1.2rem; }
  .avis-text { font-size: .84rem; }
  .avis-quote { font-size: 2.5rem; }

  /* ── CONTACT ── */
  .contact-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-right { padding: 1.2rem; }
  .contact-right h3 { font-size: 1.1rem; }
  .form-group { margin-bottom: .8rem; }
  .form-group input, .form-group textarea, .form-group select { font-size: .85rem; padding: .65rem .9rem; }

  /* ── FOOTER ── */
  footer { padding: 1.5rem 1.2rem; flex-direction: column; text-align: center; gap: .6rem; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: .6rem; }
  .footer-logo img { height: 30px; }
  .footer-copy { font-size: .7rem; }

  /* ── BACK TO TOP ── */
  .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; font-size: 1rem; }
}

/* ══════════════════════════════════════
   TRÈS PETIT MOBILE (< 400px)
══════════════════════════════════════ */
@media(max-width: 400px) {
  .services-grid { grid-template-columns: 1fr; }
  .real-thumbs { grid-template-columns: repeat(2, 1fr); }
  .hero-brand { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .avis-grid { grid-template-columns: 1fr; }
}
