/* ==========================================================================
   HORIZON TRAVAUX — Design system
   Concept : "la ligne d'horizon". L'apporteur d'affaires relie le sol (le
   métier, les artisans, la matière) au ciel (le projet, la vision du
   particulier). La signature de marque est un dégradé terre→ciel
   (or de l'aube → bleu) qui revient comme fil conducteur.
   ========================================================================== */

:root {
  /* Couleurs */
  --encre: #14222e;        /* texte principal, ardoise très foncée */
  --ardoise: #2c4a63;      /* secondaire */
  --ciel: #2a6f97;         /* bleu de marque, atmosphérique */
  --ciel-fonce: #1f5876;
  --ciel-clair: #e8f1f6;   /* fonds bleutés */
  --ciel-pale: #dceaf2;
  --aube: #d99a36;         /* accent or de l'aube — usage restreint (CTA, glow) */
  --aube-clair: #f5e6c8;
  --pierre: #efe7d6;       /* pierre dorée régionale — bandes "sol" */
  --pierre-fonce: #e3d7bf;
  --brume: #f7f9fa;        /* fond clair principal, légèrement froid */
  --blanc: #ffffff;
  --gris-texte: #4f6373;   /* texte secondaire */
  --bordure: #e2e8ec;

  /* La signature : dégradé terre → ciel */
  --horizon: linear-gradient(90deg, var(--aube) 0%, var(--ciel) 100%);
  --ciel-vertical: linear-gradient(180deg, var(--ciel-pale) 0%, var(--brume) 70%);

  /* Typo */
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Échelle / espacements */
  --max: 1180px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --r: 14px;       /* radius cartes */
  --r-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 34, 46, .06), 0 2px 8px rgba(20, 34, 46, .05);
  --shadow-md: 0 4px 14px rgba(20, 34, 46, .08), 0 12px 32px rgba(20, 34, 46, .07);
  --shadow-lg: 0 12px 40px rgba(20, 34, 46, .12);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--encre);
  background: var(--brume);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--ciel-fonce); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Accessibilité ---------- */
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--encre); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--encre); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -0.01em; }
p { margin: 0 0 1.1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--gris-texte); line-height: 1.6; }

/* Eyebrow / label technique (texture "fiche de devis / plan") */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ciel-fonce);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--horizon);
}

/* ---------- Conteneurs / sections ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--pierre { background: var(--pierre); }
.section--ciel { background: var(--ciel-clair); }
.section--encre { background: var(--encre); color: #d9e4ec; }
.section--encre h2, .section--encre h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Filet horizon réutilisable */
.hr-horizon { height: 3px; border: 0; border-radius: 3px; background: var(--horizon); margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--aube); color: #2a1c05; box-shadow: 0 4px 14px rgba(217, 154, 54, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(217, 154, 54, .45); }
.btn--dark { background: var(--encre); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--encre); border-color: var(--bordure); }
.btn--ghost:hover { border-color: var(--ciel); background: var(--ciel-clair); }
.btn--light { background: #fff; color: var(--encre); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 250, .85); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--encre); font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .58rem; letter-spacing: .18em; color: var(--gris-texte); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: none; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: .97rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--aube); }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--encre); border-radius: 2px; transition: .25s; }
.nav[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; border-bottom: 1px solid var(--bordure); background: var(--brume); }
.nav[data-open="true"] + .mobile-menu { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: .5rem var(--pad) 1.25rem; }
.mobile-menu li { border-bottom: 1px solid var(--bordure); }
.mobile-menu a { display: block; padding: .9rem .25rem; color: var(--encre); text-decoration: none; font-weight: 500; }
.mobile-menu .btn { margin-top: 1rem; }

@media (min-width: 860px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .nav[data-open="true"] + .mobile-menu { display: none; }
}

/* ---------- HÉRO : sol qui rencontre le ciel ---------- */
.hero { position: relative; background: var(--ciel-vertical); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5rem) 0; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.4rem; padding-bottom: 3rem; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ardoise); font-weight: 500; }
.trust-item svg { width: 22px; height: 22px; color: var(--ciel); flex: none; }

/* Silhouette de toits sur la ligne d'horizon (SVG, sans photo) */
.hero-skyline { position: relative; z-index: 1; width: 100%; display: block; color: var(--ardoise); margin-top: -1px; }
.hero-ground { background: var(--pierre); }
.hero-ground .wrap { padding-block: 1.6rem 2.2rem; }
.ground-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ardoise); margin-bottom: 1rem; }

/* Liens rapides métiers dans le bandeau "sol" */
.quicklinks { display: flex; flex-wrap: wrap; gap: .55rem; }
.quicklinks a {
  font-size: .9rem; text-decoration: none; color: var(--encre);
  background: rgba(255,255,255,.7); border: 1px solid var(--pierre-fonce);
  padding: .45rem .9rem; border-radius: 999px; font-weight: 500; transition: .15s;
}
.quicklinks a:hover { background: #fff; border-color: var(--ciel); transform: translateY(-1px); }

/* ---------- Processus (séquence réelle → numérotation justifiée) ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r); padding: 1.75rem 1.5rem 1.6rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--ciel-fonce);
  display: inline-block; margin-bottom: .9rem; letter-spacing: .08em;
  border: 1.5px solid var(--ciel-clair); background: var(--ciel-clair);
  width: 2.6rem; height: 2.6rem; line-height: 2.45rem; text-align: center; border-radius: 50%;
}
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--gris-texte); font-size: .98rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Grille métiers (hub SEO) ---------- */
.metier-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .metier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .metier-grid { grid-template-columns: repeat(3, 1fr); } }
.metier-card {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r);
  padding: 1.5rem 1.4rem 1.4rem; text-decoration: none; color: var(--encre);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  overflow: hidden;
}
.metier-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--horizon); }
.metier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ciel-clair); }
.metier-card .ic { width: 38px; height: 38px; color: var(--ciel); margin-bottom: .35rem; }
.metier-card h3 { font-size: 1.18rem; margin: 0; }
.metier-card p { font-size: .93rem; color: var(--gris-texte); margin: 0; }
.metier-card .more { margin-top: auto; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--ciel-fonce); text-transform: uppercase; display: inline-flex; align-items: center; gap: .4rem; padding-top: .6rem; }
.more svg { width: 1.15em; height: 1.15em; flex: none; }
.metier-card:hover .more svg { transform: translateX(3px); transition: transform .18s ease; }

