/* ============================================
   Voyage-en-ligne.com - Main Stylesheet
   Modern Travel Website - Light Theme
   Couleurs : bleu océan & orange coucher de soleil
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0077b6;
  --primary-dark: #005f8d;
  --primary-light: #00a8e8;
  --secondary: #e85d04;
  --secondary-dark: #c44b03;
  --accent-gold: #fca311;
  --accent-gold-light: #fdb940;
  --accent-green: #2e7d32;
  --bg: #fafafa;
  --bg-white: #ffffff;
  --bg-light: #f5f7fa;
  --bg-section: #eef3f8;
  --text: #1a1a2e;
  --text-light: #555770;
  --text-muted: #8e8ea0;
  --border: #e0e4ea;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.9rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Navigation --- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.3rem;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo span {
  color: var(--primary);
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(0, 119, 182, 0.06);
}

.main-nav a i {
  margin-right: 5px;
  font-size: 0.85em;
}

/* Dropdown */
.main-nav .dropdown > a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 6px;
  font-size: 0.75em;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,30,60,0.35) 0%, rgba(0,30,60,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-small {
  height: 350px;
}

.hero-small h1 {
  font-size: 2.2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--text);
}

.btn-gold:hover {
  background: var(--accent-gold-light);
}

.btn i {
  margin-right: 6px;
}

/* --- Editorial Summary (SEO) --- */
.editorial-summary {
  background: var(--bg-white);
  border-left: 4px solid var(--primary);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

.editorial-summary strong {
  color: var(--text);
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.3rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body h3 a {
  color: var(--text);
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  color: var(--text-light);
  font-size: 0.93rem;
  margin-bottom: 0.8rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-meta i {
  margin-right: 3px;
}

.card-tag {
  display: inline-block;
  background: rgba(0,119,182,0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

/* --- Destination Cards (smaller) --- */
.card-grid-destinations {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card-grid-destinations .card-img {
  height: 160px;
}

.card-grid-destinations .card-body {
  padding: 1rem;
}

.card-grid-destinations .card-body h3 {
  font-size: 1.1rem;
}

/* --- Article Content --- */
.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 20px;
}

.article-content h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--primary-dark);
}

.article-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  margin-top: 1.5rem;
  color: var(--primary);
}

.article-content ul, .article-content ol {
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.3rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #fffde7;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.styled-table thead {
  background: var(--primary);
  color: #fff;
}

.styled-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.styled-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.styled-table tbody tr:hover {
  background: var(--bg-light);
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Image Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.85rem;
}

/* --- FAQ Section --- */
.faq-section {
  background: var(--bg-light);
  padding: 3rem 0;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.3rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question i {
  color: var(--primary);
  transition: transform var(--transition);
  font-size: 0.85rem;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.3rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 1.3rem 1rem;
  max-height: 500px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* --- Info Box --- */
.info-box {
  background: #e3f2fd;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.info-box i {
  color: var(--primary);
  margin-right: 6px;
}

.warning-box {
  background: #fff3e0;
  border-left-color: #ef6c00;
}

.warning-box i {
  color: #ef6c00;
}

.success-box {
  background: #e8f5e9;
  border-left-color: #2e7d32;
}

.success-box i {
  color: #2e7d32;
}

/* --- Key Figures Box --- */
.key-figures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.key-figure {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}

.key-figure i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.key-figure .figure-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}

.key-figure .figure-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 0.8rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  margin: 0 0.4rem;
}

/* --- Footer --- */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #aaa;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul a {
  color: #aaa;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent-gold);
}

.footer-col ul a i {
  margin-right: 6px;
  width: 16px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: #777;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 2rem 0;
}

.stat-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Internal Link Cards --- */
.related-links {
  background: var(--bg-light);
  padding: 2rem 0;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}

.link-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
  color: var(--primary);
}

.link-item i {
  font-size: 1.4rem;
  color: var(--primary);
  width: 30px;
  text-align: center;
}

.link-item span {
  font-weight: 500;
  font-size: 0.93rem;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.two-col img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

/* --- Feature list --- */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.8rem;
  position: relative;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.85rem;
}

/* --- Partner Grid --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.partner-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.partner-card h3 {
  margin-bottom: 0.5rem;
}

.partner-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Blog Date Badge --- */
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
}

.date-badge i {
  font-size: 0.72rem;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent-gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.8rem 1rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-top: 0.3rem;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .hero {
    height: 380px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-small {
    height: 280px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .card-grid,
  .card-grid-3,
  .card-grid-2,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .key-figures {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    display: block;
    text-align: center;
  }
  .gap-buttons {
    flex-direction: column;
  }
  .key-figures {
    grid-template-columns: 1fr;
  }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .menu-toggle, .faq-section {
    display: none;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
}
