/* ============================================
   CSEVOYAGES.COM — CSS Global Partagé
   Version optimisée — 2025
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* ---------- VARIABLES ---------- */
:root {
  --primary: #8B2855;
  --primary-dark: #6B1E42;
  --primary-light: #C5607D;
  --accent: #C5607D;
  --text-dark: #2c3e50;
  --text-mid: #555;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e8e8e8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --font-heading: "Playfair Display", serif;
  --font-sans: "Raleway", sans-serif;
  --font-body: "Raleway", sans-serif;
  --max-width: 1380px;
  --header-height: 72px;
}

/* ---------- RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.65;
  background: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 600 !important;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  width: 100%;
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color var(--transition);
}
.site-logo:hover { color: var(--primary-dark); }
.site-logo span { color: var(--primary-light); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(139, 40, 85, 0.07);
}

.nav-cta {
  background: transparent !important;
  font-weight: 700 !important;
  border: none !important;
}
.nav-cta:hover {
  background: rgba(0,0,0,0.06) !important;
  color: var(--primary) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  z-index: 1010;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 1050px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    gap: 0.25rem;
    border-top: 2px solid var(--primary);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-cta { text-align: center; }
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ---------- HERO ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 3.5rem 2rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.1rem; opacity: 0.92; max-width: 680px; margin: 0 auto; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.container-sm { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; }

/* ---------- SECTION TITLES ---------- */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: linear-gradient(90deg, #fdf2f6 0%, #fff 50%, #fdf2f6 100%);
  border-top: 1px solid rgba(139, 40, 85, 0.1);
  border-bottom: 1px solid rgba(139, 40, 85, 0.1);
  padding: 1.2rem 2rem;
}
.trust-items {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}
.trust-item {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-item::before {
  content: '✓';
  display: inline-flex;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- CARDS / GRID ---------- */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.trip-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.trip-card-link { cursor: pointer; }
.trip-card-link:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }

.trip-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.trip-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.trip-card:hover .trip-image-wrapper img { transform: scale(1.06); }

.trip-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.trip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.trip-card:hover .trip-image img { transform: scale(1.06); }

.trip-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.trip-content h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 700;
}
.trip-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}
.trip-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ---------- BADGES ---------- */
.category-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.category-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: white;
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}
.promo-badge {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.promo-price {
  color: #e74c3c;
  font-size: 1.2rem;
  font-weight: 800;
}

/* ---------- BUTTONS & LINKS ---------- */
.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-align: center;
}
.cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 40, 85, 0.35);
}

.cta-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.cta-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---------- HOW IT WORKS / STEPS ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.step { text-align: center; }
.step-icon {
  width: 76px;
  height: 76px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(139, 40, 85, 0.3);
}
.step h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 0.75rem; }
.step p { color: var(--text-light); line-height: 1.7; font-size: 0.95rem; }

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.benefit {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit .step-icon { margin: 0 auto 1.25rem; }
.benefit h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0.75rem; }
.benefit p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ---------- SEO TEXT BLOCK ---------- */
.seo-block {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}
.seo-block-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}
.seo-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.seo-link {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}
.seo-link:hover { opacity: 0.7; }
.seo-right p {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.seo-right p:last-child { margin-bottom: 0; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  margin-top: 5rem;
  border-top: 4px solid var(--primary-light);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem 4rem;
}
.footer-brand .footer-logo {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.footer-brand .footer-logo span { color: var(--primary-light); }
.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  max-width: 42ch;
}
.footer-cta-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-cta-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-cta-links a:hover { color: white; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul { padding: 0; list-style: none; }
.footer-col li {
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary-light); }
.footer-partners {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 2rem 2.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: transform var(--transition);
}
.footer-partner-item:hover { transform: translateY(-3px); }
.footer-partner-logo {
  background: white;
  border-radius: 10px;
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: box-shadow var(--transition);
}
.footer-partner-item:hover .footer-partner-logo {
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.footer-partner-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-partner-caption {
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
@media (max-width: 520px) {
  .footer-partners { gap: 1.5rem; }
  .footer-partner-logo img { height: 44px; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
  text-align: center;
}
.footer-bottom p {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom strong { color: rgba(255,255,255,0.55); font-weight: 600; }
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: none; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 40, 85, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease both; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }
.fade-in-4 { animation-delay: 0.4s; }

/* ---------- GRILLE 3 COLONNES RESPONSIVE ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .steps-grid, .benefits-grid { grid-template-columns: 1fr; }
  .trip-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .seo-block { padding: 2.5rem 1.5rem; }
  .seo-block-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .container { padding: 2.5rem 1.25rem; }
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 640px) {
  .trip-grid { grid-template-columns: 1fr; }
  .steps-grid, .benefits-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
  .trust-bar { padding: 1rem; }
  .trust-item { font-size: 0.82rem; }
  .container { padding: 2rem 1rem; }
  .container-sm { padding: 2rem 1rem; }
  .section-lead { padding: 1rem 1.25rem; font-size: 0.92rem; }
  .cta-primary { padding: 0.75rem 1.5rem; font-size: 0.95rem; width: 100%; text-align: center; }
  .seo-block { padding: 2rem 1rem; }
}

/* ---------- Mobile : section sections wrapper padding ---------- */
@media (max-width: 480px) {
  .section-lead { border-left-width: 3px; }
  .benefit { padding: 1.5rem 1.25rem; }
  .step { padding: 0 0.5rem; }
}

/* ---------- Section lead (bloc sémantique sous benefits) ---------- */
.section-lead {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-mid);
}

/* ---------- FAQ section (details/summary) ---------- */
.faq-section { padding: 4rem 0; background: var(--bg-light); }
.faq-section h2 { text-align: center; margin-bottom: .5rem; }
.faq-section > .container > p { text-align: center; color: var(--text-mid); margin-bottom: 2rem; }
.faq-section details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-section details:first-of-type { border-top: 1px solid var(--border); }
.faq-section summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--text-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--primary); flex-shrink: 0; }
.faq-section details[open] summary::after { content: '−'; }
.faq-section details[open] summary { color: var(--primary); margin-bottom: .75rem; }
.faq-section details p { font-size: .95rem; color: var(--text-mid); line-height: 1.75; padding-right: 2rem; }

/* ---------- SKIP TO CONTENT (accessibility) ---------- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  z-index: 9999;
}
.skip-to-content:focus { left: 1rem; }
