/* ==========================================================================
   Cathala Rénovation
   Palette extraite du logo : olive #5B6532, orange #EE6F0C
   ========================================================================== */

:root {
  --olive: #5b6532;
  --olive-dark: #434b24;
  --olive-deep: #2f3519;
  --olive-pale: #eef0e6;
  --olive-wash: #f5f7ef;

  --orange: #ee6f0c;
  --orange-lift: #ff7d1a;
  --orange-text: #b25203;
  --orange-pale: #fdf0e4;

  --ink: #26291d;
  --body: #4a4f3d;
  --muted: #646a57;
  --line: #e4e5da;
  --line-soft: #eeefe6;
  --cream: #fbfaf5;

  /* Échelle typographique fluide : une seule source pour tous les écrans. */
  --t-xs: clamp(.78rem, .76rem + .08vw, .83rem);
  --t-sm: clamp(.9rem, .88rem + .1vw, .96rem);
  --t-base: clamp(1.02rem, .99rem + .16vw, 1.1rem);
  --t-lead: clamp(1.1rem, 1.02rem + .42vw, 1.32rem);
  --t-h3: clamp(1.14rem, 1.06rem + .34vw, 1.34rem);
  --t-h2: clamp(1.65rem, 1.32rem + 1.5vw, 2.6rem);
  --t-h1: clamp(2.1rem, 1.5rem + 2.9vw, 4.1rem);
  --t-hero: clamp(2.45rem, 1.5rem + 4.3vw, 5rem);

  --section: clamp(3.6rem, 8vw, 7rem);

  --wrap: 1200px;
  --radius: 5px;
  --shadow-sm: 0 1px 2px rgba(38, 41, 29, .06), 0 6px 18px -8px rgba(38, 41, 29, .16);
  --shadow-md: 0 2px 4px rgba(38, 41, 29, .05), 0 18px 40px -18px rgba(38, 41, 29, .26);

  --ease: cubic-bezier(.16, 1, .3, 1);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Century Gothic", "Futura", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.68;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .55em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.015em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.005em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--olive); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* Motif de toit repris du logo — signature graphique de la marque. */
.roof { display: block; width: 66px; height: auto; color: var(--orange); margin: 0 0 1.15rem; }
.roof-center { margin-inline: auto; }

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--display); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: .015em;
  padding: .95rem 1.6rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.08rem 2rem; font-size: var(--t-base); }

.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: var(--orange-lift); color: var(--ink); }

.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-dark); color: #fff; }

.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; }

