/* ===========================
   OBJECTIF PARQUET — CSS
   Style professionnel bois
   =========================== */

/* --- Variables --- */
:root {
  --bois:       #8B6343;
  --bois-clair: #C49A6C;
  --beige:      #F5EFE6;
  --beige-dark: #E8DDD0;
  --blanc:      #FFFFFF;
  --texte:      #2C2418;
  --texte-clair:#6B5744;
  --ombre:      rgba(44, 36, 24, 0.12);
  --radius:     6px;
  --transition: 0.25s ease;
  --max-width:  1160px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--bois); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bois-clair); }
ul { list-style: none; }

/* --- Utilitaires --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--beige { background: var(--beige); }
.section--dark  { background: var(--texte); color: var(--beige); }

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--bois);
  margin-bottom: 12px;
  font-weight: normal;
  letter-spacing: 0.02em;
}
.section--dark .section__title { color: var(--bois-clair); }

.section__subtitle {
  font-size: 1.05rem;
  color: var(--texte-clair);
  margin-bottom: 48px;
  max-width: 640px;
}
.section--dark .section__subtitle { color: var(--beige-dark); }

.divider {
  width: 56px;
  height: 3px;
  background: var(--bois-clair);
  margin: 16px 0 36px;
  border: none;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--bois);
  color: var(--blanc);
}
.btn--primary:hover {
  background: var(--bois-clair);
  color: var(--blanc);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--bois);
  border-color: var(--bois);
}
.btn--outline:hover {
  background: var(--bois);
  color: var(--blanc);
}
.btn--light {
  background: var(--beige);
  color: var(--bois);
}
.btn--light:hover {
  background: var(--blanc);
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  box-shadow: 0 2px 12px var(--ombre);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--bois);
  font-family: 'Arial', sans-serif;
  line-height: 1.3;
  text-decoration: none;
  flex-shrink: 0;
}
.header__phone-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.65;
  font-weight: normal;
}
.header__phone-number {
  font-size: 0.88rem;
  font-weight: bold;
  color: var(--bois);
  white-space: nowrap;
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.header__logo-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--bois);
  letter-spacing: 0.03em;
}
.header__logo-tagline {
  font-size: 0.72rem;
  color: var(--texte-clair);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__link {
  font-size: 0.95rem;
  color: var(--texte);
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 3px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--bois);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--bois); }
.nav__link.active { color: var(--bois); font-weight: bold; }

.nav__cta {
  background: var(--bois);
  color: var(--blanc) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.nav__cta:hover { background: var(--bois-clair); }
.nav__cta::after { display: none !important; }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--texte);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--texte) 0%, #4A3728 60%, var(--bois) 100%);
  color: var(--blanc);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><path d="M0 30h60M30 0v60" stroke="%23ffffff08" stroke-width="1"/></svg>');
  background-size: 60px 60px;
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.hero__badge {
  display: inline-block;
  background: var(--bois-clair);
  color: var(--blanc);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-family: 'Arial', sans-serif;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--blanc);
}
.hero h1 em {
  font-style: normal;
  color: var(--bois-clair);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--beige-dark);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__trust {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__trust-number {
  font-size: 2rem;
  color: var(--bois-clair);
  font-weight: bold;
  line-height: 1;
}
.hero__trust-label {
  font-size: 0.8rem;
  color: var(--beige-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Arial', sans-serif;
}

/* --- ZONES --- */
.zones {
  background: var(--bois);
  color: var(--blanc);
  padding: 20px 0;
}
.zones__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-family: 'Arial', sans-serif;
}
.zones__label { font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.zones__list  { display: flex; gap: 8px; flex-wrap: wrap; }
.zones__tag {
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
}

/* --- CARDS --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--ombre);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44,36,24,0.18);
}
.card__icon {
  font-size: 2.2rem;
  padding: 28px 24px 12px;
}
.card__body { padding: 0 24px 28px; }
.card__title {
  font-size: 1.15rem;
  color: var(--bois);
  margin-bottom: 10px;
}
.card__text {
  font-size: 0.92rem;
  color: var(--texte-clair);
  line-height: 1.65;
}

/* --- SERVICES GRID (page services) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--blanc);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--bois-clair);
  box-shadow: 0 6px 24px var(--ombre);
}
.service-card__icon { font-size: 2rem; margin-bottom: 16px; }
.service-card__title {
  font-size: 1.2rem;
  color: var(--bois);
  margin-bottom: 12px;
}
.service-card__list {
  list-style: none;
  padding: 0;
}
.service-card__list li {
  padding: 4px 0;
  font-size: 0.92rem;
  color: var(--texte-clair);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-card__list li::before {
  content: '✓';
  color: var(--bois);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- REALISATIONS --- */
.real-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.real-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--ombre);
  background: var(--blanc);
}

.real-card__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
}
.real-card__before,
.real-card__after {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: bold;
}
.real-card__before {
  background: #6B5744;
  color: var(--beige-dark);
}
.real-card__after {
  background: var(--bois-clair);
  color: var(--blanc);
}
.real-card__before .real-icon,
.real-card__after .real-icon { font-size: 2rem; }

