:root {
  --wood-dark: #5c3a22;
  --wood-medium: #a0623a;
  --wood-terracotta: #c98a4b;
  --wood-light: #d9a066;
  --cream: #faf3e9;
  --cream-alt: #f3e6d3;
  --text: #33251a;
  --text-muted: #6b5644;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(92, 58, 34, 0.12);
  --radius: 14px;
  --font-title: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  position: relative;
}

.sprite { display: none; }

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* Subtle film-grain texture for a premium, tactile feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.container {
  width: 96%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 24px;
}

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

ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-title); color: var(--wood-dark); line-height: 1.2; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wood-medium);
  margin-bottom: 8px;
}

.center { text-align: center; }

.section { padding: 88px 0; position: relative; }

.section-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 46px;
  display: block;
}
.section-wave.flip { transform: scaleX(-1); }

.wave-cream { fill: var(--cream); }
.wave-cream-alt { fill: var(--cream-alt); }
.wave-dark { fill: var(--wood-dark); }
.wave-footer { fill: #241710; }

.note { color: var(--text-muted); margin-top: -8px; margin-bottom: 32px; font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }

.btn-primary {
  background: var(--wood-medium);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--wood-dark); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--wood-dark);
  border: 2px solid var(--wood-dark);
}
.btn-secondary:hover { background: var(--wood-dark); color: var(--white); }

.btn-call {
  background: var(--cream-alt);
  color: var(--wood-dark);
  font-size: 0.88rem;
  padding: 10px 18px;
}
.btn-call:hover { background: var(--wood-light); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 233, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92, 58, 34, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo { width: 34px; height: 36px; object-fit: contain; flex-shrink: 0; align-self: center; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-title); font-size: 1.15rem; color: var(--wood-dark); }
.brand-text small { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }

.main-nav { display: flex; gap: 20px; flex-wrap: nowrap; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--wood-medium);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover { color: var(--wood-medium); }
.main-nav a:hover::after { transform: scaleX(1); }

.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(92, 58, 34, 0.1); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--wood-dark); border-radius: 2px; }

/* Hero */
.hero {
  padding: 110px 0 90px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-alt) 55%, #ecd6b6 100%);
  position: relative;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  fill: var(--cream);
}

.hero-inner { max-width: 720px; position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--wood-medium); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

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

/* Hero floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite;
}
.shape-1 {
  width: 320px; height: 320px;
  background: var(--wood-light);
  top: -80px; right: 8%;
  animation-duration: 16s;
}
.shape-2 {
  width: 220px; height: 220px;
  background: var(--wood-terracotta);
  bottom: -60px; right: 28%;
  animation-duration: 12s;
  animation-delay: -3s;
}
.shape-3 {
  width: 160px; height: 160px;
  background: var(--wood-medium);
  top: 30%; left: 4%;
  opacity: 0.18;
  animation-duration: 18s;
  animation-delay: -6s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.06); }
}

/* Hero entrance */
.hero-in {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.7s ease forwards;
}
.hero-in-1 { animation-delay: 0.05s; }
.hero-in-2 { animation-delay: 0.15s; }
.hero-in-3 { animation-delay: 0.28s; }
.hero-in-4 { animation-delay: 0.4s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Cards / Services */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(92, 58, 34, 0.16);
}
.card:hover .card-icon { transform: scale(1.15) rotate(-6deg); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 18px;
  transition: transform 0.25s ease, background 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-alt);
  color: var(--wood-medium);
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--wood-medium); color: var(--white); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

.services h2 { margin-bottom: 8px; }
.pourquoi h2 { margin-bottom: 8px; }
.galerie h2 { margin-bottom: 8px; }

.pourquoi { background: var(--cream-alt); }

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
  text-align: center;
}
.point-icon { font-size: 2.2rem; margin-bottom: 12px; }
.point h3 { font-size: 1.05rem; margin-bottom: 8px; }
.point p { color: var(--text-muted); font-size: 0.92rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--wood-light);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  z-index: 1;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(92, 58, 34, 0.2);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { transform: translateX(120%); }
.gallery-item span {
  background: rgba(51, 37, 26, 0.65);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
  margin: 14px;
  transition: transform 0.3s ease;
}
.gallery-item:hover span { transform: scale(1.05); }

