/* ============================================
   atout-visa.fr — Visa information portal
   White-header, navy/gold, Enfold-inspired
   ============================================ */

:root {
  --navy: #1e2d3d;
  --navy-deep: #152232;
  --navy-mid: #2c4a6b;
  --gold: #c8942a;
  --gold-light: #dbb053;
  --gold-bg: #faf3e5;
  --white: #ffffff;
  --off-white: #fdfcfa;
  --cream: #f7f5f0;
  --text: #2a2a2a;
  --text-muted: #5e6872;
  --border: #e2ddd5;
  --border-light: #eeebe5;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --content-width: 720px;
  --radius: 3px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header (white bar, navy text) --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  text-decoration: none;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.logo-name strong {
  font-weight: 700;
  color: var(--gold);
}

.logo-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: var(--cream);
  color: var(--navy-mid);
}

.site-nav a.active {
  background: var(--navy);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* --- Hero (dark overlay, gold CTA) --- */
.hero {
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(200,148,42,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(44,74,107,0.3) 0%, transparent 50%),
    linear-gradient(160deg, var(--navy-deep) 0%, #1a3048 40%, var(--navy) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 4rem;
  max-width: 680px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

/* --- Destinations (flag cards) --- */
.home-destinations {
  padding: 3.5rem 0;
  background: var(--off-white);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.section-title--light {
  color: var(--white);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.dest-grid {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dest-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dest-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(200,148,42,0.12);
}

.dest-flag {
  font-size: 1.3rem;
  line-height: 1;
}

/* --- Services (dark navy section) --- */
.home-services {
  background: var(--navy);
  padding: 3.5rem 0 4rem;
}

.home-services .section-title {
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s, border-color 0.2s;
}

.service-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(200,148,42,0.4);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.75;
}

/* --- Home content --- */
.home-content {
  padding: 3rem 0 4rem;
  background: var(--off-white);
}

/* --- Page banner (inner pages) --- */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-banner .page-lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  max-width: var(--content-width);
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.3rem; }

/* --- Card grid (list pages) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 0 3px 12px rgba(30,45,61,0.08);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
}

/* --- Page layout (single) --- */
.page-single {
  padding: 2.5rem 0 4rem;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}

.page-main {
  min-width: 0;
}

/* --- Page list --- */
.page-list {
  padding: 2.5rem 0 4rem;
}

.list-intro {
  max-width: var(--content-width);
  margin-bottom: 1.5rem;
}

/* --- Sidebar --- */
.sidebar-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sidebar-block h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.sidebar-block ul { list-style: none; }

.sidebar-block li { margin: 0.35rem 0; }

.sidebar-block a {
  color: var(--navy-mid);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.sidebar-block a:hover {
  color: var(--gold);
}

/* --- Table of Contents --- */
.toc {
  background: var(--gold-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.toc nav ul { list-style: none; margin: 0; padding: 0; }
.toc nav li { margin: 0.2rem 0; }
.toc nav a { color: var(--navy-mid); text-decoration: none; font-size: 0.88rem; }
.toc nav a:hover { color: var(--gold); text-decoration: underline; }
.toc nav ul ul { padding-left: 1rem; }

/* --- Page content typography --- */
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -0.01em;
}

.page-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--navy);
}

.page-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
  color: var(--text);
}

.page-content p {
  margin-bottom: 1.1rem;
}

.page-content ul, .page-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.page-content li { margin-bottom: 0.3rem; }

.page-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--gold-bg);
  color: var(--text-muted);
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.page-content th, .page-content td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}

.page-content th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.page-content tr:nth-child(even) { background: var(--cream); }

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.page-content a {
  color: var(--navy-mid);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: var(--gold);
}

/* --- Related pages --- */
.related-pages {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-pages h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.related-pages ul { list-style: none; }
.related-pages li { margin: 0.3rem 0; }
.related-pages a { color: var(--navy-mid); text-decoration: none; font-weight: 600; }
.related-pages a:hover { color: var(--gold); }

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { max-width: 360px; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-logo strong { color: var(--gold); }

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.7;
}

.footer-nav ul, .footer-legal-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-nav a, .footer-legal-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover, .footer-legal-nav a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 1.25rem;
  text-align: center;
  opacity: 0.4;
  font-size: 0.78rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-sidebar { order: -1; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .hero-content { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .page-banner h1 { font-size: 1.7rem; }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .card-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .dest-grid {
    justify-content: flex-start;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .site-nav.open ul { display: flex; }
  .site-nav a { padding: 0.65rem 1rem; }
  .nav-toggle { display: block; }
}