.btn-outline { background: transparent; color: var(--olive); border-color: #cdd1bc; }
.btn-outline:hover { background: var(--olive); color: #fff; border-color: var(--olive); }

.btn-phone { background: var(--orange); color: var(--ink); padding: .68rem 1.15rem; }
.btn-phone:hover { background: var(--orange-lift); color: var(--ink); }

.ico-phone {
  width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: var(--phone-mask) center/contain no-repeat;
  mask: var(--phone-mask) center/contain no-repeat;
  --phone-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
}

/* --- En-tête -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}

.brand { flex: none; line-height: 0; padding: .35rem 0; }
.brand img { width: 152px; height: auto; }

.nav-list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: .6rem .8rem; border-radius: var(--radius);
  font-family: var(--display); font-weight: 600; font-size: var(--t-sm);
  color: var(--ink); text-decoration: none; letter-spacing: .015em;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-list > li > a:hover { color: var(--olive); background: var(--olive-pale); }

.sub {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
  min-width: 272px; list-style: none; margin: 0; padding: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .58rem .8rem; border-radius: 3px; color: var(--body); text-decoration: none; font-size: var(--t-sm); }
.sub a:hover { background: var(--olive-pale); color: var(--olive-dark); }

.burger { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.burger span { display: block; width: 25px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --- Héros ---------------------------------------------------------------- */

.hero { position: relative; isolation: isolate; background: var(--olive-deep); overflow: hidden; }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 62%; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(31,35,20,.9) 0%, rgba(31,35,20,.72) 34%, rgba(31,35,20,.3) 62%, rgba(31,35,20,.06) 100%),
    linear-gradient(to top, rgba(31,35,20,.52) 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  padding: clamp(4.5rem, 11vw, 9.5rem) 0 clamp(3.5rem, 8vw, 7rem);
  max-width: 44rem;
  color: #fff;
}
.hero h1 {
  font-size: var(--t-hero); color: #fff; line-height: 1;
  letter-spacing: -.03em; margin-bottom: .34em;
}
.hero .lead {
  font-size: var(--t-lead); color: rgba(255,255,255,.93);
  max-width: 34ch; line-height: 1.55; margin-bottom: 0;
}
.hero .roof { color: var(--orange); width: 78px; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }

/* Un seul moment chorégraphié sur tout le site : l'arrivée. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: heroSettle 1400ms var(--ease) both; }
  .hero-inner > * { animation: heroRise 900ms var(--ease) both; }
  .hero-inner > :nth-child(1) { animation-delay: 60ms; }
  .hero-inner > :nth-child(2) { animation-delay: 150ms; }
  .hero-inner > :nth-child(3) { animation-delay: 260ms; }
  .hero-inner > :nth-child(4) { animation-delay: 370ms; }
  @keyframes heroSettle { from { transform: scale(1.07); } to { transform: none; } }
  @keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* --- Bandeau de repères --------------------------------------------------- */

.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-item { padding: clamp(1.3rem, 2.4vw, 1.9rem) clamp(1rem, 2vw, 1.8rem); }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-title {
  font-family: var(--display); font-weight: 700; font-size: var(--t-sm);
  margin: 0 0 .35em; color: var(--olive-dark); letter-spacing: .01em;
}
.trust-item p { font-size: var(--t-xs); color: var(--muted); margin: 0; line-height: 1.55; }

/* --- Sections ------------------------------------------------------------- */

.section { padding: var(--section) 0; }
.section-alt { background: var(--olive-wash); }
.section-dark { background: var(--olive-deep); color: rgba(255,255,255,.84); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .roof { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: var(--t-lead); margin-bottom: 0; line-height: 1.55; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }

/* --- Index des prestations ------------------------------------------------ */

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  align-items: baseline; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(.5rem, 1.5vw, 1.2rem);
  text-decoration: none; color: inherit;
  transition: background-color .2s var(--ease);
}
.index a:hover, .index a:focus-visible { background: var(--olive-pale); }
.index-name {
  font-family: var(--display); font-weight: 600; font-size: var(--t-h3);
  color: var(--ink); letter-spacing: -.01em; line-height: 1.2;
}
.index-desc { color: var(--muted); font-size: var(--t-sm); }
/* Le glissement se fait en `transform` : animer `padding` provoquerait un
   recalcul de layout à chaque frame. */
.index-name, .index-desc { transition: transform .25s var(--ease), color .2s var(--ease); }
.index a:hover .index-name, .index a:hover .index-desc,
.index a:focus-visible .index-name, .index a:focus-visible .index-desc { transform: translateX(8px); }
.index a:hover .index-name { color: var(--olive-dark); }
.index-go {
  width: 26px; height: 12px; flex: none; align-self: center;
  background: var(--orange-text);
  -webkit-mask: var(--arrow) right center/contain no-repeat;
  mask: var(--arrow) right center/contain no-repeat;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M0 6h23M18 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}
.index a:hover .index-go { transform: translateX(5px); }

/* --- Colonnes texte + aside ----------------------------------------------- */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: clamp(2rem, 4vw, 3rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; color: var(--olive-dark); }
.prose .lead { font-size: var(--t-lead); line-height: 1.55; color: var(--olive-dark); }

.callout {
  background: var(--orange-pale); border: 1px solid #f4dcc3;
  padding: clamp(1.3rem, 2.5vw, 1.7rem); border-radius: var(--radius);
  margin: clamp(1.8rem, 3.5vw, 2.4rem) 0;
}
.callout-label {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: .55rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout.narrow { max-width: 70ch; }
.spaced { margin-top: clamp(2.4rem, 5vw, 3.4rem); }

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg);
}

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin-bottom: .5rem; }
ul.plain a { color: inherit; text-decoration: none; }
ul.plain a:hover { color: var(--orange-text); text-decoration: underline; }

/* --- Photos de prestation -------------------------------------------------- */

/* La photo d'ouverture remonte dans le bandeau olive : elle en sort, au lieu
   de s'empiler dessous comme une bannière de plus. */
.page-head:has(+ .feature) { padding-bottom: clamp(4.5rem, 10vw, 8rem); }

.feature { margin: 0 0 calc(var(--section) * -0.35); }
.feature .wrap { margin-top: clamp(-6rem, -7vw, -3rem); }
.feature-frame {
  border-radius: var(--radius); overflow: hidden;
  background: var(--olive-pale); box-shadow: var(--shadow-md);
}
.feature-frame img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.feature figcaption {
  margin-top: .95rem; max-width: 60ch;
  font-size: var(--t-xs); color: var(--muted); line-height: 1.55;
}

