:root {
  --ink: #23301F;
  --body-c: #3A3F32;
  --sage: #6E7C5A;
  --clay: #A66B3F;
  --paper: #D9D4C0;
  --paper-2: #F4F0E2;
  --line: #B9B39C;
  --card: #EDE8D8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EDEAE0; --body-c: #C9C6B6; --sage: #9BAD82; --clay: #D69B5C;
    --paper: #26301F; --paper-2: #303B26; --line: #4A5740; --card: #303B26;
  }
}
:root[data-theme="dark"] {
  --ink: #EDEAE0; --body-c: #C9C6B6; --sage: #9BAD82; --clay: #D69B5C;
  --paper: #26301F; --paper-2: #303B26; --line: #4A5740; --card: #303B26;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--body-c);
  font-family: 'Poppins', -apple-system, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: 'Lora', Georgia, serif; color: var(--ink); }
h1 { font-weight: 600; } h2 { font-weight: 600; }
em, .accent-em { font-style: italic; font-weight: 400; color: var(--sage); }
a { color: inherit; }
p { max-width: 62ch; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
button, .btn { font-family: 'Poppins', sans-serif; cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---------- nav ---------- */
header.site-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.brand .name { font-family: 'Lora', serif; font-weight: 600; font-size: 22px; color: var(--ink); }
.brand .name em { font-style: italic; font-weight: 400; color: var(--sage); }
.brand .tag { font-size: 10px; letter-spacing: 0.4px; color: var(--clay); margin-top: 2px; }
nav.links { display: flex; gap: 4px; }
nav.links a { background: none; border: none; font-size: 15px; color: var(--body-c); padding: 8px 14px; border-radius: 3px; position: relative; text-decoration: none; display: inline-block; }
nav.links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
nav.links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--clay); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content:""; position:absolute; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  nav.links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 28px 18px; }
  nav.links.open { display: flex; }
  nav.links a { text-align: left; padding: 12px 4px; }
}

/* ---------- bands / rhythm ---------- */
.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band.tight { padding: 48px 0; }
.band.alt { background: var(--paper-2); }
.band.contrast {
  --ink: #EDEAE0; --body-c: #C9C6B6; --sage: #9BAD82; --clay: #D9A44C;
  --line: #3D4736; --card: #2C3826; --paper: #23301F; --paper-2: #2C3826;
  background: #23301F; color: #C9C6B6;
}
.band.cream { background: #F7F4EA; color: #23301F; }
.band.cream h1, .band.cream h2, .band.cream h3, .band.cream .serif { color: #23301F; }
.band.cream .item .h, .band.cream .card-title { color: #23301F; }
.page-header { position: relative; overflow: hidden; }
.page-header .contour-bg { position: absolute; top: 0; right: 0; width: 46%; height: 100%; opacity: 0.5; pointer-events: none; }
.page-header .wrap { position: relative; z-index: 1; }
.rule { height: 1px; background: var(--line); border: none; margin: 40px 0; }

/* ---------- buttons ---------- */
.btn-primary, .btn-ghost { display: inline-block; padding: 13px 24px; border-radius: 3px; font-size: 15px; font-weight: 500; border: 1px solid var(--clay); text-decoration: none; }
.btn-primary { background: var(--clay); color: #FBF7EE; border-color: var(--clay); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost:hover { background: var(--paper-2); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero + carousel ---------- */
.hero { padding: 0 0 0; position: relative; overflow: hidden; }
.hero-carousel { position: relative; width: 100%; aspect-ratio: 16/7; min-height: 260px; overflow: hidden; background: var(--card); }
.hero-carousel .slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 1.1s ease; flex-direction: column; gap: 10px; color: var(--line); }
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide svg { width: 46px; height: 46px; opacity: 0.55; }
.hero-carousel .slide span { font-size: 13px; }
.hero-carousel .dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.hero-carousel .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); display: block; }
.hero-carousel .dots i.on { background: var(--clay); }
.hero-text { padding: 56px 0 48px; }
.hero-text h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.18; margin: 0 0 20px; max-width: 16ch; }
.hero-text .lede { font-size: 18px; max-width: 58ch; margin-bottom: 28px; }

/* ---------- photo placeholder ---------- */
.photo-ph {
  aspect-ratio: 4/3; border-radius: 3px; border: 1px dashed var(--line);
  background: var(--paper-2); color: var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; text-align: center; padding: 10px;
}
.band.contrast .photo-ph, .band.cream .photo-ph { background: rgba(0,0,0,0.05); }
.photo-ph svg { width: 30px; height: 30px; opacity: 0.65; }

/* ---------- service teaser cards (home) ---------- */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.teaser-card h3 { margin: 0; font-size: 20px; }
.teaser-card .btn-ghost { align-self: flex-start; margin-top: auto; }

/* ---------- avantages cards (home) ---------- */
.avantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .avantage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .avantage-grid { grid-template-columns: 1fr; } }
.avantage-card { display: flex; flex-direction: column; gap: 12px; }
.avantage-card .card-title { font-family: 'Lora', serif; font-size: 17px; text-align: center; }

/* ---------- stat row (avantages inline) ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 36px 48px; }
.stat-row .item { max-width: 220px; }
.stat-row .icon-40 { margin-bottom: 12px; }
.stat-row .item .h { font-family: 'Lora', serif; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.stat-row .item .d { font-size: 14px; }

/* ---------- icons ---------- */
.icon-40 { width: 38px; height: 38px; display: block; }

