:root {
  --c-brand:       #0E7C66;
  --c-brand-dark:  #0a5a4d;
  --c-brand-deep:  #073d35;
  --c-brand-light: #e8f5f2;
  --c-brand-mid:   #b2ddd6;
  --c-accent:      #C8A96E;
  --c-ink:         #1a1f1e;
  --c-ink-2:       #374847;
  --c-ink-3:       #6b7c7a;
  --c-surface:     #ffffff;
  --c-surface-2:   #f7faf9;
  --c-border:      #daeae6;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --shadow-card: 0 2px 12px rgba(14,124,102,.08);
  --shadow-lift: 0 8px 32px rgba(14,124,102,.18);

  /* Aliases rétro-compatibles */
  --green: #0E7C66;
  --green-700: #0a5a4d;
  --green-50: #e8f5f2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--c-ink);
  background: var(--c-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 48px; width: auto; display: block; }
.brand-text { font-size: 13px; font-weight: 700; color: var(--c-brand); }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 7px 13px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--c-ink-2);
  transition: background .18s, color .18s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--c-brand-light); color: var(--c-brand);
}
/* Bouton d'entrée du parcours client, mis en avant dans la nav */
.main-nav a.nav-cta {
  margin-left: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--c-brand); color: #fff;
}
.main-nav a.nav-cta:hover { background: var(--c-brand-dark); color: #fff; }

/* ── HAMBURGER ── */
.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 60;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--c-ink); border-radius: 2px; transition: all .3s;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TRIPTYCH ── */
.triptych { display: flex; height: calc(100vh - 72px); }
.panel {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--c-surface); outline: none;
}
.panel .overlay {
  position: relative; z-index: 1; text-align: center;
  padding: 24px 16px; border-radius: 8px; transition: transform .3s ease;
}
.panel .overlay .badge { display: inline-block; height: 144px; width: auto; margin-bottom: 10px; }
.panel .cta {
  display: inline-block; margin-top: 12px; padding: 10px 16px;
  background: var(--c-brand); border-radius: 6px; font-weight: 700;
}
.panel:hover .overlay { transform: translateY(-4px); }
.panel::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.25); transition: background .3s ease;
}
.panel:hover::before { background: rgba(0,0,0,.35); }
.panel-1 { background: url('../images/panel-regroupement.webp') center/cover no-repeat; }
.panel-2 { background: url('../images/panel-immobilier.webp') center/cover no-repeat; }
.panel-3 { background: url('../images/panel-professionnel.webp') center/cover no-repeat; }
.panel h1, .panel h2 { margin: 0 0 8px 0; }
.panel p { margin: 0; opacity: .95; }

/* ── FOOTER ── */
.site-footer {
  background: var(--c-brand-deep);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 32px 24px;
}
.footer-nav a { color: rgba(255,255,255,.5); margin: 0 8px; transition: color .2s; }
.footer-nav a:hover { color: var(--c-surface); }
.subs a { color: var(--c-brand-mid); margin: 0 8px; }
.subs a:hover { text-decoration: underline; }
.footer-inner small { color: rgba(255,255,255,.3); font-size: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .triptych { flex-direction: column; height: auto; min-height: calc(100vh - 72px); }
  .panel { min-height: 33vh; }
}
/* Largeurs intermédiaires : la nav des sous-sites (9 liens) est la plus large —
   on compacte les liens et on masque le texte de marque avant de passer au burger. */
@media (max-width: 1320px) {
  .main-nav a { padding: 7px 9px; font-size: 12.5px; }
  .main-nav a.nav-cta { padding: 7px 12px; }
  .brand-text { display: none; }
}
@media (max-width: 1024px) {
  .mobile-menu-toggle { display: flex; }
  .main-nav {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 12px 16px; font-size: 15px; }
  .main-nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .header-inner { height: 64px; }
  .brand img { height: 40px; }
}

/* ── FOOTER UNIFIÉ (modèle nos-agences) ── */
.footer { background: var(--c-brand-deep); border-top: 1px solid rgba(255,255,255,.08); padding: 24px; }
.footer__inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { font-size: 12.5px; color: rgba(255,255,255,.4); transition: color .15s; text-decoration: none; }
.footer__nav a:hover { color: rgba(255,255,255,.8); }
.footer__copy { font-size: 12px; color: rgba(255,255,255,.35); }

/* ── HERO DE PAGE (modèle nos-agences) ── */
.page-hero { background: var(--c-brand-deep); padding: 48px 24px 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(14,124,102,.5) 0%, transparent 65%); pointer-events: none; }
.page-hero__inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.page-hero__eyebrow { font-size: 11px; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.page-hero__title { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1.1; margin-bottom: 10px; }
.page-hero__sub { font-family: 'Lora', serif; font-style: italic; font-size: 17px; color: rgba(255,255,255,.65); max-width: 720px; margin: 0 auto; }
@media (max-width: 640px) { .page-hero__title { font-size: 28px; } }

/* ── CARTES OFFRES ── */
.offer-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.offer-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 30px; box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s; }
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.offer-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--c-brand-light); color: var(--c-brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.offer-card__icon svg { width: 24px; height: 24px; }
.offer-card h2 { color: var(--c-brand); font-size: 21px; margin-bottom: 4px; font-weight: 700; }
.offer-card__tag { font-family: 'Lora', serif; font-style: italic; color: var(--c-ink-3); margin-bottom: 14px; }
.offer-card ul { list-style: none; padding: 0; margin: 0; }
.offer-card li { padding: 6px 0 6px 26px; position: relative; color: var(--c-ink-2); line-height: 1.6; }
.offer-card li::before { content: "✓"; position: absolute; left: 0; color: var(--c-brand); font-weight: 700; }

/* ── BANDEAU CONTACT AVANT FOOTER (modèle nos-agences) ── */
.bottom-strip { background: var(--c-brand-deep); padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.08); }
.bottom-strip__inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bottom-strip__text { color: rgba(255,255,255,.7); font-size: 13px; }
.bottom-strip__text strong { color: #fff; }
.bottom-strip__cta { display: inline-flex; align-items: center; gap: 8px; background: var(--c-accent); color: var(--c-brand-deep); font-size: 13px; font-weight: 800; padding: 10px 20px; border-radius: var(--r-sm); text-decoration: none; transition: transform .18s; }
.bottom-strip__cta:hover { transform: translateY(-1px); }

/* ── Footer : rang de liens vers les pages clés ── */
.footer__links { width: 100%; display: flex; gap: 8px 22px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer__links a { font-size: 12.5px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.footer__links a:hover { color: #fff; }