.fig { margin: clamp(2rem, 4vw, 2.9rem) 0 0; }
.fig img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 30rem;
  border-radius: var(--radius); background: var(--olive-pale);
}
.fig figcaption { margin-top: .7rem; font-size: var(--t-xs); color: var(--muted); line-height: 1.55; }

.fig-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(.9rem, 2vw, 1.3rem); margin-top: clamp(2rem, 4vw, 2.9rem);
}
.fig-row.one { grid-template-columns: 1fr; }
.fig-row .fig { margin-top: 0; }
/* Cadrage commun : deux photos de proportions différentes s'aligneraient mal. */
.fig-row:not(.one) .fig img { width: 100%; max-height: none; aspect-ratio: 4/3; object-fit: cover; }

/* --- Renvoi vers les chantiers -------------------------------------------- */

.related { background: var(--olive-wash); }
.related h2 { margin-bottom: .35em; }
.related-lead { color: var(--muted); max-width: 55ch; margin-bottom: clamp(1.7rem, 3.5vw, 2.5rem); }
.related-strip {
  list-style: none; margin: 0 0 clamp(1.7rem, 3.5vw, 2.4rem); padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
/* À deux chantiers seulement, des vignettes pleine largeur écraseraient la page. */
.related-strip:has(li:nth-child(2):last-child) { max-width: 44rem; }
.related-strip a { display: grid; gap: .75rem; text-decoration: none; color: inherit; }
.related-strip img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  border-radius: var(--radius); background: var(--olive-pale);
  transition: box-shadow .2s ease;
}
.related-strip span {
  font-family: var(--display); font-weight: 600; font-size: var(--t-sm); line-height: 1.35;
  padding-top: .6rem; border-top: 1px solid var(--line);
}
.related-strip a:hover img, .related-strip a:focus-visible img { box-shadow: var(--shadow-md); }
.related-strip a:hover span { color: var(--orange-text); }

/* --- Aside ---------------------------------------------------------------- */

.aside { position: sticky; top: 96px; display: grid; gap: 1.1rem; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.aside-card.accent { background: var(--olive-deep); border-color: var(--olive-deep); color: rgba(255,255,255,.86); }
.aside-card.accent h3 { color: #fff; }
.aside-card.accent a:not(.btn) { color: #fff; }
.aside-card.accent a:not(.btn):hover { color: var(--orange); }
.aside-card h3 { font-size: var(--t-h3); margin-bottom: .6em; }
.aside-card p { font-size: var(--t-sm); }
.aside-card .btn { width: 100%; margin-top: .8rem; }

.aside-photo { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.aside-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 18%; }
.aside-photo figcaption { padding: .8rem 1.05rem; font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }

/* --- FAQ ------------------------------------------------------------------ */

.faq { display: grid; gap: .7rem; margin-top: 1.4rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 1.05rem 1.3rem; list-style: none;
  font-family: var(--display); font-weight: 600; color: var(--ink); font-size: var(--t-sm);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background-color .15s var(--ease);
}
.faq summary:hover { background: var(--olive-pale); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange-text); font-size: 1.35rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 1.05rem 1.3rem; font-size: var(--t-sm); line-height: 1.65; }

/* --- Avant / après -------------------------------------------------------- */

.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); align-items: start; }
.ba-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.ba-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
/* Les pages prestations renvoient ici avec une ancre : dégager la barre fixe
   et signaler brièvement le chantier visé. */
.ba-card { scroll-margin-top: 7rem; }
.ba-card:target { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-pale), var(--shadow-md); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.ba-fig { position: relative; margin: 0; background: var(--olive-pale); overflow: hidden; }
.ba-fig img { width: 100%; aspect-ratio: var(--ba-ratio, 4/3); object-fit: cover; }
.ba-fig figcaption {
  position: absolute; top: .65rem; left: .65rem;
  background: rgba(30,33,22,.85); color: #fff;
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 2px;
}
.ba-body { padding: clamp(1.1rem, 2.2vw, 1.5rem); }
.ba-body h3 { margin-bottom: .3em; }
.ba-meta { font-size: var(--t-sm); color: var(--muted); margin: 0; line-height: 1.55; }