/* ---------- services page ---------- */
.service-block { padding: 36px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.service-block:first-of-type { border-top: none; }
@media (max-width: 760px) { .service-block { grid-template-columns: 1fr; } }
.service-block h3 { font-size: 22px; margin: 0 0 14px; }
.service-block ul { columns: 2; column-gap: 28px; margin: 0 0 18px; padding-left: 18px; }
.service-block li { break-inside: avoid; margin-bottom: 6px; font-size: 15px; }
@media (max-width: 560px) { .service-block ul { columns: 1; } }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-card { padding: 26px 22px; border-radius: 3px; text-align: center; }
.mission-card h4 { font-family: 'Lora', serif; font-size: 17px; margin: 0 0 10px; }
.mission-card p { font-size: 13.5px; margin: 0 auto; }
.mission-card.c1 { background: #E7E1C8; }
.mission-card.c2 { background: #DCE3D2; }
.mission-card.c3 { background: #EAD9C6; }
:root[data-theme="dark"] .mission-card, @media (prefers-color-scheme: dark) { }

.pro-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 760px) { .pro-banner { grid-template-columns: 1fr; } }
.pro-banner h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; }
.pro-banner p { font-size: 16px; }

/* ---------- réalisations page ---------- */
.gallery-section { padding: 44px 0; border-top: 1px solid var(--line); }
.gallery-section:first-of-type { border-top: none; }
.gallery-section h2 { margin: 0 0 20px; }
.gallery-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .gallery-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-row { grid-template-columns: 1fr; } }
.gallery-row.more { display: none; margin-top: 20px; grid-template-columns: repeat(3, 1fr); }
.gallery-row.more.open { display: grid; }
@media (max-width: 760px) { .gallery-row.more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-row.more { grid-template-columns: 1fr; } }
.gallery-photo { position: relative; aspect-ratio: 4/3; border-radius: 3px; overflow: hidden; border: 1px dashed var(--line); background: var(--paper-2); }
.gallery-photo .ph-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--line); }
.gallery-photo .ph-inner svg { width: 28px; height: 28px; opacity: 0.6; }
.gallery-photo .cap-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(transparent, rgba(35,48,31,0.72));
  color: #F4F0E2; font-family: 'Lora', serif; font-size: 14px;
}
.gallery-toggle { margin-top: 22px; display: flex; align-items: center; gap: 8px; background: none; border: none; color: var(--ink); font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 14.5px; padding: 6px 0; }
.gallery-toggle .arrow { transition: transform 0.25s ease; display: inline-block; }
.gallery-toggle.open .arrow { transform: rotate(180deg); }
.gallery-toggle .less-label { display: none; }
.gallery-toggle.open .more-label { display: none; }
.gallery-toggle.open .less-label { display: inline; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ink); font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-2); color: var(--body-c); font-family: 'Poppins', sans-serif; font-size: 14.5px; }
.field textarea { min-height: 120px; resize: vertical; }
.contact-info dt { font-family: 'Lora', serif; color: var(--ink); font-size: 14px; margin-top: 18px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; font-size: 15px; }
#form-status { font-size: 14px; margin-top: 10px; min-height: 20px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 32px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 13.5px; }
.footer-row .fb { font-family: 'Lora', serif; color: var(--ink); font-size: 15px; }
.placeholder-tag { color: var(--clay); }
.contact-info a, .footer-row a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.contact-info a:hover, .footer-row a:hover { text-decoration-color: var(--clay); }

/* ---------- photo blocks (real images) ---------- */
.photo-ph.real { border: none; padding: 0; background: none; overflow: hidden; }
.photo-ph.real img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.gallery-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* ---------- fullscreen hover preview ---------- */
.gallery-lightbox-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23,30,18,0.9);
  display: flex; align-items: center; justify-content: center; padding: 5vh 5vw;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.gallery-lightbox-overlay.show { opacity: 1; pointer-events: auto; }
.gallery-lightbox-overlay img {
  max-width: 90vw; max-height: 90vh; width: auto; height: auto;
  object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: rgba(244,240,226,0.12); border: 1px solid rgba(244,240,226,0.4);
  color: #F4F0E2; border-radius: 50%; width: 46px; height: 46px; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(244,240,226,0.26); }
.lb-close { top: 22px; right: 22px; font-size: 26px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}
.hero-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- teaser card extras ---------- */
.teaser-card .tagline { font-style: italic; color: var(--clay); font-size: 13.5px; margin: -8px 0 2px; }
.teaser-card .body-text { font-size: 14px; }
.teaser-card .photo-ph { aspect-ratio: 16/10; }

/* ---------- professional offer bands ---------- */
.pro-offer .pro-banner .photo-ph { aspect-ratio: 4/3; }
.pro-offer .tag-line { font-size: 13px; font-weight: 500; color: var(--clay); margin: 0 0 10px; }

/* ---------- icon card grid (pourquoi travailler) ---------- */
.icon-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 820px) { .icon-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .icon-card-grid { grid-template-columns: 1fr; } }
.icon-card h4 { font-family: 'Lora', serif; font-size: 16.5px; margin: 12px 0 8px; }
.icon-card p { font-size: 13.8px; margin: 0; }
