/* Callier Père & Fils — feuille de style de la maquette */
:root {
  --ink: #221d19;
  --muted: #6b6159;
  --line: #e7dfd4;
  --paper: #fffdf9;
  --soft: #f6f0e7;
  --purple: #b8322a;
  --purple-dark: #93261f;
  --pink: #b8893b;
  --night: #1e1a17;
  --lavender: #f4ddd8;
  --peach: #efdfc4;
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1180px;
  --font-sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(34, 29, 25, .06), 0 8px 24px rgba(34, 29, 25, .07);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--peach); color: var(--ink); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; max-width: 160px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.mobile-only { display: none; }
.nav-link, .nav-group > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; cursor: pointer; list-style: none;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-group > summary:hover, .nav-group[open] > summary { background: var(--soft); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--purple); }
.nav-group { position: relative; }
.nav-group > summary svg { width: 14px; height: 14px; transition: transform .15s; }
.nav-group[open] > summary svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-dropdown a small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.nav-dropdown a:hover { background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-actions .btn { padding: 10px 18px; }
.header-actions .btn svg { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* Accueil */
.home-intro { position: relative; padding: 72px 0 80px; background: linear-gradient(180deg, var(--soft) 0%, var(--paper) 100%); overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow, .kicker {
  display: inline-block; font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 14px;
}
.eyebrow::before, .kicker::before { content: ""; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.lead { font-size: 1.17rem; color: var(--muted); max-width: 40em; }
.intro-foot { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.intro-grid > .media { position: relative; margin: 0; }
.intro-grid > .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.intro-grid > .media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--pink); border-radius: var(--radius-lg); z-index: -1; }

/* En-tête de page interne */
.page-hero { padding: 40px 0 64px; background: var(--soft); border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 36px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs span { margin: 0 4px; }
.breadcrumbs [aria-current] { color: var(--ink); margin: 0; }
.page-hero h1 { max-width: 20em; }
.page-hero .note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: 88px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--night); color: #efe8df; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-title { max-width: 720px; margin-bottom: 44px; }
.section-title p { color: var(--muted); font-size: 1.08rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cartes */
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; color: var(--ink); text-decoration: none;
}
.section.soft .card { border-color: transparent; box-shadow: 0 1px 2px rgba(34, 29, 25, .05); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.card .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); background: var(--lavender); padding: 4px 10px; border-radius: 99px; margin-bottom: 16px; }
.icon-badge { width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center; background: var(--lavender); color: var(--purple); margin-bottom: 18px; }
.icon-badge svg { width: 24px; height: 24px; }
.step-card .number { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 700; color: var(--pink); line-height: 1; margin-bottom: 16px; }
.use-card { transition: border-color .15s, transform .15s, box-shadow .15s; }
.use-card:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.use-card .text-link { margin-top: auto; padding-top: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--purple); text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .15s; }
.text-link:hover svg, .use-card:hover .text-link svg { transform: translateX(3px); }
.feature-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 18px; }
.resource-kind { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.note { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--pink); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
.note strong { color: var(--ink); }

/* Deux colonnes */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .section-title { margin-bottom: 20px; }
.split > .media { margin: 0; }
.split > .media img { width: 100%; max-height: 620px; object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; align-items: start; }
.feature-list svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: var(--radius); background: var(--lavender); color: var(--purple); }
.section.soft .feature-list svg { background: #fff; }
.feature-list strong { font-size: 1.04rem; }
.feature-list span { color: var(--muted); font-size: .97rem; }

/* Appels à l'action */
.wide-cta {
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  padding: 56px; border-radius: var(--radius-lg); background: var(--night); color: #e9e1d7;
  background-image: radial-gradient(circle at 100% 0%, rgba(184, 50, 42, .35), transparent 55%);
}
.wide-cta h2 { color: #fff; margin-bottom: .35em; }
.wide-cta p { margin: 0; color: #cfc5b9; font-size: 1.06rem; }
.wide-cta .kicker { color: #e9b9a4; }
.wide-cta .actions { margin-top: 0; justify-content: flex-end; }
.wide-cta .btn-secondary { border-color: #fff; color: #fff; }
.wide-cta .btn-secondary:hover { background: #fff; color: var(--ink); }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.cta-inline h2 { font-size: 1.5rem; margin-bottom: .2em; }
.cta-inline p { margin: 0; color: var(--muted); }

/* Questions fréquentes */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 24px; }
.section.soft .faq details { border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Chiffres */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 28px; border-top: 3px solid var(--purple); background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.stat strong { display: block; font-family: var(--font-serif); font-size: 2.6rem; line-height: 1.05; color: var(--ink); }
.stat span { display: block; font-weight: 600; margin: 8px 0 6px; }
.stat p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contenu long */
.article-body { max-width: 780px; }
.section > .container > h2 + .article-body { margin-top: 8px; }
.article-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: #3d3630; }

/* Galerie (type natif « gallery ») — mêmes règles de base que kit.css du thème */
.gallery { display: grid; gap: 12px; margin-top: 8px; }
.gallery-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gallery-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gallery__item { margin: 0; display: flex; flex-direction: column; gap: 7px; overflow: hidden; border-radius: var(--radius); }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; cursor: zoom-in; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { font-size: .86rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 17, 15, .94); display: none; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; border-radius: var(--radius); }
.lightbox p { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #d9d0c6; font-size: .92rem; margin: 0; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 16px; right: 16px; font-size: 1.6rem; line-height: 1; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Zone d'intervention (section rich, page Contact) */
.article-body .communes-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-body .communes-list li { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; font-size: .93rem; }
.article-body .communes-list li:first-child { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 600; }

/* Formulaire */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.form-layout > *, .split > *, .intro-grid > * { min-width: 0; }
.contact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; background: #fff; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.field { display: grid; gap: 6px; }
.field.is-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .93rem; }
.field .req { color: var(--purple); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #d6ccbf; border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--lavender); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.choices label { min-width: 0; overflow-wrap: anywhere; display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: .95rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choices input { width: auto; accent-color: var(--purple); }
.form-consent { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); margin: 0; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-success { grid-column: 1 / -1; display: none; padding: 16px 18px; background: #e8f3ea; color: #1f5130; border-radius: var(--radius); }
.contact-form.is-sent .form-success { display: block; }

/* Pied de page */
.site-footer { background: var(--night); color: #bdb3a8; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 72px; width: auto; max-width: 200px; object-fit: contain; background: #fff; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 18px; }
.footer-brand p { color: #bdb3a8; }
.footer-brand address { font-style: normal; line-height: 1.7; }
.footer-brand address a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-col h3 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; color: #bdb3a8; text-decoration: none; padding: 4px 0; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; }
.footer-bottom a { color: #bdb3a8; }
.footer-bottom p { margin: 0; }

/* Adaptations */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .grid-4, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav .mobile-only { display: block; }
  .nav-dropdown { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 0 8px; }
  .header-actions .btn { display: none; }
  .intro-grid, .split, .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .intro-grid > .media::before { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .wide-cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .wide-cta .actions { justify-content: flex-start; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .brand img { height: 46px; }
  .home-intro { padding: 48px 0 56px; }
  .grid-2, .grid-3, .grid-4, .stats-row, .footer-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .lightbox { padding: 56px 8px; }
  .page-hero { padding: 28px 0 48px; }
  .breadcrumbs { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
a[href^="tel:"] { white-space: nowrap; }
