/**
 * ============================================================
 *  GROUPE MOHA COM — Layout Styles
 *  Fichier : layout.css
 *  Version : 1.0.0
 *  Date    : 2026-03-19
 *
 *  Navigation, Hero, Footer, Breadcrumbs, structure globale.
 *  Dépend de : design-tokens.css, base.css
 * ============================================================
 */


/* ============================================================
   1. NAVIGATION — .site-nav
   ============================================================ */

/* Lien d'évitement (skip to content) */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-signal-red);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 0;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-nav:focus {
  top: 0;
}

/* Barre de navigation principale */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-navy);
  padding: 0 1.5rem;
  height: 78px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s, padding 0.3s;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Inner wrapper */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== NAV LOGOS GROUP — Premium Logo Showcase ===== */
.nav-logos-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.nav-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #f4f6fa 100%);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-bottom: 3px solid var(--color-royal-blue);
  border-radius: 10px;
  padding: 5px 12px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.10),
    0 4px 16px rgba(27,42,74,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transform-origin: top left;
}

/* Accent couleur par entité */
.nav-logo-item:nth-child(1) { border-bottom-color: #2456A4; }
.nav-logo-item:nth-child(2) { border-bottom-color: #1B2A4A; }
.nav-logo-item:nth-child(3) { border-bottom-color: #CC2229; }

/* Shine sweep effect */
.nav-logo-item::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.nav-logo-item:hover::after { left: 125%; }

/* Hover — mega pop-out : scale 3.5x depuis le coin supérieur gauche → bas et droite */
/* transition: all sur .nav-logo-item gère aussi le retour à taille normale */
.nav-logo-item:hover {
  transform: scale(3.5);
  z-index: 9999;
  overflow: visible;
}

.nav-logo-item:nth-child(1):hover {
  box-shadow: 0 20px 60px rgba(36,86,164,0.55), 0 0 0 3px rgba(36,86,164,0.40);
}
.nav-logo-item:nth-child(2):hover {
  box-shadow: 0 20px 60px rgba(27,42,74,0.55), 0 0 0 3px rgba(27,42,74,0.40);
}
.nav-logo-item:nth-child(3):hover {
  box-shadow: 0 20px 60px rgba(204,34,41,0.55), 0 0 0 3px rgba(204,34,41,0.40);
}

/* !important pour overrider base.css img { height: auto } */
.nav-logo-item img {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 170px;
  display: block !important;
  flex-shrink: 0;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  /* Afficher les 3 logos sur mobile, taille réduite */
  .nav-logos-group {
    gap: 0.375rem;
  }
  .nav-logo-item {
    padding: 3px 6px;
  }
  .nav-logo-item img {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 90px;
  }
}

@media (max-width: 400px) {
  /* Très petit écran : logos encore plus compacts */
  .nav-logo-item {
    padding: 2px 4px;
    border-radius: 6px;
  }
  .nav-logo-item img {
    height: 26px !important;
    max-height: 26px !important;
    max-width: 70px;
  }
}

/* Menu principal */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li > a {
  color: var(--color-white);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  display: block;
  position: relative;
}

/* Active page underline indicator */
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--color-signal-red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-menu > li > a:hover,
.nav-menu > li > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

/* ---- Dropdown ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scaleY(0.96);
  transform-origin: top center;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scaleY(1);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, padding-left 0.18s;
}

.nav-dropdown-menu a:hover {
  background: var(--color-light-gray);
  color: var(--color-navy);
}

/* ---- Entity-aware dropdown visual accents (mega-menu preview) ---- */
/* Uses :has() — supported Chrome 105+, Firefox 121+, Safari 15.4+        */
.nav-dropdown:has(a[href*="moha-com"]) .nav-dropdown-menu {
  border-top: 3px solid var(--color-signal-red);
  background: linear-gradient(to bottom, rgba(204,34,41,0.03) 0%, #fff 40%);
  min-width: 250px;
}

.nav-dropdown:has(a[href*="safety-voyages"]) .nav-dropdown-menu {
  border-top: 3px solid var(--color-royal-blue);
  background: linear-gradient(to bottom, rgba(36,86,164,0.04) 0%, #fff 40%);
  min-width: 230px;
}

.nav-dropdown:has(a[href*="residences-safety"]) .nav-dropdown-menu {
  border-top: 3px solid var(--color-teal, #1C7C74);
  background: linear-gradient(to bottom, rgba(28,124,116,0.04) 0%, #fff 40%);
  min-width: 230px;
}

/* Entity logo preview + kicker label au top de chaque dropdown */
.nav-dropdown:has(a[href*="moha-com"]) .nav-dropdown-menu::before,
.nav-dropdown:has(a[href*="safety-voyages"]) .nav-dropdown-menu::before,
.nav-dropdown:has(a[href*="residences-safety"]) .nav-dropdown-menu::before {
  display: block;
  width: 100%;
  height: 44px;
  background-repeat: no-repeat;
  background-size: auto 32px;
  background-position: 1rem center;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-bottom: 0.25rem;
}

.nav-dropdown:has(a[href*="moha-com"]) .nav-dropdown-menu::before {
  content: '';
  background-image: url('../logos/logo_MOHA_COM.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  border-radius: 6px;
}

.nav-dropdown:has(a[href*="safety-voyages"]) .nav-dropdown-menu::before {
  content: '';
  background-image: url('../logos/logo_SAFETY_VOYAGE_SERVICE.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  border-radius: 6px;
}

.nav-dropdown:has(a[href*="residences-safety"]) .nav-dropdown-menu::before {
  content: '';
  background-image: url('../logos/logo_RESIDENCE_SAFETY.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  border-radius: 6px;
}

/* ====== MEGA-MENU avec photo preview ====== */
/* Quand la classe .nav-has-preview est sur l'ul.nav-dropdown-menu,
   le dropdown passe en flex deux colonnes : photo | liens             */

.nav-dropdown-menu.nav-has-preview {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-auto-rows: auto;
  min-width: 480px;
  padding: 0;
  overflow: hidden;
}

/* Colonne gauche : photo preview (span toutes les rows) */
.nav-preview-item {
  grid-column: 1;
  grid-row: 1 / span 20;
  position: relative;
  overflow: hidden;
  list-style: none;
}

.nav-preview-item img.nav-preview-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nav-dropdown:hover .nav-preview-item img.nav-preview-photo {
  transform: scale(1.05);
}

.nav-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.90) 0%, transparent 100%);
  padding: 0.75rem 0.6rem 0.6rem;
  pointer-events: none;
}

.nav-preview-overlay img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 0.3rem;
}

.nav-preview-overlay span {
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  line-height: 1.3;
  display: block;
  font-family: var(--font-body);
}

/* Colonne droite : liens — grid column 2 automatique */
/* Tous les <li> non-preview vont en colonne 2 via CSS grid */
.nav-dropdown-menu.nav-has-preview > li:not(.nav-preview-item) {
  grid-column: 2;
}

/* Suppression de l'artefact li.nav-mega-links (inutile avec grid) */
.nav-dropdown-menu.nav-has-preview > li.nav-mega-links {
  display: none;
}

/* Supprimer l'ancien logo ::before pour les menus avec preview */
.nav-dropdown-menu.nav-has-preview::before {
  display: none !important;
}

/* Chevron indicateur dropdown */
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255, 255, 255, 0.7);
  margin-left: 0.4rem;
  vertical-align: middle;
  transition: transform 0.2s;
}

.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
  transform: rotate(180deg);
}

/* ---- Bouton CTA dans la nav ---- */
.nav-cta {
  background: var(--color-signal-red) !important;
  color: var(--color-white) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: #a81b21 !important;
}

/* ---- Hamburger (mobile) ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Menu mobile overlay (slide-in sidebar) ---- */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999;
  justify-content: flex-end;
}

.nav-mobile.is-open {
  display: flex;
}

@keyframes slideFromRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Sidebar panel */
.nav-mobile > ul {
  width: min(300px, 85vw);
  height: 100%;
  background: var(--color-navy);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  animation: slideFromRight 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.nav-mobile ul li a {
  display: block;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.nav-mobile ul li a:hover {
  color: var(--color-steel-blue);
  padding-left: 0.5rem;
}

/* Sous-menu mobile */
.nav-mobile .mobile-submenu {
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.25rem;
}

.nav-mobile .mobile-submenu a {
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0.6rem 0;
}

/* Bouton fermer dans la nav mobile */
.nav-mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* ---- Responsive Navigation ---- */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}


/* ============================================================
   2. DÉCALAGE PAGE pour nav fixe
   ============================================================ */

main {
  padding-top: 70px;
}


/* ============================================================
   3. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Arrière-plan hero */
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* Overlay dégradé */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.10);
}

/* Contenu hero */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--color-white);
  width: 100%;
}

.hero-content h1,
.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.45);
  max-width: 800px;
}

.hero-content .hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ---- Hero court (pages intérieures) ---- */
.hero-short {
  min-height: 40vh;
}

.hero-short .hero-content h1,
.hero-short .hero-content h2 {
  font-size: 2.5rem;
}

/* ---- Responsive Hero ---- */
@media (max-width: 768px) {
  .hero-content h1,
  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-short {
    min-height: 30vh;
  }
}

@media (max-width: 480px) {
  .hero-content h1,
  .hero-content h2 {
    font-size: 1.75rem;
  }

  .hero-content {
    padding: 3rem 1rem;
  }
}


/* ============================================================
   4. FOOTER — .site-footer
   ============================================================ */

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

/* Grille footer 4 colonnes */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

/* Colonne branding */
.footer-logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo img {
  height: 56px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 6px 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.20);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.footer-logo img:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.30);
  transform: translateY(-1px);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 260px;
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.footer-socials a:hover {
  background: var(--color-signal-red);
  transform: translateY(-2px);
}

/* Coordonnées dans le footer */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
  color: var(--color-steel-blue);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---- Barre basse footer ---- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* ---- Responsive Footer ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}


/* ============================================================
   5. BREADCRUMBS
   ============================================================ */

/* Fil d'Ariane — badge frosted-glass sur le hero sombre */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  display: inline-flex;
  background: rgba(27, 42, 74, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.25rem;
}

