/* =========================================================
   Ateliers Neiva — Feuille de style commune
   Palette extraite du logo :
     - Brun fonce  : #4A2818
     - Bronze/tan  : #7A5C3E
   ========================================================= */

:root {
  --ink: #2B1B10;
  --brand-dark: #4A2818;
  --brand-dark-2: #3A1F12;
  --brand: #7A5C3E;
  --brand-light: #C9A876;
  --gold: #A98249;
  --cream: #FAF6EF;
  --cream-2: #F1E9DA;
  --white: #FFFFFF;
  --line: rgba(74, 40, 24, 0.14);
  --shadow: 0 12px 32px rgba(43, 27, 16, 0.12);
  --shadow-sm: 0 4px 14px rgba(43, 27, 16, 0.08);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", Arial, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  overflow-wrap: break-word;
}

p { overflow-wrap: break-word; }

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.9em;
}

.section { padding: 88px 0; }
.section--alt { background: var(--cream-2); }
.section--dark {
  background: var(--brand-dark);
  color: #EFE3D3;
}
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--brand-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.btn-line {
  background: transparent;
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}
.btn-line:hover { background: var(--brand-dark); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 246, 239, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo img { height: 68px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--brand-dark); border-color: var(--brand); }

.nav-cta {
  padding: 12px 22px;
  background: var(--brand-dark);
  color: var(--white) !important;
  border-radius: 2px;
  font-size: 0.8rem !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--brand) !important; }

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

/* ---------- Hero carousel (home) ---------- */
.hero {
  position: relative;
  height: 82vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--brand-dark-2);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,27,16,0.35) 0%, rgba(43,27,16,0.35) 40%, rgba(43,27,16,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 90px;
  color: var(--white);
}
.hero-content .eyebrow { color: var(--brand-light); }
.hero-content h1 { color: var(--white); max-width: 720px; }
.hero-content p { max-width: 560px; font-size: 1.08rem; color: #F2E9DA; }
.hero-actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  right: 24px;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active { background: var(--white); }

/* ---------- Page banner (sous-pages) ---------- */
.page-banner {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-dark-2);
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner .eyebrow { color: var(--brand-light); }
.page-banner h1 { color: var(--white); margin: 0; }
.breadcrumb {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #E7D9C2;
}
.breadcrumb a { color: #E7D9C2; border-bottom: 1px solid rgba(231,217,194,0.4); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- 4 blocs cliquables (accueil) ---------- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quick-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quick-card figure { margin: 0; height: 170px; overflow: hidden; }
.quick-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.quick-card:hover img { transform: scale(1.06); }
.quick-card-body { padding: 26px 24px 28px; }
.quick-card-body h3 { margin-bottom: 10px; }
.quick-card-body p { font-size: 0.94rem; color: #5A483A; margin-bottom: 14px; }
.quick-card-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--brand);
}

/* ---------- Cards / grids generiques ---------- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 30px;
  border-radius: 4px;
}
.info-card--compact { padding: 24px 26px; }
.info-card--compact .icon { margin-bottom: 12px; }
.info-card--compact p { font-size: 0.92rem; }
.info-card .icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--brand-dark);
  margin-bottom: 18px;
}
.info-card .icon svg { width: 26px; height: 26px; }

/* ---------- Bandeau CTA ---------- */
.cta-banner {
  background: var(--brand-dark);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #E7D9C2; max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark-2);
  color: #D9C9B4;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  width: 100%;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-brand-mark img { height: 38px; width: auto; filter: brightness(0) invert(1); }
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.footer-brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #C7B49B;
  margin-bottom: 18px;
}
.footer-brand p { font-size: 0.9rem; max-width: 320px; color: #C7B49B; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.footer-social svg { width: 20px; height: 20px; }
.footer-social a:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: #A88F71;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ---------- Formulaires ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
}
textarea { resize: vertical; min-height: 130px; }
.field-note { font-size: 0.8rem; color: #7A6A56; margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin-top: 16px; font-size: 0.92rem; }
.form-status[data-state="ok"] { color: #2E6B3E; }
.form-status[data-state="err"] { color: #A33; }

/* ---------- Contact page layout ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px;
}
.contact-info-card .row { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-card .row:last-child { margin-bottom: 0; }
.contact-info-card .row .icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card .row h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--brand-dark); }
.contact-info-card .row p { margin: 0; font-size: 0.92rem; color: #5A483A; }
.map-embed {
  margin-top: 24px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 280px; display: block; border: 0; }
.map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--brand);
}
.map-link:hover { color: var(--brand-dark); }

/* ---------- Portfolio (Nos realisations) ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}
.portfolio-card { display: block; }
.portfolio-card figure {
  margin: 0 0 18px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3.4;
  box-shadow: var(--shadow-sm);
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  transition: color 0.2s ease;
}
.portfolio-card:hover h3 { color: var(--brand); }
.portfolio-card .descriptor {
  font-size: 0.86rem;
  color: #7A6A56;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Page de detail d'une realisation ---------- */
.project-intro {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.project-intro .descriptor {
  font-size: 0.95rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.project-intro p { color: #5A483A; font-size: 1.02rem; }

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.gallery-row { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.gallery-row.full { grid-template-columns: 1fr; }
.gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.gallery-row.full img { aspect-ratio: 16/9; }
.gallery-row:not(.full) img { aspect-ratio: 4/3.3; }

/* ---------- Timeline / valeurs (histoire) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col img { border-radius: 4px; box-shadow: var(--shadow); }
.two-col.reverse { grid-template-columns: 1fr 1fr; }
.two-col.reverse .img-col { order: 2; }
.img-caption {
  margin: 10px 4px 0;
  font-size: 0.82rem;
  color: #7A6A56;
  font-style: italic;
  text-align: center;
}

/* ---------- Services (prestations) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card .icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card p { font-size: 0.92rem; color: #5A483A; margin-bottom: 0; }

/* ---------- Jobs (recrutement) ---------- */
.job-list { display: flex; flex-direction: column; gap: 18px; }
.job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.job-item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.job-item .meta { font-size: 0.85rem; color: #7A6A56; }
.job-empty {
  background: var(--white);
  border: 1px dashed var(--brand-light);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  color: #5A483A;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 26px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--brand-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: #5A483A; padding-bottom: 22px; margin: 0; font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3, .service-grid, .values-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .img-col { order: 0; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 92px; left: 100%; width: 100%; bottom: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 30px 24px; transition: left 0.3s ease; overflow-y: auto; }
  .main-nav.is-open { left: 0; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 18px; text-align: center; }
  .nav-toggle { display: flex; }
  .quick-links, .card-grid-3, .service-grid, .values-grid, .portfolio-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 60px; }
  .section { padding: 60px 0; }
  .job-item { flex-direction: column; align-items: flex-start; }
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-row img { aspect-ratio: 4/3.3; }
}
