/* ============================================================
   ATELIER DUMONT – ÉBÉNISTE LYON
   Palette : bois chaud, crème, marron profond
   ============================================================ */

:root {
  --bois:       #8B5E1A;
  --bois-dark:  #5C3D0E;
  --bois-light: #C4904A;
  --cream:      #FAF6F0;
  --cream-dark: #F0E8DB;
  --text:       #2C1A0E;
  --text-light: #7A6A58;
  --white:      #FFFFFF;
  --accent:     #D4891A;
  --green:      #4A7C59;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(92,61,14,.12);
  --shadow-lg:  0 12px 48px rgba(92,61,14,.18);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ---- CONTAINER ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--bois); color: var(--white);
  box-shadow: 0 4px 16px rgba(139,94,26,.35);
}
.btn-primary:hover { background: var(--bois-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,94,26,.45); }
.btn-secondary {
  background: rgba(255,255,255,.15); color: var(--white);
  border: 2px solid rgba(255,255,255,.6); backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ---- SECTION ---- */
.section { padding: 96px 0; }
.section-dark  { background: var(--bois-dark); color: var(--white); }
.section-warm  { background: var(--cream); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header p { color: var(--text-light); margin-top: 16px; font-size: 1.05rem; line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

.section-tag {
  display: inline-block;
  background: rgba(139,94,26,.1); color: var(--bois);
  padding: 6px 16px; border-radius: 50px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag.light { background: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: var(--transition);
}
#header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 24px rgba(92,61,14,.12);
  padding: 10px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 1.6rem; }
.logo-title {
  display: block; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--white); transition: color var(--transition);
}
.logo-sub {
  display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.7); transition: color var(--transition);
}
#header.scrolled .logo-title { color: var(--bois-dark); }
#header.scrolled .logo-sub  { color: var(--text-light); }
nav { display: flex; align-items: center; gap: 32px; }
nav a {
  color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem;
  transition: color var(--transition); position: relative;
}
nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: var(--transition);
}
nav a:hover::after { transform: scaleX(1); }
nav a:hover { color: var(--white); }
#header.scrolled nav a { color: var(--text-light); }
#header.scrolled nav a:hover { color: var(--bois); }
.btn-nav {
  background: var(--accent) !important; color: var(--white) !important;
  padding: 10px 22px; border-radius: 50px; font-size: .85rem;
}
.btn-nav:hover { background: var(--bois) !important; }
.btn-nav::after { display: none !important; }
.burger {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: var(--white); cursor: pointer;
}
#header.scrolled .burger { color: var(--bois-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #3E2206 0%, #7B4A12 40%, #C4904A 100%);
  position: relative; display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(196,144,74,.2) 0%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: 100px; padding-bottom: 60px;
}
.badge-disponible {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 50px;
  padding: 8px 20px; color: var(--white); font-size: .85rem; font-weight: 700;
  margin-bottom: 28px; letter-spacing: .02em;
}
.pulse {
  display: inline-block; width: 10px; height: 10px;
  background: #4ade80; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74,222,128,.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74,222,128,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0   rgba(74,222,128,0); }
}
h1 { color: var(--white); margin-bottom: 20px; }
h1 span { color: var(--bois-light); }
.hero-sub {
  color: rgba(255,255,255,.8); font-size: 1.15rem; line-height: 1.7;
  max-width: 560px; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,.15);
}
.stat span {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900; color: var(--white);
}
.stat p { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 2px; }

.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   URGENCE BAR
   ============================================================ */
.urgence-bar {
  background: var(--bois-dark);
  padding: 14px 0;
}
.urgence-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.urgence-inner span {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85); font-size: .9rem;
}
.urgence-tel {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--bois-light); letter-spacing: .03em;
  transition: color var(--transition);
}
.urgence-tel:hover { color: var(--white); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid rgba(139,94,26,.08);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card.featured {
  background: linear-gradient(145deg, var(--bois) 0%, var(--bois-dark) 100%);
  color: var(--white);
}
.service-card.featured h3 { color: var(--white); }
.service-card.featured p  { color: rgba(255,255,255,.8); }
.service-card.featured ul li { color: rgba(255,255,255,.85); }
.service-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px;
}
.service-icon {
  width: 72px; height: 72px; background: rgba(139,94,26,.08);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--bois);
}
.service-card.featured .service-icon { background: rgba(255,255,255,.15); color: var(--white); }
.service-card h3 { margin-bottom: 12px; color: var(--bois-dark); }
.service-card p  { color: var(--text-light); font-size: .95rem; line-height: 1.65; margin-bottom: 20px; }
.service-card ul li {
  padding: 5px 0; font-size: .88rem; color: var(--text-light);
  display: flex; align-items: center; gap: 8px;
}
.service-card ul li::before {
  content: '→'; color: var(--bois); font-weight: 700;
}
.service-card.featured ul li::before { color: var(--bois-light); }

/* ============================================================
   SAVOIR-FAIRE
   ============================================================ */
.savoir-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.savoir-text h2 { color: var(--white); margin-bottom: 20px; }
.savoir-text p  { color: rgba(255,255,255,.75); line-height: 1.75; margin-bottom: 16px; font-size: 1rem; }
.savoir-points { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 14px; }
.point {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.9); font-size: .95rem;
}
.point svg { color: var(--bois-light); flex-shrink: 0; }

