/* =========================================================
   ROMEO PERE & FILS — Refonte 2026
   Design system "Zinc" — navy profond, gris chaud, grille visible
   ========================================================= */

:root {
  --navy-950: #0d121e;
  --navy-900: #101624;
  --navy-800: #17202f;
  --navy-700: #202b3d;
  --steel-500: #4a7a9b;
  --steel-600: #3d6883;
  --steel-300: #b9cfdc;
  --accent-amber: #e6a13c;
  --accent-amber-light: #f2c072;
  --cream-100: #f1f0eb;
  --cream-200: #e8e6de;
  --white: #ffffff;
  --ink-900: #101624;
  --ink-700: #333d4c;
  --gray-600: #5c6672;
  --gray-400: #8b93a0;
  --border-light: #e2e0d8;
  --border-dark: rgba(255, 255, 255, 0.12);

  --font-head: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--steel-500);
  display: block;
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--steel-300); }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--cream-100); }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,0.85); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-head p { color: var(--gray-600); }

.prestations-banner { margin-bottom: 48px; overflow: hidden; background: var(--cream-200); }
.prestations-banner img { width: 100%; height: 420px; object-fit: cover; display: block; }
@media (max-width: 720px) {
  .prestations-banner img { height: 260px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--steel-500); color: var(--white); }
.btn-primary:disabled:hover { background: var(--steel-500); }
.btn-primary:hover { background: var(--steel-600); }
.btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-outline-dark {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 38px; width: auto; }
.brand-tags {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-left: 14px;
  border-left: 1px solid var(--border-dark);
  display: none;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--white); border-color: var(--steel-500); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn {
  padding: 14px 26px;
  border-bottom-color: transparent;
  color: var(--white);
}
.nav-cta .btn:hover { border-bottom-color: transparent; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  color: #fff;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .brand-tags { display: none !important; }
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--navy-900);
    flex-direction: column; align-items: flex-start; padding: 28px 24px;
    transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--border-dark); }
  .main-nav a { display: block; padding: 16px 0; }
  .nav-cta { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; width: 100%; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero-media-tag {
  position: absolute;
  top: 28px; right: 24px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 1; padding-top: 72px; }
.hero-photo {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,18,30,0.86) 0%, rgba(13,18,30,0.66) 32%, rgba(13,18,30,0.3) 62%, rgba(13,18,30,0.1) 100%);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 760px;
  margin-bottom: 20px;
}
.hero p.lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 18px;
}
.hero-breadcrumb a { color: var(--steel-300); border-bottom: 1px solid rgba(185,207,220,0.4); }
.hero-breadcrumb a:hover { color: #fff; }

/* Hero plein écran — accueil (hero--home) et pages métiers (hero--tall) */
.hero--home,
.hero--tall {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 76px);
}
.hero--home .hero-inner,
.hero--tall .hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 48px;
}

/* Accueil mobile : le hero occupe tout l'écran, la bande stats est révélée au scroll */
@media (max-width: 900px) {
  .hero--home { min-height: 0; }
  .hero--home .hero-photo { height: calc(100vh - 76px); }
  .hero--home .hero-inner { flex: none; min-height: calc(100vh - 76px); }
}

/* Stat strip under hero */
.stat-strip {
  position: relative; z-index: 1;
  background: var(--navy-950);
  border-top: 1px solid var(--border-dark);
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 26px 24px;
  border-left: 1px solid var(--border-dark);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  display: block;
  margin-bottom: 6px;
}
.stat-value { font-family: var(--font-head); font-size: 1.5rem; color: var(--white); font-weight: 700; }

@media (max-width: 720px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); row-gap: 22px; padding-top: 28px; padding-bottom: 28px; }
  .stat-item { border-left: none; padding: 0 0 0 14px; border-left: 1px solid var(--border-dark); }
  .stat-item:nth-child(odd) { padding-left: 0; border-left: none; }
}

/* ---------- Services grid (Accueil) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.service-card {
  background: var(--white);
  padding: 32px 26px;
  transition: background 0.15s ease;
}
.service-card:hover { background: var(--cream-100); }
.service-num {
  font-family: var(--font-mono);
  color: var(--steel-500);
  font-size: 0.75rem;
  margin-bottom: 14px;
  display: block;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { color: var(--gray-600); font-size: 0.92rem; margin-bottom: 14px; }
.service-card .link-arrow { font-weight: 600; font-size: 0.88rem; color: var(--steel-500); }
.link-arrow::after { content: " →"; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Numbered detail rows (pages métiers) ---------- */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.detail-row:first-of-type { padding-top: 0; }
.detail-num {
  font-family: var(--font-mono);
  color: var(--steel-500);
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}
.detail-row h3 { font-size: 1.3rem; margin-bottom: 12px; }
.detail-row p { color: var(--gray-600); }
.detail-row .btn { margin-top: 6px; }
.detail-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-200);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-list {
  border: 1px solid var(--border-light);
  padding: 26px;
  background: var(--white);
}
.detail-list .eyebrow { margin-bottom: 16px; }
.detail-list ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex; gap: 10px;
  color: var(--ink-700);
}
.detail-list ul li:last-child { border-bottom: none; }
.detail-list ul li::before { content: "—"; color: var(--steel-500); }

