/* ============================================================
   DIWAN ADVISORY — Styles communs pour pages secondaires
   ============================================================ */

:root {
  --bleu-nuit: #0a1628;
  --bleu-profond: #142844;
  --bleu-clair: #1e3a5f;
  --or: #c9a55c;
  --or-clair: #e0c285;
  --creme: #f5f1ea;
  --gris-clair: #e8e4dc;
  --texte: #2a3548;
  --texte-clair: #5a6478;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--bleu-nuit);
  letter-spacing: -0.01em;
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 1rem 4rem;
  background: rgba(245, 241, 234, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--bleu-nuit);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: opacity 0.3s;
}

.logo:hover { opacity: 0.85; }

.logo img {
  width: 45px;
  height: 45px;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .logo-main {
  font-size: 1.4rem;
  font-weight: 600;
}

.logo-text .logo-sub {
  font-size: 0.65rem;
  color: var(--or);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-top: 2px;
}

.logo span { color: var(--or); }

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav a {
  color: var(--texte);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--or);
  transition: width 0.3s;
}

nav a:hover { color: var(--bleu-nuit); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--bleu-nuit); }
nav a.active::after { width: 100%; }

/* ==================== SÉLECTEUR DE LANGUE - PILL DORÉ SIGNATURE ==================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--or);
  border-radius: 20px;
  padding: 4px;
  gap: 2px;
  margin-right: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lang-switcher:hover {
  box-shadow: 0 4px 12px rgba(201, 165, 92, 0.3);
  transform: translateY(-1px);
}
.lang-switcher a {
  color: var(--bleu-nuit);
  text-decoration: none;
  padding: 4px 11px;
  border-radius: 16px;
  transition: all 0.2s;
  text-transform: uppercase;
  font-weight: 500;
}
.lang-switcher a:hover {
  background: rgba(10, 22, 40, 0.08);
}
.lang-switcher a.active {
  background: var(--bleu-nuit);
  color: var(--or);
  font-weight: 600;
}
.lang-switcher a.active:hover {
  background: var(--bleu-nuit);
}
/* L'icône globe n'est plus utilisée dans le style Pill, on la masque */
.lang-icon {
  display: none;
}
@media (max-width: 768px) {
  .lang-switcher {
    margin-right: 0.5rem;
    padding: 3px;
    font-size: 0.7rem;
  }
  .lang-switcher a { padding: 3px 8px; }
}

/* ==================== HERO PAGE ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--bleu-profond) 100%);
  color: var(--creme);
  padding: 10rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 165, 92, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 165, 92, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--or);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: rgba(245, 241, 234, 0.6);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--or); }
.breadcrumb span { color: var(--or); margin: 0 0.5rem; }

.page-hero h1 {
  font-size: 3.5rem;
  color: var(--creme);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.page-hero h1 em {
  color: var(--or);
  font-style: italic;
  font-weight: 300;
}

.page-hero .subtitle {
  font-size: 1.2rem;
  color: rgba(245, 241, 234, 0.75);
  max-width: 750px;
  font-weight: 300;
  line-height: 1.7;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
  padding: 5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.8rem;
  color: var(--or);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  display: block;
}

.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.content-section h2 em {
  font-style: italic;
  color: var(--or);
  font-weight: 400;
}

.content-section h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--bleu-nuit);
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--texte);
  margin-bottom: 1.5rem;
}

.content-section .lead {
  font-size: 1.2rem;
  color: var(--texte);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.content-section ul, .content-section ol {
  margin: 1.5rem 0 2rem 0;
  padding-left: 1.5rem;
}

.content-section li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.7rem;
  color: var(--texte);
}

.content-section blockquote {
  border-left: 3px solid var(--or);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(201, 165, 92, 0.05);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--bleu-nuit);
  line-height: 1.6;
}

/* ==================== CARDS / GRID ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border-top: 3px solid var(--or);
  box-shadow: 0 2px 20px rgba(10, 22, 40, 0.04);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.1);
}

.feature-card .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--or);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--bleu-nuit);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--texte-clair);
  line-height: 1.6;
}

/* ==================== KEY STATS ==================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 3rem 2rem;
  background: var(--bleu-nuit);
  color: var(--creme);
  border-radius: 6px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--or);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--bleu-profond) 100%);
  color: var(--creme);
  padding: 5rem 4rem;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--creme);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section h2 em {
  color: var(--or);
  font-style: italic;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(245, 241, 234, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: var(--or);
  color: var(--bleu-nuit);
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: all 0.3s;
}

.cta-button:hover {
  background: var(--or-clair);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 165, 92, 0.3);
}

.cta-button.secondary {
  background: transparent;
  border: 1px solid var(--or);
  color: var(--or);
  margin-left: 1rem;
}

.cta-button.secondary:hover {
  background: var(--or);
  color: var(--bleu-nuit);
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--bleu-nuit);
  color: rgba(245, 241, 234, 0.6);
  padding: 3rem 4rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

footer a {
  color: var(--or);
  text-decoration: none;
}
footer a:hover { color: var(--or-clair); }

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(245, 241, 234, 0.7);
  margin: 0 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  header { padding: 1rem 1.5rem; }
  .logo img { width: 38px; height: 38px; }
  .logo-text .logo-main { font-size: 1.15rem; }
  .logo-text .logo-sub { font-size: 0.55rem; letter-spacing: 0.15em; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .page-hero h1 { font-size: 2.2rem; }
  .page-hero .subtitle { font-size: 1.05rem; }
  .content-section { padding: 3rem 1.5rem; }
  .content-section h2 { font-size: 1.8rem; }
  .content-section h3 { font-size: 1.3rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-row { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
  .stat-num { font-size: 2.5rem; }
  .cta-section { padding: 3rem 1.5rem; }
  .cta-section h2 { font-size: 1.8rem; }
  .cta-button.secondary { display: inline-block; margin-left: 0; margin-top: 1rem; }
  nav ul { display: none; }
  footer { padding: 2rem 1.5rem; }
  .footer-links a { display: inline-block; margin: 0.3rem 0.5rem; }
}
