/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #FFFCF7;
  color: #0F2F3E;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  background: #FFFFFF;
  border-bottom: 2px solid #74C4D9;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo {
  width: 48px;
  height: 48px;
  display: block;
}

.logo-small {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #003249;
  letter-spacing: 0.5px;
}

/* Nouveau conteneur à droite du header */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: #003249;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #74C4D9;
}

.btn-nav {
  background: #74C4D9;
  color: #003249 !important;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 800;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-nav:hover {
  background: #52AC7F;
  transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: #EFF7FA;
  border: 1px solid #D7EEF5;
  color: #003249;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.2;
  font-weight: 900;
  color: #003249;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.highlight {
  color: #52AC7F;
  position: relative;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: #4B5D66;
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  margin-bottom: 48px;
}

.hero-note {
  margin-top: 12px;
  font-size: 14px;
  color: #4B5D66;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #E5E5E5;
}

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

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: #003249;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #4B5D66;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 28px;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #003249;
  color: #FFFFFF;
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary:hover {
  background: #00445f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 50, 73, 0.2);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-secondary {
  background: #74C4D9;
  color: #003249;
  padding: 16px 32px;
  font-size: 16px;
}

.btn-secondary:hover {
  background: #52AC7F;
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.how-it-works,
.features {
  padding: 80px 0;
}

.how-it-works {
  background: #FFFFFF;
  border-top: 1px solid #E5E5E5;
  border-bottom: 1px solid #E5E5E5;
}

.section-title {
  font-size: 42px;
  font-weight: 900;
  color: #003249;
  text-align: center;
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 24px;
  font-weight: 800;
  color: #003249;
  margin-bottom: 12px;
}

.step p {
  font-size: 16px;
  color: #4B5D66;
  line-height: 1.6;
}

/* ===== Features Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 18px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #74C4D9;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #003249;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: #4B5D66;
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #74C4D9 0%, #52AC7F 100%);
}

.cta-card {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 40px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta-note {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
  background: #003249;
  color: #FFFFFF;
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #74C4D9;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: #FFFFFF;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  color: #74C4D9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #FFFFFF;
  opacity: 0.7;
}

.footer-bottom a {
  color: #74C4D9;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===== Subscribe Page ===== */
.subscribe-section {
  padding: 80px 0;
  min-height: calc(100vh - 200px);
}

.subscribe-card {
  max-width: 600px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 18px;
  padding: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.subscribe-card h1 {
  font-size: 36px;
  font-weight: 900;
  color: #003249;
  margin-bottom: 16px;
  text-align: center;
}

.subscribe-intro {
  font-size: 16px;
  color: #4B5D66;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: #003249;
  margin-bottom: 8px;
  font-size: 15px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E5E5E5;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #FFFFFF;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #74C4D9;
}

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #4B5D66;
}

.form-submit {
  margin-top: 32px;
  text-align: center;
}

.form-submit .btn {
  width: 100%;
  max-width: 400px;
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: #4B5D66;
  text-align: center;
}

.success-message {
  background: #EAF6EE;
  border: 2px solid #52AC7F;
  color: #256B50;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
}

.success-message h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* ===== Content Pages (FAQ, Previous, Share) ===== */
.content-page {
  padding: 80px 0;
  min-height: calc(100vh - 200px);
}

.content-card {
  max-width: 800px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 18px;
  padding: 48px;
}

.content-header {
  background: #F3FAFD;
  border-bottom: 1px solid #D7EEF5;
  padding: 24px;
  border-radius: 18px 18px 0 0;
  margin: -48px -48px 32px;
}

.content-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: #003249;
  margin-bottom: 8px;
}

.content-header p {
  font-size: 16px;
  color: #4B5D66;
}

.content-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: #003249;
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #003249;
  margin-top: 24px;
  margin-bottom: 12px;
}

.content-body p {
  font-size: 16px;
  color: #4B5D66;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.content-body li {
  font-size: 16px;
  color: #4B5D66;
  line-height: 1.7;
  margin-bottom: 8px;
}

.content-body a {
  color: #003249;
  font-weight: 600;
}

.content-body a:hover {
  color: #52AC7F;
}

.faq-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E5E5E5;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-size: 20px;
  font-weight: 800;
  color: #003249;
  margin-bottom: 12px;
}

.faq-answer {
  font-size: 16px;
  color: #4B5D66;
  line-height: 1.7;
}

.newsletter-item {
  background: #F3FAFD;
  border: 1px solid #D7EEF5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.newsletter-item:hover {
  border-color: #74C4D9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.newsletter-date {
  font-size: 14px;
  font-weight: 700;
  color: #52AC7F;
  margin-bottom: 8px;
}

.newsletter-title {
  font-size: 20px;
  font-weight: 800;
  color: #003249;
  margin-bottom: 8px;
}

.newsletter-excerpt {
  font-size: 15px;
  color: #4B5D66;
  margin-bottom: 16px;
  line-height: 1.6;
}

.newsletter-link {
  color: #003249;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.newsletter-link:hover {
  color: #52AC7F;
}

.share-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.share-button {
  flex: 1;
  min-width: 200px;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.share-button.email {
  background: #003249;
  color: #FFFFFF;
}

.share-button.facebook {
  background: #1877F2;
  color: #FFFFFF;
}

.share-button.twitter {
  background: #1DA1F2;
  color: #FFFFFF;
}

.share-button.whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .steps {
    gap: 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-card h2 {
    font-size: 32px;
  }

  .cta-card p {
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .subscribe-card {
    padding: 32px 24px;
  }

  .subscribe-card h1 {
    font-size: 28px;
  }

  .content-card {
    padding: 32px 24px;
  }

  .content-header {
    margin: -32px -24px 24px;
    padding: 20px;
  }

  .content-header h1 {
    font-size: 26px;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-button {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 20px;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* Force light mode */
@media (prefers-color-scheme: dark) {
  body {
    background: #FFFCF7 !important;
    color: #0F2F3E !important;
  }

  .nav,
  .how-it-works,
  .feature-card,
  .subscribe-card,
  .content-card {
    background: #FFFFFF !important;
  }
}

/* ============================
   NEW HEADER MOBILE + HAMBURGER
   ============================ */

/* Bouton hamburger masqué par défaut (desktop) */
.nav-toggle {
  display: none;
}

/* Masquer la navigation classique sur mobile, garder le CTA */
@media (max-width: 768px) {
  /* Logo : seulement l'icône en portrait */
  .logo-text {
    display: none;
  }

  .nav-content {
    gap: 12px;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .btn-nav {
    margin-right: 4px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
  }

  .nav-toggle__bar {
    width: 22px;
    height: 2px;
    background: #003249;
    border-radius: 2px;
  }

  /* Navigation mobile (menu déroulant) */
  .mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    padding: 8px 0;
    width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #003249;
  }

  .mobile-menu a:hover {
    background: #F3FAFD;
  }
}

/* Afficher le texte du logo en paysage même sur petits écrans */
@media (orientation: landscape) and (max-width: 768px) {
  .logo-text {
    display: inline-block;
  }
}

/* Version Desktop : navigation visible + suppression du hamburger */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .logo-text {
    display: inline-block;
  }

  .nav-links {
    display: flex;
  }
}