.breadcrumb ol,
.breadcrumb ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

/* Chevron separator */
.breadcrumb li + li::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  margin: 0 0.4rem;
}

/* Home icon on first link only */
.breadcrumb li:first-child a::before {
  content: '\f015';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.35rem;
  font-size: 0.7rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Page courante */
.breadcrumb [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

/* Legacy support */
.breadcrumb-sep { display: none; }
.breadcrumb-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }


/* ============================================================
   6. PAGE WRAPPER ET STRUCTURE
   ============================================================ */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-wrapper main {
  flex: 1;
}

/* Séparateur de section stylisé */
.section-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--color-royal-blue),
    var(--color-navy),
    var(--color-signal-red)
  );
}

/* Zone de contenu principal de page intérieure */
.page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Layout 2 colonnes (contenu + sidebar) */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(70px + 1.5rem);
}

@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}


/* ============================================================
   7. SECTION DE FOND DÉGRADÉ HERO
   ============================================================ */

.hero-gradient {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1e3a6e 60%, #2456a4 100%);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 80vh;
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1rem;
  }
}


/* ============================================================
   8. BANNIÈRE D'ANNONCE (topbar)
   ============================================================ */

.topbar {
  background: var(--color-signal-red);
  color: var(--color-white);
  text-align: center;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}

.topbar a {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 600;
}

/* Quand une topbar est présente, décaler la nav */
body.has-topbar .site-nav {
  top: var(--topbar-height, 36px);
}

body.has-topbar main {
  padding-top: calc(70px + var(--topbar-height, 36px));
}


/* ============================================================
   9. GLASSMORPHISM NAV — État scrolled amélioré
   ============================================================ */

/* Transition douce pour tous les états nav */
.site-nav {
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              box-shadow 0.4s ease, padding 0.3s ease;
}

/* État verre dépoli au scroll */
.site-nav.scrolled {
  background: var(--nav-glass-bg, rgba(27, 42, 74, 0.90));
  backdrop-filter: blur(var(--nav-glass-blur, 20px));
  -webkit-backdrop-filter: blur(var(--nav-glass-blur, 20px));
  border-bottom: 1px solid var(--nav-glass-border, rgba(255,255,255,0.08));
  box-shadow: 0 2px 24px rgba(27, 42, 74, 0.20);
}

/* Indicateur de page active avec underline animé */
.nav-menu > li > a[aria-current="page"] {
  position: relative;
  background: rgba(255, 255, 255, 0.10);
}

.nav-menu > li > a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-signal-red), var(--color-royal-blue));
  border-radius: var(--radius-full);
  transform: scaleX(1);
  transform-origin: left;
}

