/**
 * Feuille de style unifiée - Office Notarial SANCHEZ OBRY Carlos Lehman
 * Design notarial de prestige : sobre, moderne, responsive et accessible (WCAG AA).
 */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-dark: #070b14;
  --gold: #c5a059;
  --gold-light: #dfbe79;
  --gold-dark: #9c7a38;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --border: #e2e8f0;
  --border-gold: rgba(197, 160, 89, 0.35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --font-serif: "Playfair Display", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* --- Typographie --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

.s, .highlight {
  color: var(--gold-dark);
  font-weight: 600;
}

.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* --- Conteneur global --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  color: #fff;
  transition: all 0.3s ease;
  overflow: visible !important;
}

.site-header .container {
  position: relative;
  overflow: visible !important;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
  overflow: visible !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.brand-seal {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand:hover .brand-seal {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  height: 72px;
  list-style: none;
  gap: 1.35rem;
}

/* Sur les grands écrans, le lien Home est masqué car le logo joue ce rôle */
.nav-item-home {
  display: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #e2e8f0;
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.has-dropdown:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown standard */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #e2e8f0;
  padding: 0 0.4rem;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  min-width: 230px;
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999999 !important;
}

/* Pont invisible pour ne jamais perdre le survol de la souris */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--gold-light);
  padding-left: 1.5rem;
}

/* Mega Menu : Centré au milieu et large pour que toutes les sections restent sur la même ligne */
.has-mega {
  position: static !important;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 1140px;
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: 210px 1fr 1fr 1.1fr; /* 4 colonnes côte à côte sur la MÊME LIGNE */
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999999 !important;
}

/* Pont invisible pour assurer la continuité du survol */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.has-mega:hover .mega-menu,
.has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-brand-col {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mega-brand-col img {
  max-width: 140px;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
}

.mega-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.mega-links {
  list-style: none;
}

.mega-links a {
  display: block;
  padding: 0.45rem 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
}

.mega-links a:hover {
  color: var(--gold-light);
  transform: translateX(5px);
}

/* Nav Actions (Langue + Mobile Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2px 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-switch a {
  padding: 4px 9px;
  border-radius: 14px;
  color: #cbd5e1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.lang-switch a.active {
  background: var(--gold);
  color: #fff;
}

.lang-switch a:hover:not(.active) {
  color: #fff;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.45);
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* --- Fil d'Ariane (Breadcrumb) --- */
.breadcrumb-nav {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--gold-dark);
}

.breadcrumb-sep {
  width: 14px;
  height: 14px;
  fill: var(--gold);
  margin-left: 6px;
  flex-shrink: 0;
}

.breadcrumb-item.active span {
  color: var(--gold-dark);
  font-weight: 600;
}

/* --- Hero Banner (Image rendue bien plus visible) --- */
.hero-banner {
  position: relative;
  z-index: 1;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 4.5rem 1.25rem;
}

/* Overlay allégé pour que l'image de fond soit bien visible */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.40) 0%, rgba(15, 23, 42, 0.62) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(197, 160, 89, 0.18) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 30px;
  color: var(--gold-dark) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.hero-banner .hero-badge {
  background: rgba(197, 160, 89, 0.22) !important;
  border: 1px solid var(--gold) !important;
  color: #fff !important;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  margin-bottom: 1.25rem;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-desc {
  font-size: 1.15rem;
  color: #f8fafc;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

/* --- Sections génériques --- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* Grilles */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Grille Excellence : STRICTEMENT MAX 3 PAR LIGNE */
.grid-excellence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Cartes Avantages / Atouts (Accueil) */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 0;
}

.feature-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

/* Cartes Services (Grille 3) */
.service-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
  height: 240px;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.service-tile:hover img {
  transform: scale(1.05);
  opacity: 0.65;
}

.service-tile-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.88) 100%);
}

