/* ═══════════════════════════════════════════════
   SITE SUR MESURE · BASE.CSS
   Styles partagés par toutes les pages
   ═══════════════════════════════════════════════ */

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

:root {
  --navy:     #0d1950;
  --navy-dk:  #070f36;
  --navy-lt:  #1a2670;
  --pink:     #ed1e79;
  --pink-dk:  #c41764;
  --pink-lt:  #ff3d96;
  --white:    #ffffff;
  --off:      #fafbff;
  --gray:     #6a6f85;
  --gray-lt:  #e6e8f2;
  --gray-dk:  #3a3f55;
  --success:  #10b981;
  --ease:     cubic-bezier(.4,0,.2,1);
  --shadow-sm: 0 2px 8px rgba(13,25,80,.06);
  --shadow-md: 0 12px 40px rgba(13,25,80,.10);
  --shadow-lg: 0 30px 80px rgba(13,25,80,.15);
  --shadow-pink: 0 20px 50px rgba(237,30,121,.25);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 4px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  transition: all .4s var(--ease);
}
nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  padding: 14px 60px;
  box-shadow: var(--shadow-sm);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img {
  height: 58px;
  width: auto;
  display: block;
  transition: transform .3s var(--ease), height .4s var(--ease);
}
.logo:hover .logo-img { transform: scale(1.04); }
nav.scrolled .logo-img { height: 48px; }
.logo-img-footer {
  height: 68px;
  filter: brightness(0) invert(1);
}

.nav-menu { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-menu a {
  font-size: .88rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
  position: relative; padding: 6px 0;
  transition: color .3s;
}
.nav-menu a:hover { color: var(--pink); }
.nav-menu .has-dropdown { position: relative; cursor: pointer; }
.nav-menu .has-dropdown::after {
  content: '▾'; font-size: .65rem; margin-left: 4px; opacity: .7;
}
.dropdown {
  position: absolute; top: calc(100% + 12px); left: -20px;
  background: var(--white);
  border: 1px solid var(--gray-lt);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 260px;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: all .3s var(--ease);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 16px;
  border-radius: 8px;
  font-size: .88rem; font-weight: 500;
  transition: all .2s;
}
.dropdown a:hover { background: rgba(237,30,121,.08); color: var(--pink); }

.nav-cta {
  background: var(--pink); color: var(--white) !important;
  padding: 12px 24px !important;
  border-radius: 100px;
  font-weight: 600 !important;
  box-shadow: var(--shadow-pink);
  transition: all .3s var(--ease);
}
.nav-cta:hover {
  background: var(--pink-dk);
  transform: translateY(-2px);
  box-shadow: 0 25px 60px rgba(237,30,121,.35);
}

/* ─── BURGER MENU ─── */
.burger {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}
.burger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .35s var(--ease);
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--pink); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--pink); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 85%; max-width: 400px;
  background: var(--white);
  padding: 100px 32px 32px;
  box-shadow: -30px 0 80px rgba(13,25,80,.2);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  z-index: 99;
  overflow-y: auto;
  display: none;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu > ul > li {
  border-bottom: 1px solid var(--gray-lt);
  padding: 16px 0;
}
.mobile-menu > ul > li:last-child { border-bottom: none; }
.mobile-menu a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 4px 0;
  transition: color .3s, padding-left .3s;
}
.mobile-menu a:hover { color: var(--pink); padding-left: 8px; }
.mobile-menu .sub-menu { padding-left: 16px; margin-top: 10px; }
.mobile-menu .sub-menu li { padding: 8px 0; }
.mobile-menu .sub-menu a {
  font-size: .92rem; font-weight: 500;
  color: var(--gray-dk);
}
.mobile-menu .mobile-cta {
  display: block;
  margin-top: 24px;
  background: var(--pink); color: var(--white);
  padding: 16px 24px;
  border-radius: 100px;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-pink);
}
.mobile-menu .mobile-cta:hover {
  color: var(--white); background: var(--pink-dk);
  padding-left: 24px;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,25,80,.5);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
  z-index: 98;
}
.menu-backdrop.open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* ─── BOUTONS ─── */
.btn-primary {
  background: var(--pink); color: var(--white);
  padding: 18px 36px; font-size: .95rem; font-weight: 600;
  border-radius: 100px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-pink);
  transition: all .3s var(--ease);
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover {
  background: var(--pink-dk);
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(237,30,121,.4);
}
.btn-ghost {
  background: transparent; color: var(--navy);
  padding: 18px 36px; font-size: .95rem; font-weight: 600;
  border-radius: 100px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--navy);
  transition: all .3s var(--ease);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); transform: translateY(-3px); }

/* ─── SECTIONS ─── */
section { padding: 120px 60px; position: relative; }
.container { max-width: 1240px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 20px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--pink); }
h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -.02em;
}
h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pink) 0%, var(--navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
}
.section-intro {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 680px;
  line-height: 1.7;
  margin-top: 16px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.6);
  padding: 80px 60px 32px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand { max-width: 380px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { font-size: .92rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .3s var(--ease);
}
.footer-social a:hover {
  background: var(--pink); border-color: var(--pink);
  color: var(--white); transform: translateY(-3px);
}
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .92rem;
  transition: color .3s;
}
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; margin-right: 20px; }
.footer-bottom a:hover { color: var(--pink); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .1s; }
.reveal-2 { transition-delay: .2s; }
.reveal-3 { transition-delay: .3s; }
.reveal-4 { transition-delay: .4s; }

/* ─── RESPONSIVE (partagé) ─── */
@media (max-width: 1024px) {
  nav { padding: 14px 28px; }
  nav.scrolled { padding: 10px 28px; }
  .nav-menu { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: block; }
  .logo-img { height: 52px; }
  nav.scrolled .logo-img { height: 44px; }
  section { padding: 90px 32px; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  nav.scrolled { padding: 8px 20px; }
  .logo-img { height: 46px; }
  nav.scrolled .logo-img { height: 40px; }
  section { padding: 70px 20px; }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
  .section-intro { font-size: 1rem; }
  .btn-primary, .btn-ghost { padding: 15px 24px; }
  footer { padding: 60px 20px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { max-width: none; }
}

/* ─── Maillage interne : section "Nos autres expertises" ─── */
.cross-services {
  padding: 90px 20px;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}
.cross-services .container { max-width: 1200px; margin: 0 auto; }
.cross-services .section-label {
  font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #e91e63; margin-bottom: 14px; text-align: center;
}
.cross-services h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center; margin-bottom: 14px;
}
.cross-services .cross-intro {
  text-align: center; max-width: 640px; margin: 0 auto 48px;
  color: #666; font-size: 1.05rem; line-height: 1.6;
}
.cross-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cross-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  text-decoration: none; color: #111;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.cross-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(233, 30, 99, .04), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.cross-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(233, 30, 99, .12);
  border-color: rgba(233, 30, 99, .25);
}
.cross-card:hover::before { opacity: 1; }
.cross-card > * { position: relative; z-index: 1; }
.cross-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #e91e63, #f48fb1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.cross-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.cross-card p { font-size: .95rem; color: #666; line-height: 1.55; margin: 0; }
.cross-card .cross-link {
  margin-top: auto; font-weight: 600; color: #e91e63;
  font-size: .95rem; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .3s ease;
}
.cross-card:hover .cross-link { gap: 10px; }

@media (max-width: 1024px) {
  .cross-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cross-services { padding: 60px 20px; }
  .cross-grid { grid-template-columns: 1fr; gap: 16px; }
  .cross-card { padding: 26px 22px; }
}

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