.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; aspect-ratio: var(--ba-ratio, 4/3);
  background: repeating-linear-gradient(45deg, var(--olive-pale), var(--olive-pale) 12px, #e6e9da 12px, #e6e9da 24px);
  color: var(--olive-dark); font-family: var(--display); font-size: var(--t-xs); line-height: 1.45;
  text-align: center; padding: 3.1rem 1rem 1.2rem;
}
.placeholder code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .72rem; background: rgba(255,255,255,.75);
  padding: .18rem .4rem; border-radius: 3px; overflow-wrap: anywhere; max-width: 100%;
}

.center-cta { text-align: center; margin: clamp(2rem, 4vw, 2.8rem) 0 0; }

/* --- Citations clients ---------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(1.6rem, 3.5vw, 2.6rem); }
.quote { margin: 0; border-top: 2px solid var(--orange); padding-top: 1.3rem; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--display); font-size: var(--t-h3); line-height: 1.45;
  color: var(--ink); letter-spacing: -.005em;
}
.quote p::before { content: "« "; color: var(--orange-text); }
.quote p::after { content: " »"; color: var(--orange-text); }
.quote figcaption { margin-top: .9rem; font-size: var(--t-xs); color: var(--muted); letter-spacing: .02em; }

/* --- Zones ---------------------------------------------------------------- */

/* Les trois secteurs sur l'accueil. Volontairement pas des cartes cliquables :
   la page Zones porte le contenu, l'accueil n'en donne que la géographie. */
.sector-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.6rem, 3.5vw, 2.8rem);
  text-align: left; max-width: 62rem; margin-inline: auto;
}
.sector-col { border-top: 2px solid var(--orange); padding-top: clamp(.9rem, 2vw, 1.15rem); }
.sector-col h3 { font-size: var(--t-h3); margin-bottom: .5em; }
.sector-col p { color: var(--muted); font-size: var(--t-sm); line-height: 1.7; margin-bottom: 0; }

