/* ============================================================
   MAROLLES-SUR-SEINE — Feuille de style commune
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --blue:    #1741A6;
  --blue-d:  #0E2C78;
  --blue-l:  #E8EFFE;
  --blue-m:  #B8CCEF;
  --gold:    #B8820E;
  --gold-l:  #FDF0D5;
  --gold-b:  #D4920C;
  --white:   #FFFFFF;
  --bg:      #F5F5EE;
  --ink:     #0D1729;
  --sub:     #4A5568;
  --hint:    #8A97AB;
  --border:  #DDE3EF;
  --red:     #B91C1C;
  --f: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--f); background: var(--white); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── TOPBAR ─────────────────────────────── */
.topbar {
  background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 500;
  padding: 8px 6%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: #FCA5A5; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }
.topbar a { color: #FEE2E2; text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }

/* ── HEADER ─────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 6%; height: 66px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 45px; height: 45px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; background: var(--blue-l);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark img { width: 45px; height: 45px; object-fit: contain; }
.logo-text-name { font-size: .98rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.logo-text-sub  { font-size: .65rem; color: var(--hint); letter-spacing: .06em; text-transform: uppercase; }
nav { flex: 1; overflow: visible; }
.nav-list { list-style: none; display: flex; gap: 2px; white-space: nowrap; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 6px 12px; border-radius: 7px; font-size: .82rem; font-weight: 500; color: var(--sub); transition: background .15s, color .15s; }
.nav-list a:hover, .nav-list a.on { background: var(--blue-l); color: var(--blue); }
.nav-trigger {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 7px;
  font: inherit; font-size: .82rem; font-weight: 500; color: var(--sub);
  background: none; border: none; cursor: pointer;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-trigger:hover { background: var(--blue-l); color: var(--blue); }
.has-dd.open > .nav-trigger,
.has-dd.current > .nav-trigger { background: var(--blue-l); color: var(--blue); }
.nav-caret { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.3; transition: transform .18s; flex-shrink: 0; }
.has-dd.open .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 48px rgba(13,23,41,.14);
  padding: 8px; min-width: 270px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 150;
}
.has-dd.open .dropdown,
.has-dd:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.align-right { left: auto; right: 0; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .85rem; font-weight: 500; color: var(--sub); line-height: 1.3; white-space: normal; }
.dropdown a:hover,
.dropdown a.current { background: var(--blue-l); color: var(--blue); }
.dd-sub { display: block; font-size: .71rem; font-weight: 400; color: var(--hint); margin-top: 1px; }
.dropdown a:hover .dd-sub { color: var(--blue-m); }
.dd-divider { height: 1px; background: var(--border); margin: 6px 8px; }

.has-sub { position: relative; }
.dd-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 9px 12px; border-radius: 8px;
  font: inherit; font-size: .85rem; font-weight: 500; color: var(--sub);
  background: none; border: none; cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.dd-trigger:hover, .has-sub.open > .dd-trigger { background: var(--blue-l); color: var(--blue); }
.dd-sub-caret { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; flex-shrink: 0; }
.sub-dropdown {
  position: absolute; top: -8px; left: calc(100% + 8px);
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 48px rgba(13,23,41,.14);
  padding: 8px; min-width: 230px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateX(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 160;
}
.sub-dropdown.open-left { left: auto; right: calc(100% + 8px); transform: translateX(-6px); }
.has-sub:hover > .sub-dropdown,
.has-sub.open > .sub-dropdown { opacity: 1; visibility: visible; transform: translateX(0); }
.sub-dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .85rem; font-weight: 500; color: var(--sub); line-height: 1.3; }
.sub-dropdown a:hover { background: var(--blue-l); color: var(--blue); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.hdr-tel { font-size: .78rem; color: var(--sub); white-space: nowrap; }
.hdr-tel strong { color: var(--ink); font-weight: 600; }
.btn-blue {
  background: var(--blue); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  transition: background .15s, transform .12s; white-space: nowrap; display: inline-flex; align-items: center;
}
.btn-blue:hover { background: var(--blue-d); transform: translateY(-1px); }

.hamburger {
  display: none; width: 38px; height: 38px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { background: var(--blue-l); }
.hamburger svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; }

/* ── MOBILE NAV ─────────────────────────── */
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(13,23,41,.45);
  z-index: 290; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw); background: var(--white);
  box-shadow: -10px 0 40px rgba(13,23,41,.18);
  z-index: 300; transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mobile-nav-close {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: none; cursor: pointer;
}
.mobile-nav-close svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 2; }
.mobile-nav-list { list-style: none; padding: 10px; overflow-y: auto; flex: 1; }
.mobile-nav-list > li > a {
  display: block; padding: 13px 14px; border-radius: 9px;
  font-size: .94rem; font-weight: 500; color: var(--sub);
  transition: background .15s, color .15s;
}
.mobile-nav-list > li > a.on,
.mobile-nav-list > li > a:hover { background: var(--blue-l); color: var(--blue); }
.m-acc-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 14px; border-radius: 9px;
  font: inherit; font-size: .94rem; font-weight: 500; color: var(--sub);
  background: none; border: none; cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.m-acc-trigger:hover { background: var(--blue-l); color: var(--blue); }