.real-card__body { padding: 24px; }
.real-card__title {
  font-size: 1.05rem;
  color: var(--bois);
  margin-bottom: 8px;
}
.real-card__desc {
  font-size: 0.9rem;
  color: var(--texte-clair);
}
.real-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.real-tag {
  background: var(--beige);
  color: var(--texte-clair);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Arial', sans-serif;
}

/* --- TÉMOIGNAGE / ENCART --- */
.highlight-box {
  background: var(--beige);
  border-left: 4px solid var(--bois);
  padding: 28px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 40px 0;
}
.highlight-box p {
  font-size: 1rem;
  color: var(--texte);
  font-style: italic;
}
.highlight-box cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--texte-clair);
  font-style: normal;
  font-family: 'Arial', sans-serif;
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-info__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--texte-clair);
  font-family: 'Arial', sans-serif;
  margin-bottom: 4px;
}
.contact-info__value {
  font-size: 1rem;
  color: var(--texte);
}
.contact-info__value a {
  color: var(--bois);
  font-weight: bold;
  font-size: 1.1rem;
}

/* --- FORMULAIRE --- */
.form { display: flex; flex-direction: column; gap: 20px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.form__label {
  font-size: 0.85rem;
  color: var(--texte-clair);
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.04em;
}
.form__label span { color: var(--bois); }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
  color: var(--texte);
  background: var(--blanc);
  transition: border-color var(--transition);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--bois);
}
.form__textarea { resize: vertical; min-height: 130px; }

.form__note {
  font-size: 0.82rem;
  color: var(--texte-clair);
  font-family: 'Arial', sans-serif;
}

/* --- BANNER DEVIS --- */
.banner-devis {
  background: linear-gradient(135deg, var(--bois) 0%, var(--bois-clair) 100%);
  color: var(--blanc);
  padding: 56px 0;
  text-align: center;
}
.banner-devis h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  font-weight: normal;
}
.banner-devis p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* --- FOOTER --- */
.footer {
  background: var(--texte);
  color: var(--beige-dark);
  padding: 48px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand-name {
  font-size: 1.3rem;
  color: var(--bois-clair);
  font-weight: bold;
  margin-bottom: 10px;
}
.footer__brand-desc {
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.65;
}
.footer__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bois-clair);
  margin-bottom: 16px;
  font-family: 'Arial', sans-serif;
}
.footer__list { display: flex; flex-direction: column; gap: 8px; }
.footer__list a {
  font-size: 0.9rem;
  color: var(--beige-dark);
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer__list a:hover { opacity: 1; color: var(--bois-clair); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.55;
  font-family: 'Arial', sans-serif;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- PAGE HERO (intérieure) --- */
.page-hero {
  background: linear-gradient(135deg, var(--texte) 0%, #4A3728 100%);
  color: var(--blanc);
  padding: 64px 0;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: normal;
  color: var(--blanc);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1rem;
  color: var(--beige-dark);
  max-width: 600px;
}
.page-hero__breadcrumb {
  font-size: 0.8rem;
  color: var(--bois-clair);
  font-family: 'Arial', sans-serif;
  margin-bottom: 16px;
  opacity: 0.85;
}

/* --- SEO TEXT BLOCK --- */
.seo-block {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
}
.seo-block h2 {
  font-size: 1.2rem;
  color: var(--bois);
  margin-bottom: 12px;
}
.seo-block p {
  font-size: 0.92rem;
  color: var(--texte-clair);
  line-height: 1.75;
}

/* --- CAROUSEL RÉALISATIONS --- */
.carousel-section {
  background: var(--texte);
  padding: 56px 0;
}
.carousel-section .section__title { color: var(--bois-clair); }
.carousel-section .section__subtitle { color: var(--beige-dark); opacity: 0.85; }

.carousel {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
}
@supports not (aspect-ratio: 4/3) {
  .carousel { height: 520px; }
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.carousel__slide.active { opacity: 1; z-index: 1; }
.carousel__slide.prev   { opacity: 0; z-index: 0; }

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.carousel__btn:hover { background: rgba(0,0,0,0.75); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }

.carousel__counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.82rem;
  font-family: 'Arial', sans-serif;
  padding: 4px 10px;
  border-radius: 20px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.carousel__dot.active {
  background: var(--bois-clair);
  transform: scale(1.3);
}

/* --- GALERIE GRILLE (page réalisations) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1/1;
  background: var(--beige-dark);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: 'Arial', sans-serif;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 52px 0; }

  /* Nav mobile */
  .nav__toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    box-shadow: 0 8px 24px var(--ombre);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav.open { max-height: 400px; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
  }
  .nav__list li { width: 100%; }
  .nav__link {
    display: block;
    padding: 12px 24px;
  }
  .nav__cta { margin: 8px 24px 16px; display: inline-block; }

  .hero { padding: 72px 0 56px; }
  .hero__trust { gap: 20px; }
  .hero__actions { flex-direction: column; }

  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