.sector-lead {
  font-family: var(--display); font-size: var(--t-lead); font-weight: 500;
  color: var(--olive-dark); line-height: 1.45; margin-bottom: 1.1em;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.chips li {
  font-size: var(--t-xs); padding: .38rem .8rem; border-radius: 100px;
  background: var(--olive-pale); color: var(--olive-dark); border: 1px solid #dee2d0;
}
.chips li span { opacity: .6; margin-left: .3rem; font-variant-numeric: tabular-nums; }

/* --- Renvoi vers Facebook ------------------------------------------------- */

.grid-more {
  margin-top: clamp(2.2rem, 5vw, 3.4rem); text-align: center;
  display: grid; justify-items: center; gap: 1.1rem;
}
.grid-more p { color: var(--muted); max-width: 46ch; margin: 0; }

/* --- Page intérieure ------------------------------------------------------ */

.page-head {
  background: var(--olive-deep);
  background-image: linear-gradient(126deg, var(--olive-deep) 0%, var(--olive-dark) 58%, var(--olive) 100%);
  color: #fff; padding: clamp(2.4rem, 6vw, 4.4rem) 0;
}
.page-head h1 { color: #fff; margin-bottom: .34em; }
.page-head .lead { color: rgba(255,255,255,.88); font-size: var(--t-lead); max-width: 58ch; margin: 0; line-height: 1.55; }
.page-head .roof { width: 70px; }

/* Bandeau de la page Zones : la carte du Biterrois en filigrane sous le
   dégradé olive. Le dégradé s'éclaircit de gauche à droite — il reste dense
   là où se posent le fil d'Ariane et le titre, et s'ouvre sur la droite où la
   carte n'a que du texte à ne pas gêner. Contraste mesuré dans le pire cas
   (texte par-dessus la zone la plus claire de la carte) : 8,5:1 pour le titre,
   5,3:1 pour le fil d'Ariane.
   Le fichier desktop est la version 800 px : derrière un aplat opaque, la
   carte n'est plus qu'une texture, et 43 Ko suffisent. */
.page-head--carte {
  background-image:
    linear-gradient(126deg, rgba(47,53,25,.86) 0%, rgba(67,75,36,.8) 58%, rgba(91,101,50,.74) 100%),
    url("img/carte-zone-mobile.webp");
  background-size: auto, cover;
  background-position: center, 50% 44%;
  background-repeat: no-repeat;
}
@media (min-width: 46rem) {
  .page-head--carte { background-image:
    linear-gradient(126deg, rgba(47,53,25,.86) 0%, rgba(67,75,36,.8) 58%, rgba(91,101,50,.74) 100%),
    url("img/carte-zone-intervention-800.webp"); }
}

.crumbs { font-size: var(--t-xs); color: rgba(255,255,255,.72); margin-bottom: 1.1rem; }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 .4rem; opacity: .5; }

/* --- Bandeau CTA ---------------------------------------------------------- */

.band-cta {
  background: var(--olive-deep);
  background-image: linear-gradient(126deg, var(--olive-deep), var(--olive-dark) 62%, var(--olive));
  color: #fff; text-align: center; padding: clamp(3.2rem, 7vw, 5rem) 0;
}
.band-cta-inner { max-width: 40rem; margin-inline: auto; }
.band-cta .roof { margin-inline: auto; }
.band-cta h2 { color: #fff; }
.band-cta p { color: rgba(255,255,255,.87); font-size: var(--t-lead); line-height: 1.55; }
.band-cta .cta-row { justify-content: center; }

/* --- Pied de page --------------------------------------------------------- */

.site-footer { background: var(--ink); color: #b6baa8; padding: clamp(2.8rem, 5vw, 4rem) 0 0; font-size: var(--t-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: clamp(1.8rem, 4vw, 2.8rem); }
.site-footer h3 { color: #fff; font-size: var(--t-sm); margin-bottom: .9rem; letter-spacing: .05em; }
.site-footer a { color: #d2d6c4; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { width: 178px; background: #fff; padding: .7rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; }
.footer-brand p { font-size: var(--t-xs); max-width: 32ch; line-height: 1.6; }

.social-link {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1rem; font-size: var(--t-xs); font-weight: 600;
  color: #d2d6c4; text-decoration: none;
}
.social-link svg { flex: none; color: #9da191; transition: color .18s ease; }
.social-link:hover { color: #fff; }
.social-link:hover svg { color: var(--orange); }
.contact-list li { margin-bottom: .42rem; }
.hours { margin-top: 1rem; font-size: var(--t-xs); border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; color: #9da191; padding-right: 1.2rem; padding-bottom: .22rem; }
.hours td { color: #d2d6c4; padding-bottom: .22rem; }
.hours-light th { color: var(--muted); }
.hours-light td { color: var(--body); }

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 2.8rem); padding: 1.25rem 0; border-top: 1px solid #383c2d;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: var(--t-xs);
}
.footer-bottom p { margin: 0; }

/* --- Barre d'appel mobile -------------------------------------------------- */

.mobile-bar { display: none; }

/* --- Adaptations ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .aside-photo { max-width: 22rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ba-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 76dvh; overflow-y: auto;
    display: none; box-shadow: var(--shadow-md);
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.25rem 1.4rem; }
  .nav-list > li > a { padding: .9rem .2rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: var(--t-base); }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-bottom: 1px solid var(--line-soft);
    padding: .25rem 0 .7rem .9rem; min-width: 0;
  }
  .sub a { padding: .55rem .2rem; }
  .nav-cta { margin-top: .9rem; }
  .nav-cta .btn { width: 100%; padding: .95rem 1.2rem; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 -2px 18px rgba(38,41,29,.16);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1.05rem .5rem; font-family: var(--display); font-weight: 700;
    text-decoration: none; font-size: var(--t-sm);
  }
  .mb-call { background: var(--orange); color: var(--ink); }
  .mb-quote { background: var(--olive); color: #fff; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .hero-media img { object-position: 30% 55%; }
  .hero::after {
    background: linear-gradient(to bottom, rgba(31,35,20,.3) 0%, rgba(31,35,20,.5) 38%, rgba(31,35,20,.78) 100%);
  }
  .hero-inner { max-width: none; padding-bottom: clamp(2.4rem, 6vw, 4rem); }
  .hero .lead { max-width: 32ch; }

  .index a { grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; align-items: center; }
  .index-desc { grid-column: 1; font-size: var(--t-xs); }
  .index-go { grid-row: 1 / span 2; grid-column: 2; }

  /* Un 16/9 sur un téléphone ne montre plus rien de la pièce. */
  .feature-frame img { aspect-ratio: 4/3; }
  .fig-row { grid-template-columns: 1fr; }
  .fig-row:not(.one) .fig img { aspect-ratio: auto; }
}

@media (max-width: 620px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .brand img { width: 128px; }
  .header-inner { min-height: 62px; }
  .aside-photo { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header, .mobile-bar, .band-cta, .burger, .hero-media { display: none !important; }
  body { color: #000; padding-bottom: 0; }
}