/* Underline animé sur hover (tous les liens nav) */
.nav-menu > li > a:not(.nav-cta) {
  position: relative;
}

.nav-menu > li > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out);
}

.nav-menu > li > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

/* Dropdown glass */
.nav-dropdown-menu {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(27, 42, 74, 0.08);
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.18);
}

/* Dropdown item hover — accent gauche par défaut */
.nav-dropdown-menu a:hover {
  background: rgba(36,86,164,0.07);
  color: var(--color-royal-blue);
  padding-left: 1.25rem;
  border-left-color: var(--color-royal-blue);
  font-weight: 600;
}

/* Séparateurs entre liens */
.nav-dropdown-menu li:not(.nav-preview-item) + li:not(.nav-preview-item) > a {
  border-top: 1px solid rgba(27,42,74,0.06);
}

/* Animation cascade d'entrée */
@keyframes slideInMenu {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item) {
  animation: slideInMenu 0.22s ease forwards;
  opacity: 0;
}
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item):nth-child(2),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item):nth-child(2) { animation-delay: 0.04s; }
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item):nth-child(3),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item):nth-child(3) { animation-delay: 0.08s; }
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item):nth-child(4),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item):nth-child(4) { animation-delay: 0.12s; }
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item):nth-child(5),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item):nth-child(5) { animation-delay: 0.16s; }
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item):nth-child(6),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item):nth-child(6) { animation-delay: 0.20s; }
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item):nth-child(7),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item):nth-child(7) { animation-delay: 0.24s; }
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item):nth-child(8),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item):nth-child(8) { animation-delay: 0.28s; }
.nav-dropdown:hover .nav-dropdown-menu li:not(.nav-preview-item):nth-child(9),
.nav-dropdown:focus-within .nav-dropdown-menu li:not(.nav-preview-item):nth-child(9) { animation-delay: 0.32s; }

/* Hover couleur par entité */
.nav-dropdown:has(a[href*="moha-com"]) .nav-dropdown-menu a:hover {
  background: rgba(204,34,41,0.07);
  color: #CC2229;
  border-left-color: #CC2229;
}
.nav-dropdown:has(a[href*="safety-voyages"]) .nav-dropdown-menu a:hover {
  background: rgba(36,86,164,0.07);
  color: #2456A4;
  border-left-color: #2456A4;
}
.nav-dropdown:has(a[href*="residences-safety"]) .nav-dropdown-menu a:hover {
  background: rgba(28,124,116,0.07);
  color: #1C7C74;
  border-left-color: #1C7C74;
}

/* CTA nav amélioré */
.nav-cta {
  background: linear-gradient(135deg, var(--color-signal-red), #a81b21) !important;
  box-shadow: var(--glow-red) !important;
  transition: all 0.25s var(--ease-out) !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #a81b21, #7a0f15) !important;
  box-shadow: var(--glow-red-strong) !important;
  transform: translateY(-2px) !important;
}


/* ============================================================
   10. HERO AMÉLIORÉ — Overlay, formes, slide indicator
   ============================================================ */

/* Overlay hero plus sophistiqué (multi-stop gradient) */
.hero-overlay {
  background: var(--gradient-hero-groupe, linear-gradient(160deg, rgba(27,42,74,0.28) 0%, rgba(27,42,74,0.12) 50%, rgba(36,86,164,0.04) 100%));
}

/* Ombre cinématique sur le titre hero */
.hero-content h1,
.hero-content h2 {
  text-shadow: var(--shadow-hero, 0 4px 24px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.5));
}

/* Image hero : zoom léger initial (Ken Burns via JS) */
.hero-bg img {
  transform-origin: center center;
  will-change: transform;
}

/* Hero photo background (pages intérieures) */
.hero-photo-bg {
  position: relative;
  min-height: 40vh;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-groupe);
  z-index: 1;
}

/* Context entity overlay */
.entity-mohacom .hero-photo-bg::before,
.entity-mohacom.hero-photo-bg::before {
  background: var(--gradient-hero-mohacom);
}

.entity-residences .hero-photo-bg::before,
.entity-residences.hero-photo-bg::before {
  background: var(--gradient-hero-residences);
}

.entity-voyages .hero-photo-bg::before,
.entity-voyages.hero-photo-bg::before {
  background: var(--gradient-hero-svs);
}