/* Cercles bois */
.savoir-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.wood-card {
  width: 280px; height: 280px; border-radius: 50%;
  position: relative; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #C4904A 0%, #8B5E1A 50%, #5C3D0E 100%);
  box-shadow: 0 0 0 12px rgba(196,144,74,.15), var(--shadow-lg);
}
.wood-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.1);
}
.w1 { width: 220px; height: 220px; }
.w2 { width: 175px; height: 175px; }
.w3 { width: 135px; height: 135px; }
.w4 { width: 100px; height: 100px; }
.w5 { width: 68px;  height: 68px; }
.wood-center {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.8); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.essences {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.essence {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border-radius: 50px;
  padding: 6px 14px; font-size: .82rem; color: rgba(255,255,255,.85);
}
.dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.chene    { background: #8B6914; }
.noyer    { background: #4A2C0A; }
.cerisier { background: #A0522D; }
.frene    { background: #C8B88A; }
.erable   { background: #E8D5B0; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 280px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item.tall  { grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; opacity: 0; transition: var(--transition);
}
.gallery-item.tall .gallery-overlay { opacity: .6; }
.gallery-overlay h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.gallery-overlay p  { color: rgba(255,255,255,.75); font-size: .82rem; }
.gallery-img-placeholder {
  opacity: .25;
}
.gallery-cta {
  text-align: center; margin-top: 48px;
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.gallery-cta p { color: var(--text-light); font-size: 1.05rem; }

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.reviews-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-bottom: 48px;
}
.review-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  border: 1px solid rgba(139,94,26,.08); transition: var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 16px; }
.stars.big { font-size: 1.5rem; }
.review-card p {
  color: var(--text-light); line-height: 1.7; font-style: italic; margin-bottom: 24px;
}
.review-author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px; background: linear-gradient(135deg, var(--bois) 0%, var(--bois-dark) 100%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.review-author strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.review-author span   { color: var(--text-light); font-size: .82rem; display: block; }
.rating-summary {
  display: flex; align-items: center; gap: 20px; justify-content: center;
}
.rating-score {
  font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 900;
  color: var(--bois);
}
.rating-summary p { color: var(--text-light); font-size: .9rem; margin-top: 4px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px; background: rgba(139,94,26,.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--bois); flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .95rem; margin-bottom: 4px; color: var(--bois-dark); }
.contact-item a, .contact-item span {
  display: block; color: var(--text-light); font-size: .9rem; line-height: 1.6;
}
.contact-item a:hover { color: var(--bois); }

/* Form */
.contact-form {
  background: var(--cream); border-radius: 20px;
  padding: 40px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 700; font-size: .85rem; color: var(--bois-dark); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border-radius: var(--radius);
  border: 1.5px solid rgba(139,94,26,.2);
  font-family: 'Lato', sans-serif; font-size: .95rem; color: var(--text);
  background: var(--white); transition: border-color var(--transition);
  resize: none; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--bois);
}
.form-urgence {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--text-light); cursor: pointer;
}
.form-urgence input { width: auto; accent-color: var(--bois); }
.form-success {
  display: flex !important; align-items: center; gap: 10px;
  background: rgba(74,124,89,.1); border: 1px solid rgba(74,124,89,.3);
  border-radius: var(--radius); padding: 16px; color: var(--green);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #1A0D05; padding: 72px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-title { color: var(--bois-light) !important; }
.footer-brand .logo-sub   { color: rgba(255,255,255,.5) !important; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-dispo {
  display: inline-flex; align-items: center; gap: 8px;
  color: #4ade80; font-size: .85rem; font-weight: 700;
}
.footer-links h4, .footer-contact h4 {
  color: var(--white); font-family: 'Playfair Display', serif;
  font-size: 1rem; margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links ul li, .footer-links ul a {
  color: rgba(255,255,255,.5); font-size: .88rem; transition: color var(--transition);
}
.footer-links ul a:hover { color: var(--bois-light); }
.footer-contact .footer-tel {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--bois-light);
  margin-bottom: 4px;
}
.footer-contact p, .footer-contact a {
  color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.7; display: block;
}
.footer-contact a:hover { color: var(--bois-light); }
.footer-siret { margin-top: 16px; font-size: .78rem !important; opacity: .4; }
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,.3); font-size: .82rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--bois-light); }

/* ============================================================
   FAB (bouton flottant)
   ============================================================ */
.fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: var(--bois); color: var(--white);
  padding: 14px 22px; border-radius: 50px;
  box-shadow: 0 8px 28px rgba(139,94,26,.45);
  font-weight: 700; font-size: .95rem; transition: var(--transition);
  animation: fabIn .5s ease 1s both;
}
.fab:hover { background: var(--bois-dark); transform: scale(1.05); }
@keyframes fabIn {
  from { opacity: 0; transform: translateY(20px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .savoir-inner  { grid-template-columns: 1fr; gap: 48px; }
  .savoir-visual { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  nav { display: none; flex-direction: column; position: fixed; inset: 0; top: 60px;
        background: var(--bois-dark); padding: 32px; z-index: 99; gap: 24px;
        align-items: flex-start; }
  nav.open { display: flex; }
  nav a { font-size: 1.2rem; color: var(--white) !important; }
  .burger { display: block; }
  .hero-stats { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid  { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 32px; }
  .form-row      { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-item.tall  { grid-row: span 1; }
  .gallery-item.wide  { grid-column: span 2; }
  .gallery-overlay { opacity: 1; }
  .footer-inner  { grid-template-columns: 1fr; gap: 36px; }
  .urgence-inner { flex-direction: column; text-align: center; }
  .fab span      { display: none; }
  .fab           { padding: 16px; border-radius: 50%; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; display: grid; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .gallery-item.wide { grid-column: span 1; }
  .rating-summary { flex-direction: column; text-align: center; }
}