.service-tile-title {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Blocs contenu */
.content-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.content-box ul {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.content-box ul li {
  margin-bottom: 0.5rem;
}

/* --- Tableaux d'honoraires (horaire.php) --- */
.table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
  margin: 2rem 0;
  overflow: hidden;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fee-table th {
  background: var(--primary);
  color: var(--gold-light);
  padding: 1rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.fee-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.fee-table tr:nth-child(even) {
  background: #f8fafc;
}

.fee-table tr:hover {
  background: #f1f5f9;
}

.fee-table .price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  font-size: 1rem;
  text-align: right;
}

/* Transformation mobile du tableau des honoraires : passage en blocs superposés */
@media (max-width: 768px) {
  .table-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .fee-table, 
  .fee-table thead, 
  .fee-table tbody, 
  .fee-table tr, 
  .fee-table td {
    display: block;
    width: 100%;
  }

  .fee-table thead {
    display: none;
  }

  .fee-table tr {
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
  }

  .fee-table tr:nth-child(even) {
    background: #ffffff;
  }

  .fee-table td {
    padding: 0.35rem 0;
    border: none;
  }

  .fee-table .price {
    text-align: left;
    margin-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-dark);
    display: inline-block;
    padding: 6px 14px;
    background: rgba(197, 160, 89, 0.12);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 160, 89, 0.3);
  }
}

/* Formulaire de contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: #f8fafc;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: block;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}

.alert-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.contact-info-card {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card h3 {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e2e8f0;
}

.contact-info-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--gold);
  margin-top: 3px;
}

/* --- Pied de page --- */
.site-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 2px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-links a {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: var(--gold);
  background: rgba(197, 160, 89, 0.15);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .grid-2, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid-3, .grid-excellence {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .grid-3, .grid-excellence {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-banner {
    min-height: 380px;
    padding: 3rem 1rem;
  }

  .content-box, .contact-wrapper {
    padding: 1.5rem;
  }

  /* Logo plus compact sur petit écran pour éviter tout débordement */
  .brand {
    gap: 8px;
  }

  .brand-seal {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  /* Sur très petits écrans (< 480px), masquer le sous-titre pour libérer de l'espace */
  .brand-sub {
    display: none;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .lang-switch {
    padding: 2px 2px;
    font-size: 0.72rem;
  }

  .lang-switch a {
    padding: 3px 6px;
  }
}

/* Menu Mobile Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000000 !important;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: var(--primary);
  z-index: 1000001 !important;
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  margin-bottom: 1.25rem;
  line-height: 1;
  float: right;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.mobile-nav-links {
  list-style: none;
  clear: both;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links a {
  display: block;
  padding: 0.9rem 0;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav-links a:hover {
  color: var(--gold-light);
}

.mobile-submenu {
  list-style: none;
  padding-left: 1rem;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-submenu a {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: #94a3b8;
}


/* --- Ajustements Typographie & Responsivité Ultra-Mobile (jusqu'à 280px) --- */
@media (max-width: 600px) {
  .hero-banner {
    min-height: 320px;
    padding: 2.75rem 0.85rem;
  }
  .hero-title {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem;
    word-break: break-word;
  }
  .hero-desc {
    font-size: 0.92rem !important;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  h1 { font-size: clamp(1.3rem, 5vw, 1.7rem) !important; }
  h2 { font-size: clamp(1.15rem, 4.5vw, 1.45rem) !important; }
  h3 { font-size: clamp(1rem, 3.8vw, 1.25rem) !important; }
  .section-title { font-size: clamp(1.2rem, 4.5vw, 1.45rem) !important; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 1.75rem; }
  
  .content-box, .contact-wrapper {
    padding: 1.25rem 0.85rem !important;
  }
}

/* Écrans très étroits (<= 320px et 280px comme Galaxy Fold) */
@media (max-width: 340px) {
  .container {
    padding: 0 0.4rem !important;
  }
  .hero-banner {
    padding: 2rem 0.5rem;
    min-height: 290px;
  }
  .hero-title {
    font-size: 1.12rem !important;
  }
  .hero-desc {
    font-size: 0.85rem !important;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    letter-spacing: 1px;
  }
  .brand-title {
    font-size: 0.88rem !important;
  }
  .brand-seal {
    width: 28px !important;
    height: 28px !important;
  }
  .lang-switch a {
    padding: 3px 5px !important;
    font-size: 0.7rem;
  }
  .contact-wrapper {
    padding: 0.85rem 0.4rem !important;
  }
  .form-control {
    padding: 0.6rem 0.5rem !important;
    font-size: 0.85rem !important;
  }
  .contact-info-card {
    padding: 1rem 0.6rem !important;
  }
  .btn {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.85rem !important;
  }
}