@media (max-width: 800px) {
  .detail-row { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Tabs (pages métiers) ---------- */
.metier-tabs {
  display: flex;
  gap: 0;
  margin-top: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  width: fit-content;
  border-radius: var(--radius);
  overflow: hidden;
}
.metier-tabs a {
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-right: 1px solid rgba(255,255,255,0.18);
}
.metier-tabs a:last-child { border-right: none; }
.metier-tabs a.is-active { background: var(--steel-500); color: #fff; }
.metier-tabs a:hover:not(.is-active) { background: rgba(255,255,255,0.06); color: #fff; }

@media (max-width: 560px) {
  .metier-tabs { flex-wrap: wrap; width: 100%; }
  .metier-tabs a { flex: 1 1 40%; text-align: center; }
}

/* ---------- Before / after ---------- */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
}
.before-after figure { margin: 0; position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--cream-200); }
.before-after img { width: 100%; height: 100%; object-fit: cover; }
.before-after figcaption {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16,22,36,0.72);
  color: #fff;
  padding: 4px 10px;
}
@media (max-width: 640px) { .before-after { grid-template-columns: 1fr; } }

/* ---------- Callout card (contact chantier) ---------- */
.callout-card {
  border: 1px solid var(--border-light);
  padding: 30px;
  background: var(--cream-100);
}
.callout-card h3 { font-size: 1.15rem; }
.callout-card p { color: var(--gray-600); }
.callout-card hr { border: none; border-top: 1px solid var(--border-light); margin: 18px 0; }

/* ---------- Entreprise / histoire ---------- */
.entreprise-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.entreprise-grid > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 28px 0; padding-top: 22px; border-top: 1px solid var(--border-light); }
.timeline-year { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--ink-900); }
.timeline-label { color: var(--gray-600); font-size: 0.85rem; margin-top: 4px; }
.quote-block {
  border-left: 3px solid var(--steel-500);
  padding: 18px 22px;
  background: var(--white);
  font-size: 1.05rem;
  color: var(--ink-900);
  font-style: italic;
}
@media (max-width: 860px) {
  .entreprise-grid { grid-template-columns: 1fr; gap: 28px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Testimonial + infos strip ---------- */
.testimonial-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border-light);
}
.testimonial-strip > div { padding: 40px; }
.testimonial-strip .quote { font-size: 1.15rem; color: var(--ink-900); margin-bottom: 14px; }
.testimonial-strip cite { color: var(--gray-600); font-style: normal; font-size: 0.9rem; }

.google-reviews { display: flex; flex-direction: column; }
.google-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.google-rating-score { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink-900); }
.google-stars, .google-review-stars { color: var(--accent-amber); letter-spacing: 1px; }
.google-rating-count { color: var(--gray-600); font-size: 0.9rem; }
.google-review-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 22px; }
.google-review { border-left: 3px solid var(--border-light); padding-left: 16px; }
.google-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.google-review-author { font-weight: 600; color: var(--ink-900); font-size: 0.92rem; }
.google-review-stars { font-size: 0.85rem; }
.google-review-text { color: var(--gray-600); font-size: 0.95rem; margin: 0; }
.google-review-link { font-weight: 600; color: var(--ink-900); align-self: flex-start; }
.google-review-link:hover { color: var(--steel-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--steel-500);
  color: #fff;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 24px;
}
.cta-band h3 { color: #fff; font-size: 1.4rem; margin: 0; }
.cta-band .btn-primary { background: var(--navy-900); }
.cta-band .btn-primary:hover { background: var(--navy-950); }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: 18px;
}
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-bottom-links a:not(:first-child) {
  padding-left: 20px;
  border-left: 1px solid var(--border-dark);
}
.footer-bottom a:hover { color: #fff; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Bandeau cookies (RGPD) ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--navy-950);
  color: rgba(255,255,255,0.85);
  border-top: 1px solid var(--border-dark);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}
.cookie-banner-text { max-width: 720px; }
.cookie-banner-text .eyebrow { margin-bottom: 6px; }
.cookie-banner-text p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.cookie-banner-text a { text-decoration: underline; color: var(--white); }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ---------- Contact page ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.contact-info {
  background: var(--navy-900);
  color: rgba(255,255,255,0.82);
  padding: 72px 56px;
}
.contact-info h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-info-block { padding: 20px 0; border-top: 1px solid var(--border-dark); }
.contact-info-block:first-of-type { margin-top: 28px; }
.contact-info-block .label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  display: block;
  margin-bottom: 6px;
}
.contact-info-block .value { color: #fff; font-size: 1.1rem; font-weight: 600; }
.contact-info-block .value-phone { color: var(--accent-amber); }
.contact-info-block .value-phone:hover { color: var(--accent-amber-light); }
.contact-form-wrap { background: var(--cream-100); padding: 72px 56px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field > label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  display: block;
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  background: #fff;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--ink-900);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--steel-500);
}
.segmented { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border-light); max-width: 100%; position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  border-right: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
}
.segmented label:last-child { border-right: none; }
.segmented input:checked + label { background: var(--navy-900); color: #fff; }
.radio-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--ink-700); white-space: nowrap; }
.form-note { font-size: 0.82rem; color: var(--gray-600); margin-top: 10px; }
#form-feedback { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius); font-size: 0.92rem; display: none; }
#form-feedback.is-success { display: block; background: #e5f0e8; color: #2b6b3f; }
#form-feedback.is-error { display: block; background: #f7e6e6; color: #a13a3a; }

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 48px 28px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.badge-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.badge-row img { height: 56px; width: auto; }
.badge-row a { font-size: 0.85rem; color: var(--steel-500); font-weight: 600; }

.legal-content h2 { margin-top: 2em; font-size: 1.2rem; }
.legal-content p, .legal-content li { color: var(--gray-600); }
.legal-content { max-width: 780px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #fff; color: #000; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }
