/* ── RESET & VARIABLES ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --marine: #1A2744;
  --rose: #BE315B;
  --white: #FFFFFF;
  --gray-bg: #F7F8FA;
  --gray-text: #6B7280;
  --gray-border: #E5E7EB;
}

/* ── BORDURE ANIMÉE AJC (photos du bureau) ── */
@keyframes ajc-border-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bureau-photo::before { animation: none; }
}

html { scroll-behavior: smooth; background: var(--white); }
body {
  font-family: 'Montserrat', sans-serif; color: var(--marine); background: transparent; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}

/* ── BACKGROUND AMBIANT (glows doux, derrière le contenu, tout le site) ──
   Adapté du concept "radial glow" aux couleurs de la marque (rose + marine)
   pour rester pro. Couche fixe : visible dans les zones blanches,
   masquée par les sections marine (hero, CTA, footer). */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px circle at 100% 6%, rgba(190, 49, 91, 0.10), transparent 55%),
    radial-gradient(700px circle at 0% 100%, rgba(26, 39, 68, 0.07), transparent 55%),
    linear-gradient(to right, rgba(26, 39, 68, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 39, 68, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
}

::selection { background: var(--rose); color: var(--white); }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

/* ── HEADER ────────────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.92); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 0 48px; height: 68px; display: flex; align-items: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
header.scrolled { border-color: var(--gray-border); box-shadow: 0 2px 16px rgba(26,39,68,0.06); }
.header-inner { width: 100%; display: flex; align-items: center; gap: 14px; }

/* Logo — la taille se règle dans logo-config.css (variable --logo-height) */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo-mark {
  height: var(--logo-height, 40px); width: auto;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark img { height: 100% !important; width: auto !important; max-width: none !important; object-fit: contain; display: block; }
.logo-mark span { color: var(--marine); font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.logo-text { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--marine); line-height: 1.2; }
.logo-text small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 2px; color: var(--gray-text); }

/* Desktop nav */
nav { display: flex; align-items: center; gap: 36px; position: absolute; left: 50%; transform: translateX(-50%); }
nav a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--marine); opacity: 0.8; transition: opacity 0.2s; white-space: nowrap; }
nav a:hover, nav a.active { opacity: 1; }
nav a.active { border-bottom: 2px solid var(--rose); padding-bottom: 2px; }
/* Soulignement animé des liens de premier niveau */
nav > a, .nav-item > a { position: relative; }
nav > a::after, .nav-item > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--rose); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
nav > a:hover::after, .nav-item > a:hover::after { transform: scaleX(1); }
nav > a.active::after, .nav-item > a.active::after { display: none; }
.arr { font-size: 10px; margin-left: 3px; opacity: 0.5; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 3px; padding: 8px 0; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 8px; box-shadow: 0 8px 32px rgba(26,39,68,0.12);
  min-width: 220px; padding: 8px 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 300;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before {
  content: ''; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px; background: var(--white);
  border-left: 1px solid var(--gray-border); border-top: 1px solid var(--gray-border);
}
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; text-decoration: none; transition: background 0.15s; }
.dropdown-item:hover { background: var(--gray-bg); }
.dropdown-item:hover .di-title { color: var(--rose); }
.di-icon { width: 32px; height: 32px; background: var(--gray-bg); border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.di-icon svg { width: 15px; height: 15px; stroke: var(--marine); fill: none; stroke-width: 2; }
.di-title { display: block; font-size: 12px; font-weight: 700; color: var(--marine); }
.di-sub { display: block; font-size: 10px; color: var(--gray-text); margin-top: 1px; }
.dropdown-divider { height: 1px; background: var(--gray-border); margin: 6px 0; }

/* ── HAMBURGER ──────────────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
  z-index: 210;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--marine); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none; position: fixed; inset: 0; z-index: 205;
  background: var(--white); padding: 100px 40px 40px;
  flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: block; font-size: 20px; font-weight: 700;
  color: var(--marine); text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
}
.mobile-drawer a:hover { color: var(--rose); }
.mobile-drawer .drawer-cta { margin-top: 32px; }

/* Lien "Plaquette" dans la nav — même style que les autres liens de premier niveau */
nav a.nav-plaquette { display: inline-flex; align-items: center; gap: 6px; }
nav a.nav-plaquette svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Sélecteur de langue FR | EN (header) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.lang-sep { color: var(--gray-border); font-size: 12px; user-select: none; }
.lang-opt {
  background: none; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; color: var(--marine); opacity: 0.4;
  padding: 4px 5px; border-radius: 3px;
  transition: opacity 0.2s, color 0.2s;
}
.lang-opt:hover { opacity: 0.75; }
.lang-opt.is-active { opacity: 1; color: var(--rose); }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.mobile-drawer .drawer-cta-secondary {
  background: var(--gray-bg); color: var(--marine);
  border: 1.5px solid var(--gray-border);
  font-size: 14px; text-align: center;
  border-radius: 3px; padding: 14px;
  margin-top: 12px;
}
.mobile-drawer .drawer-cta-secondary:hover { border-color: var(--marine); }

.btn-outline-marine {
  border: 2px solid var(--marine); background: transparent; color: var(--marine);
  padding: 9px 20px; font-family: 'Montserrat', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; border-radius: 3px; transition: background 0.2s, color 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-outline-marine:hover { background: var(--marine); color: white; }

.btn-solid-marine {
  border: 2px solid var(--marine); background: var(--marine); color: white;
  padding: 13px 28px; font-family: 'Montserrat', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border-radius: 3px; transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-solid-marine:hover { background: #243660; border-color: #243660; }

.btn-rose {
  border: 2px solid var(--rose); background: var(--rose); color: white;
  padding: 13px 28px; font-family: 'Montserrat', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border-radius: 3px; transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-rose:hover { background: #a8274e; border-color: #a8274e; }

.btn-hero-primary {
  background: white; color: var(--marine); border: 2px solid white;
  padding: 14px 32px; font-family: 'Montserrat', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border-radius: 3px; transition: background 0.2s, color 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-hero-primary:hover { background: transparent; color: white; }

.btn-hero-secondary {
  background: transparent; color: rgba(255,255,255,0.8); border: 2px solid rgba(255,255,255,0.3);
  padding: 14px 32px; font-family: 'Montserrat', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border-radius: 3px; transition: border-color 0.2s, color 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-hero-secondary:hover { border-color: white; color: white; }

/* ── SHARED SECTION STYLES ──────────────────────────────────────── */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; }
.section-title { font-size: 32px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--marine); line-height: 1.15; margin-bottom: 16px; }
.section-title .thin { font-weight: 300; }
.section-accent { width: 40px; height: 3px; background: var(--rose); margin-bottom: 20px; }
.section-desc { font-size: 14px; color: var(--gray-text); line-height: 1.7; }

/* Page hero banner (inner pages) */
.page-hero { margin-top: 68px; background: var(--marine); padding: 80px 48px; position: relative; overflow: hidden; }
.page-hero::before { content: 'AJC'; position: absolute; right: -40px; top: 50%; transform: translateY(-50%); font-size: 280px; font-weight: 800; color: rgba(255,255,255,0.04); letter-spacing: -10px; pointer-events: none; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; }
.page-hero-title { font-size: 52px; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 16px; }
.page-hero-sub { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 520px; line-height: 1.7; }

/* Logo chip (clients / partenaires) */
.logo-chip { padding: 14px 28px; background: var(--white); border: 1.5px solid var(--gray-border); border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--marine); transition: border-color 0.2s, box-shadow 0.2s; display: flex; align-items: center; justify-content: center; }
.logo-chip-img { padding: 20px 40px; min-width: 240px; height: 128px; }
.logo-chip-img img { max-height: 80px; max-width: 240px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: filter 0.2s, opacity 0.2s; display: block; }
.logo-chip-img:hover img { filter: grayscale(0%); opacity: 1; }
.logo-chip:hover { border-color: var(--marine); box-shadow: 0 2px 12px rgba(26,39,68,0.08); }
.logos-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }

/* Team card (CDP) */
.cdp-card { background: var(--white); border: 1.5px solid var(--gray-border); border-radius: 8px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.cdp-card:hover { border-color: var(--marine); transform: translateY(-2px); }
.cdp-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.cdp-photo .ph { border-radius: 0; aspect-ratio: 3/4; width: 100%; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; }
.cdp-info { padding: 16px; }
.cdp-name { font-size: 13px; font-weight: 700; color: var(--marine); margin-bottom: 3px; }
.cdp-role { font-size: 11px; color: var(--gray-text); font-weight: 500; margin-bottom: 10px; }
.cdp-linkedin { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #0077B5; border-radius: 4px; }
.cdp-linkedin svg { width: 14px; height: 14px; fill: white; }

/* ── FOOTER (centré, minimal) ───────────────────────────────────── */
footer.site-footer { background: var(--gray-bg); border-top: 1px solid var(--gray-border); padding: 56px 24px; color: var(--gray-text); }
.site-footer-inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.site-footer-logos { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.site-footer-logo { display: block; line-height: 0; }
.site-footer-logo img { max-width: 96px; height: auto; display: block; }
.site-footer-logos .site-footer-logo { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.site-footer-logos .site-footer-logo img { max-width: none; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 600px) {
  .site-footer-logos { gap: 18px; }
  .site-footer-logos .site-footer-logo { width: 52px; height: 52px; }
}
.site-footer-logo span { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--marine); }
.site-footer-nav { position: static; left: auto; transform: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.site-footer-nav a { font-size: 13px; font-weight: 600; color: var(--marine); text-decoration: none; transition: color 0.15s; }
.site-footer-nav a:hover { color: var(--rose); }
.site-footer-contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--gray-text); }
.site-footer-contact a { color: var(--gray-text); text-decoration: none; transition: color 0.15s; }
.site-footer-contact a:hover { color: var(--rose); }
.site-footer-contact .dot { color: var(--gray-border); }
.site-footer-socials { display: flex; gap: 18px; }
.site-footer .social-btn { width: auto; height: auto; border: 0; border-radius: 0; background: none; color: var(--marine); display: block; transition: color 0.15s; }
.site-footer .social-btn:hover { color: var(--rose); background: none; border: 0; }
.site-footer .social-btn svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.site-footer-copy { font-size: 12px; color: var(--gray-text); }
@media (max-width: 560px) {
  .site-footer-contact { flex-direction: column; gap: 6px; }
  .site-footer-contact .dot { display: none; }
}

/* ── POLISH PRO ─────────────────────────────────────────────────── */
/* Micro-interactions boutons : légère élévation + ombre au survol */
.btn-outline-marine, .btn-solid-marine, .btn-rose, .btn-rose-sm,
.btn-hero-primary, .btn-hero-secondary, .btn-solid-white {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.btn-solid-marine:hover, .btn-outline-marine:hover, .btn-solid-white:hover {
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,39,68,0.18);
}
.btn-rose:hover, .btn-rose-sm:hover {
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(190,49,91,0.30);
}
.btn-hero-primary:hover, .btn-hero-secondary:hover {
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* Révélation au scroll (ajoutée par assets/polish.js) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible { opacity: 1; transform: none; }
}

/* Entrée animée des bannières de pages internes */
@media (prefers-reduced-motion: no-preference) {
  .page-hero-eyebrow, .page-hero-title, .page-hero-sub {
    opacity: 0; animation: ajc-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .page-hero-title { animation-delay: 0.1s; }
  .page-hero-sub { animation-delay: 0.2s; }
}
@keyframes ajc-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Bouton retour en haut (injecté par assets/polish.js) */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--marine); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(26,39,68,0.25);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--rose); }
.back-to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  header { padding: 0 24px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { display: flex; overflow-y: auto; }
  .page-hero { padding: 60px 24px; }
  .page-hero-title { font-size: 36px; }
  footer { padding: 48px 24px 32px; }
}

/* Petits écrans (smartphones) */
@media (max-width: 520px) {
  header { padding: 0 16px; }
  .logo-text { font-size: 11px; letter-spacing: 1px; }
  .logo-text small { font-size: 9px; letter-spacing: 1.5px; }
  #desktop-cta { padding: 7px 12px; font-size: 10px; letter-spacing: 0.5px; }
  .lang-opt { padding: 4px 3px; font-size: 11px; }
  .header-inner { gap: 8px; }
  .page-hero { padding: 48px 20px; }
  .page-hero-title { font-size: 30px; }
  .page-hero-sub { font-size: 14px; }
  .page-hero::before { font-size: 160px; right: -20px; }
  .section-title { font-size: 25px; letter-spacing: 2px; }
  .section-desc { font-size: 13px; }
  .mobile-drawer { padding: 90px 24px 32px; }
  .mobile-drawer a { font-size: 17px; padding: 12px 0; }
  .logos-grid { gap: 10px; }
  .logo-chip { padding: 10px 16px; font-size: 12px; }
  footer.site-footer { padding: 44px 20px; }
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* ── MODALE CONTACT ─────────────────────────────────────────── */
.cmodal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(26,39,68,0.62);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  will-change: opacity;
}
.cmodal-overlay.is-open { opacity: 1; visibility: visible; }
.cmodal-box {
  background: var(--white); border-radius: 12px;
  width: 96%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  padding: 40px 36px; position: relative;
  transform: translateY(12px); transition: transform 0.16s ease;
  box-shadow: 0 20px 60px rgba(26,39,68,0.25);
}
.cmodal-overlay.is-open .cmodal-box { transform: none; }
.cmodal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 28px; line-height: 1;
  color: var(--gray-text); cursor: pointer; padding: 4px 8px;
}
.cmodal-close:hover { color: var(--marine); }
.cmodal-header { text-align: center; margin-bottom: 28px; }
.cmodal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--rose); }
.cmodal-title { font-size: 26px; font-weight: 800; color: var(--marine); margin: 8px 0 6px; }
.cmodal-title strong { color: var(--rose); }
.cmodal-sub { font-size: 12px; color: var(--gray-text); }
.cmodal-form label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--marine); margin-bottom: 6px;
}
.cmodal-form input, .cmodal-form select, .cmodal-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-border); border-radius: 4px;
  font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--marine);
  background: var(--white); outline: none; transition: border-color 0.2s;
}
.cmodal-form input:focus, .cmodal-form select:focus, .cmodal-form textarea:focus { border-color: var(--marine); }
.cmodal-form select { appearance: none; cursor: pointer; }
.cmodal-form textarea { resize: vertical; min-height: 90px; }
.cmodal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmodal-field { margin-bottom: 14px; }
.cmodal-submit {
  width: 100%; padding: 14px; margin-top: 6px;
  background: var(--rose); color: var(--white); border: none; border-radius: 4px;
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s;
}
.cmodal-submit:hover { background: #a12a4e; }
.cmodal-success {
  display: none; margin-top: 14px; padding: 14px;
  background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 6px;
  font-size: 13px; color: #166534; font-weight: 600; text-align: center;
}
@media (max-width: 600px) {
  .cmodal-box { padding: 28px 20px; }
  .cmodal-row { grid-template-columns: 1fr; }
  .cmodal-title { font-size: 22px; }
}