/* ---------- Zones d'intervention ---------- */
.zones { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .zones { grid-template-columns: 1.1fr 1fr; } }
.zone-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.zone-list a, .zone-list span {
  display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 999px;
  padding: .5rem 1rem; color: var(--encre); font-weight: 500; font-size: .95rem; transition: .15s;
}
.zone-list a:hover { border-color: var(--ciel); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.zone-list .dep { font-family: var(--f-mono); font-size: .72rem; color: var(--gris-texte); }
.zone-aside { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.zone-aside .eyebrow { margin-bottom: .75rem; }

/* ---------- "Pourquoi Horizon" / atouts ---------- */
.feature-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { }
.feature .ic { width: 30px; height: 30px; color: var(--aube); margin-bottom: .7rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.feature p { font-size: .95rem; color: var(--gris-texte); margin: 0; }
.section--encre .feature p { color: #aebecb; }
.section--encre .feature .ic { color: var(--aube); }

/* ---------- FAQ (details/summary natif, accessible, sans JS) ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border: 1px solid var(--bordure); border-radius: var(--r-sm); background: var(--blanc); margin-bottom: .8rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.15rem 1.3rem; font-weight: 600; font-family: var(--f-display); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--encre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.4rem; color: var(--ciel); transition: transform .2s; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--bordure); }
.faq .answer { padding: 1.1rem 1.3rem 1.3rem; color: var(--gris-texte); font-size: .98rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Bandeau CTA final ---------- */
.cta-band { position: relative; background: var(--encre); color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--horizon); }
.cta-band .wrap { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c7d2; max-width: 56ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }
.cta-glow { position: absolute; z-index: 1; bottom: -40%; left: 50%; transform: translateX(-50%); width: 120%; height: 90%; background: radial-gradient(ellipse at center, rgba(217,154,54,.22), transparent 60%); }

/* ---------- Formulaire de contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-info .channel { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-info .channel svg { width: 24px; height: 24px; color: var(--ciel); flex: none; margin-top: 3px; }
.contact-info .channel strong { display: block; font-family: var(--f-display); }
.contact-info .channel a { color: var(--encre); }
.form-card { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--encre);
  padding: .8rem .95rem; border: 1.5px solid var(--bordure); border-radius: var(--r-sm); background: var(--brume);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ciel); background: #fff; outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .82rem; color: var(--gris-texte); margin-top: .4rem; }

/* ---------- Article / contenu long (pages métier, blog) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4rem; }
.prose ul li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 2px; background: var(--horizon); }

/* Bandeau "sous-prestations" en cartes simples */
.sub-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 640px) { .sub-grid { grid-template-columns: repeat(2, 1fr); } }
.sub-item { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r-sm); padding: 1rem 1.1rem; display: flex; gap: .7rem; align-items: flex-start; box-shadow: var(--shadow-sm); }
.sub-item svg { width: 20px; height: 20px; color: var(--ciel); flex: none; margin-top: 3px; }
.sub-item strong { font-family: var(--f-display); font-size: 1rem; display: block; margin-bottom: .15rem; }
.sub-item span { font-size: .9rem; color: var(--gris-texte); }

/* Fil d'ariane */
.crumb { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: var(--gris-texte); padding-block: 1rem 0; }
.crumb a { color: var(--gris-texte); text-decoration: none; }
.crumb a:hover { color: var(--ciel-fonce); }
.crumb span[aria-current] { color: var(--encre); }

/* Bandeau interlien autres métiers */
.related { display: flex; flex-wrap: wrap; gap: .55rem; }
.related a { font-size: .9rem; text-decoration: none; color: var(--encre); background: var(--blanc); border: 1px solid var(--bordure); padding: .45rem .9rem; border-radius: 999px; font-weight: 500; transition: .15s; }
.related a:hover { border-color: var(--ciel); transform: translateY(-1px); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--encre); color: #9fb1bf; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: #7d92a2; }
.footer-brand p { font-size: .92rem; color: #8ea2b1; max-width: 34ch; margin-top: 1rem; }
.footer-col h4 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #cdd9e1; font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #9fb1bf; text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #7d92a2; }
.footer-bottom a { color: #9fb1bf; text-decoration: none; }
.footer-bottom .legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Bloc d'avertissement (placeholders à compléter) ---------- */
.todo-banner { background: var(--aube-clair); border: 1px dashed var(--aube); color: #6b4e16; padding: .9rem 1.1rem; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 1.5rem; }
.todo-banner strong { color: #5a3f0f; }

/* ---------- Utilitaires ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--gris-texte); }
.tag-mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ciel-fonce); background: var(--ciel-clair); padding: .3rem .65rem; border-radius: 6px; display: inline-block; }