.m-acc.open > .m-acc-trigger,
.m-acc.current > .m-acc-trigger { color: var(--blue); background: var(--blue-l); }
.m-acc-caret { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .2s; flex-shrink: 0; }
.m-acc.open .m-acc-caret { transform: rotate(180deg); }
.m-acc-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding-left: 6px; }
.m-acc.open .m-acc-panel,
.m-acc.current .m-acc-panel { max-height: 700px; }
.m-acc-panel a {
  display: block; padding: 11px 14px; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--sub); line-height: 1.3;
}
.m-acc-panel a:hover,
.m-acc-panel a.current { background: var(--blue-l); color: var(--blue); }
.m-divider { height: 1px; background: var(--border); margin: 6px 10px; }
.m-acc-nested { padding-left: 4px; }
.m-acc-nested > .m-acc-trigger { font-size: .89rem; padding: 11px 14px; }
.m-acc-nested .m-acc-panel { padding-left: 10px; }
.m-acc-nested .m-acc-panel a { font-size: .85rem; padding: 10px 14px; }
.mobile-nav-footer { padding: 16px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }
.mobile-nav-tel { font-size: .82rem; color: var(--sub); text-align: center; margin-top: 12px; }
.mobile-nav-tel strong { color: var(--ink); font-weight: 600; }

/* ── BREADCRUMB ─────────────────────────── */
.breadcrumb-bar { background: var(--bg); border-bottom: 1px solid var(--border); }
.breadcrumb {
  max-width: 1280px; margin: 0 auto; padding: 13px 5%;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .79rem; color: var(--hint);
}
.breadcrumb a { color: var(--sub); transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--hint); }
.breadcrumb .cur { color: var(--blue); font-weight: 600; }

/* ── PAGE HEADER ────────────────────────── */
.page-header { background: var(--white); border-bottom: 1px solid var(--border); }
.page-header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 52px 5% 44px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.page-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.08; margin-bottom: 14px; }
.page-desc { font-size: .97rem; color: var(--sub); max-width: 640px; line-height: 1.75; font-weight: 300; }

/* ── CONTENT LAYOUT ─────────────────────── */
.page-body {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 5% 80px;
}
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.content-full { max-width: 1280px; }

/* ── SECTION ELEMENTS ───────────────────── */
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: .71rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hint); margin-bottom: 22px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── INFO CARD ───────────────────────────── */
.info-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 30px; margin-bottom: 24px;
}
.info-card h2 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.info-card p { font-size: .9rem; color: var(--sub); line-height: 1.75; margin-bottom: 10px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.info-card ul li { font-size: .9rem; color: var(--sub); line-height: 1.6; }
.info-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ── CONTACT CARD (sidebar) ─────────────── */
.contact-sidebar {
  background: var(--blue); border-radius: 18px;
  padding: 28px 24px; color: #fff; position: sticky; top: 86px;
}
.contact-sidebar h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.cs-row { display: flex; gap: 10px; margin-bottom: 12px; }
.cs-ico {
  width: 32px; height: 32px; border-radius: 7px; background: rgba(255,255,255,.1);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.cs-ico svg { width: 14px; height: 14px; stroke: var(--gold-b); fill: none; stroke-width: 2; }
.cs-lbl { font-size: .63rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; opacity: .55; margin-bottom: 2px; }
.cs-val { font-size: .84rem; font-weight: 500; line-height: 1.5; }
.cs-sep { height: 1px; background: rgba(255,255,255,.1); margin: 16px 0; }
.cs-hours { font-size: .82rem; opacity: .7; line-height: 1.8; }
.btn-contact-gold {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--gold); color: #fff;
  font-weight: 700; font-size: .85rem; padding: 12px; border-radius: 10px;
  margin-top: 18px; transition: background .15s;
}
.btn-contact-gold:hover { background: var(--gold-b); }

/* ── LINK LIST ───────────────────────────── */
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.link-item:hover { border-color: var(--blue-m); box-shadow: 0 4px 18px rgba(26,62,114,.08); transform: translateX(3px); }
.link-item-left { display: flex; align-items: center; gap: 14px; }
.link-item-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--blue-l);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s;
}
.link-item:hover .link-item-icon { background: var(--blue); }
.link-item-icon svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.8; transition: stroke .15s; }
.link-item:hover .link-item-icon svg { stroke: #fff; }
.link-item-title { font-size: .92rem; font-weight: 600; color: var(--ink); }
.link-item-sub { font-size: .77rem; color: var(--hint); margin-top: 2px; }
.link-item-arrow { color: var(--blue-m); font-size: 1.1rem; transition: color .15s; }
.link-item:hover .link-item-arrow { color: var(--blue); }

/* ── CONTACT BOTTOM BLOCK ───────────────── */
.contact-block {
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-top: 48px;
}
.contact-block h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-block p { font-size: .84rem; color: var(--sub); line-height: 1.6; }
.contact-block p strong { color: var(--ink); }

/* ── FOOTER ─────────────────────────────── */
footer { background: #07111F; color: rgba(255,255,255,.5); padding: 60px 6% 28px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.f-brand-name { font-size: 1.2rem; font-weight: 700; color: #fff; display: block; margin-bottom: 10px; }
.f-brand p { font-size: .8rem; line-height: 1.75; max-width: 240px; }
.f-contacts { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.f-row { display: flex; gap: 9px; font-size: .8rem; }
.f-row svg { width: 14px; height: 14px; stroke: var(--gold-b); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.f-col h4 { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 16px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.f-col ul li a { font-size: .8rem; color: rgba(255,255,255,.45); transition: color .15s; }
.f-col ul li a:hover { color: var(--gold-b); }
.f-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .71rem; color: rgba(255,255,255,.25);
}
.f-bottom a { color: rgba(255,255,255,.3); transition: color .15s; }
.f-bottom a:hover { color: var(--gold-b); }

/* ── ANIMATIONS ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1040px) {
  nav { display: none; }
  .hdr-tel, .header-right .btn-blue { display: none; }
  .hamburger { display: flex; }
  .header-inner { gap: 14px; }
}
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-header { padding: 36px 6% 32px; }
  .page-body { padding: 40px 6% 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-block { flex-direction: column; align-items: flex-start; }
  .logo-text-sub { display: none; }
  .header-inner { gap: 16px; }
}