.hero-photo-bg .hero-content {
  position: relative;
  z-index: 2;
}

/* ---- Ligne décorative sous le h1 dans les hero courts ---- */
.hero-title-accent {
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-signal-red), var(--color-royal-blue));
  border-radius: var(--radius-full);
  margin-top: 0.875rem;
  transition: width 0.8s var(--ease-out);
}

.hero-content:not([class*="invisible"]) .hero-title-accent {
  width: 64px;
}


/* ============================================================
   11. FOOTER AMÉLIORÉ
   ============================================================ */

/* Wave SVG separator + gradient line au top du footer */
.site-footer {
  position: relative;
  border-top: none;
  margin-top: 60px; /* espace pour la wave */
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,52 1440,48 L1440,60 L0,60 Z' fill='%231B2A4A'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* Section CTA pré-footer */
.footer-cta-band {
  background: linear-gradient(135deg, rgba(36,86,164,0.08), rgba(204,34,41,0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-cta-band p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-body-lg);
  margin-bottom: 1.25rem;
}

/* Icônes sociales plus grandes avec hover gradient */
.footer-socials a {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, var(--color-signal-red), #a81b21);
  transform: translateY(-3px);
  box-shadow: var(--glow-red);
}

/* Footer column headings avec underline reveal */
.footer-col h4 {
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-signal-red);
  border-radius: var(--radius-full);
}

/* Hover sur liens footer plus visible */
.footer-col ul li a:hover {
  color: var(--color-white);
  padding-left: 0.4rem;
  transition: color 0.2s, padding-left 0.2s;
}

/* Back to top glass */
.back-to-top button {
  background: var(--glass-bg-medium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--color-white);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.back-to-top button:hover {
  background: var(--color-signal-red);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--glow-red);
}


/* ============================================================
   12. UTILITAIRES DE MISE EN PAGE AVANCÉS
   ============================================================ */

/* Gradient mesh background pour sections */
.section-mesh {
  background-image: var(--gradient-mesh-light);
}

/* Alias du plan d'exécution */
.section-gradient-mesh {
  background-image: var(--gradient-mesh-light);
  position: relative;
}

.section-mesh-warm {
  background-image: var(--gradient-mesh-warm);
}

/* Photo-text layout amélioré */
.photo-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.photo-text-section.reverse {
  direction: rtl;
}

.photo-text-section.reverse > * {
  direction: ltr;
}

.photo-text-section .section-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

/* Décoration photo (pseudo-élément offset) */
.photo-text-section .section-photo::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 2px solid rgba(36, 86, 164, 0.15);
  border-radius: var(--radius-xl);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .photo-text-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .photo-text-section.reverse {
    direction: ltr;
  }
}

/* ============================================================
   SECTION SEPARATORS — Wave, Diagonal, Bottom
   ============================================================ */

/* Wave SVG separator en bas de la section */
.section-wave {
  position: relative;
  overflow: visible;
}

.section-wave::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 42' preserveAspectRatio='none'%3E%3Cpath d='M0,21 C240,42 480,0 720,21 C960,42 1200,0 1440,21 L1440,42 L0,42 Z' fill='%23f4f6fa'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

/* Clip diagonal bas (section suivante visible en biais) */
.section-diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  padding-bottom: calc(var(--space-section) + 40px);
}

/* Clip diagonal haut */
.section-diagonal-top {
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-section) + 40px);
}

/* Both diagonals */
.section-diagonal-both {
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
  padding-top: calc(var(--space-section) + 40px);
  padding-bottom: calc(var(--space-section) + 40px);
}

@media (max-width: 768px) {
  .section-diagonal-bottom,
  .section-diagonal-top,
  .section-diagonal-both {
    clip-path: none;
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }
  .section-wave::after { display: none; }
}

/* ============================================================
   LOGO FRAME — Encadrement JPEG sur fonds sombres (V2)
   Usage: <div class="logo-frame"><img src="logo.jpeg"></div>
   ============================================================ */
.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 4px 12px;
  box-shadow: var(--shadow-sm, 0 1px 6px rgba(0,0,0,0.12));
  transition: box-shadow 0.2s ease;
}

.logo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.logo-frame:hover {
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.18));
}

@media (prefers-reduced-motion: reduce) {
  .logo-frame { transition: none; }
}