/* Zone */
.zone { background: var(--wood-dark); color: var(--cream); }
.zone .eyebrow { color: var(--wood-light); }
.zone h2 { color: var(--white); margin-bottom: 18px; }
.zone p { color: #e7d5bd; max-width: 640px; margin-bottom: 28px; }

.city-list { display: flex; flex-wrap: wrap; gap: 12px; }
.city-list li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* Contact */
.contact { background: var(--cream-alt); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.contact-list .icon { color: var(--wood-medium); }
.contact-list a:hover { color: var(--wood-medium); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid #e3d3bd;
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--wood-light);
  outline-offset: 1px;
}
.contact-form button { margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; }
.form-status { font-size: 0.88rem; margin: 0; min-height: 1.2em; }
.form-status.is-success { color: #2f7d4f; }
.form-status.is-error { color: #b3482f; }

/* Footer */
.site-footer {
  background: #241710;
  color: #d9c4ac;
  padding: 40px 0;
}
.footer-inner { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.site-footer strong { color: var(--white); }
.legal { font-size: 0.82rem; color: #b39c81; }
.copyright { font-size: 0.8rem; color: #9c8166; margin-top: 8px; }
.credit { font-size: 0.78rem; color: #b39c81; margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.credit a { color: #a98a65; text-decoration: none; }
.credit a:hover { color: var(--white); text-decoration: underline; }
.roli-brand { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.roli-logo { flex-shrink: 0; border-radius: 4px; }

.legal-links { font-size: 0.78rem; color: #b39c81; margin-top: 4px; }
.legal-links a { color: #a98a65; text-decoration: none; }
.legal-links a:hover { color: var(--white); text-decoration: underline; }
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  color: #a98a65;
  text-decoration: none;
  cursor: pointer;
}
.link-button:hover { color: var(--white); text-decoration: underline; }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner p { font-size: 0.88rem; line-height: 1.5; margin: 0 0 14px; color: var(--text-muted); }
.cookie-banner-inner a { color: var(--wood-medium); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-banner-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

@media (max-width: 540px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; }
}

/* Floating action buttons (mobile): call + WhatsApp */
.floating-actions {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--white);
  align-items: center;
  justify-content: center;
  display: flex;
  box-shadow: 0 8px 20px rgba(92,58,34,0.35);
  transition: transform 0.2s ease;
}
.floating-btn:hover { transform: scale(1.08); }

.floating-call { background: var(--wood-medium); animation: pulse 2.4s ease-in-out infinite; }
.floating-whatsapp { background: #25D366; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(92,58,34,0.35), 0 0 0 0 rgba(160, 98, 58, 0.4); }
  50% { box-shadow: 0 8px 20px rgba(92,58,34,0.35), 0 0 0 10px rgba(160, 98, 58, 0); }
}

/* Scroll reveal — visible by default; only hidden-then-revealed when JS confirms it can animate it back in */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }

.cards .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.cards .reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.cards .reveal.visible:nth-child(3) { transition-delay: 0.15s; }
.cards .reveal.visible:nth-child(4) { transition-delay: 0.2s; }
.cards .reveal.visible:nth-child(5) { transition-delay: 0.25s; }
.cards .reveal.visible:nth-child(6) { transition-delay: 0.3s; }

.points .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.points .reveal.visible:nth-child(2) { transition-delay: 0.13s; }
.points .reveal.visible:nth-child(3) { transition-delay: 0.21s; }
.points .reveal.visible:nth-child(4) { transition-delay: 0.29s; }

.gallery-grid .reveal.visible:nth-child(1) { transition-delay: 0.04s; }
.gallery-grid .reveal.visible:nth-child(2) { transition-delay: 0.09s; }
.gallery-grid .reveal.visible:nth-child(3) { transition-delay: 0.14s; }
.gallery-grid .reveal.visible:nth-child(4) { transition-delay: 0.19s; }
.gallery-grid .reveal.visible:nth-child(5) { transition-delay: 0.24s; }
.gallery-grid .reveal.visible:nth-child(6) { transition-delay: 0.29s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in, .reveal, .shape, .floating-call, .floating-btn, .card, .gallery-item {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Testimonials */
.galerie { background: var(--cream-alt); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border: 2px dashed #e3d3bd;
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
}
.testimonial-card .stars { color: var(--wood-light); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card .quote { font-style: italic; color: var(--text-muted); margin-bottom: 12px; }
.testimonial-card .author { font-size: 0.88rem; font-weight: 600; color: var(--wood-dark); }

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 24px;
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.faq-item:hover {
  border-left-color: var(--wood-light);
  box-shadow: 0 14px 32px rgba(92, 58, 34, 0.14);
  transform: translateX(2px);
}
.faq-item[open] { border-left-color: var(--wood-medium); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--wood-medium);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after { width: 2px; height: 10px; }

.faq-item[open] .faq-icon { background: var(--wood-medium); color: var(--white); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { opacity: 0; }

.faq-item p { color: var(--text-muted); padding-bottom: 20px; }

/* Responsive */

/* Switch to the hamburger menu with extra safety margin: 6 nav links + logo + phone
   badge get tight well before 900px in some browsers/font-rendering conditions. */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-call { display: none; }
  .floating-actions { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
}

.legal-page {
  padding: 140px 0 80px;
  max-width: 760px;
  color: var(--text);
}
.legal-page h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--wood-dark);
  margin-bottom: 32px;
}
.legal-page section { margin-bottom: 28px; }
.legal-page h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--wood-dark);
  margin-bottom: 10px;
}
.legal-page p { color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.legal-page a { color: var(--wood-medium); }

@media (max-width: 600px) {
  .legal-page { padding: 120px 0 60px; }
}

.error-page {
  padding: 160px 0 100px;
  text-align: center;
  max-width: 560px;
}
.error-page-icon {
  width: 64px;
  height: 44px;
  color: var(--wood-terracotta);
  margin-bottom: 18px;
}
.error-page-code {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1;
}
.error-page h1 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--wood-dark);
  margin: 12px 0 14px;
}
.error-page p { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.error-page-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

@media (max-width: 600px) {
  .error-page { padding: 130px 0 70px; }
  .error-page-actions { flex-direction: column; align-items: stretch; }
}
