﻿/**
 * style2.css — Landing Page Livret Épargne
 * Mobile-first, responsive, palette bleu marine + violet/indigo
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2d3748;
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BANDEAU PROMOTIONNEL ===== */
.promo-bar {
  background: linear-gradient(135deg, #1a2744 0%, #6c5ce7 100%);
  color: #ffffff;
  padding: 12px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.promo-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 1140px;
  margin: 0 auto;
}

.promo-bar-text {
  font-size: 15px;
  font-weight: 600;
  display: inline;
  line-height: 1.5;
}

.promo-icon {
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
}

.badge-icon {
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
}

.promo-bar-text strong {
  font-weight: 700;
  color: #ffffff;
}

.promo-bar .btn-promo {
  background: #ffffff;
  color: #6c5ce7;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.promo-bar .btn-promo:hover {
  background: #f0edff;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .promo-bar-inner {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
  .promo-bar-text { font-size: 18px; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #1a2744 0%, #2d3a5c 60%, #6c5ce7 100%);
  color: #ffffff;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,92,231,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(162,155,254,0.2);
  border: 1px solid rgba(162,155,254,0.5);
  color: #d4d0ff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span { color: #a29bfe; }

.hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Carte offre dans le hero */
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  flex-shrink: 0;
}

.hero-card-label {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-card-rate {
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.hero-card-rate sup {
  font-size: 24px;
  vertical-align: super;
}

.hero-card-details {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.hero-card-bonus {
  display: inline-block;
  background: #a29bfe;
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .hero { padding: 80px 20px 70px; }
  .hero-inner { flex-direction: row; align-items: center; }
  .hero h1 { font-size: 40px; }
  .hero-subtitle { font-size: 18px; }
  .hero-buttons { flex-direction: row; }
  .hero-card { min-width: 300px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .hero-card-rate { font-size: 72px; }
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: #6c5ce7;
  color: #ffffff;
}

.btn-primary:hover {
  background: #5a4bd1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.1);
}

.btn-gold {
  background: #6c5ce7;
  color: #ffffff;
}

.btn-gold:hover {
  background: #5a4bd1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.4);
}

/* ===== NAVIGATION ANCRES ===== */
.nav-anchors {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 52px;
  z-index: 999;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-anchors ul {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1140px;
  margin: 0 auto;
  white-space: nowrap;
}

.nav-anchors li a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 3px solid transparent;
}

.nav-anchors li a:hover {
  color: #6c5ce7;
  border-bottom-color: #6c5ce7;
}

/* ===== SECTIONS COMMUNES ===== */
.section {
  padding: 50px 20px;
}

.section-alt {
  background: #f7f8fc;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a2744;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #718096;
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section { padding: 70px 20px; }
  .section-title { font-size: 32px; }
}

/* ===== AVANTAGES (6 cards) ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.advantage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.advantage-icon {
  margin-bottom: 16px;
}

.advantage-icon img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.advantage-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .advantages-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== ÉTAPES SOUSCRIPTION ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #1a2744);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: #718096;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== SECTIONS DEUX COLONNES ===== */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: center;
}

.two-col-text { flex: 1; }

.two-col-text h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a2744;
  margin-bottom: 16px;
}

.two-col-text p {
  color: #4a5568;
  margin-bottom: 12px;
  line-height: 1.7;
}

.two-col-text ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: #4a5568;
}

.two-col-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #6c5ce7;
  font-weight: 700;
}

.two-col-image {
  flex: 1;
  background: linear-gradient(135deg, #e8e4ff 0%, #f0edff 100%);
  border-radius: 16px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  width: 100%;
}

@media (min-width: 768px) {
  .two-col { flex-direction: row; }
  .two-col.reverse { flex-direction: row-reverse; }
  .two-col-text h2 { font-size: 30px; }
  .two-col-image { min-height: 320px; }
}

/* ===== SIMULATEUR ===== */
.simulator-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sim-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.sim-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a2744;
  margin-bottom: 6px;
}

.sim-field input,
.sim-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 15px;
  color: #2d3748;
  transition: border-color 0.3s;
}

.sim-field input:focus,
.sim-field select:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}

.sim-result {
  display: none;
  background: linear-gradient(135deg, #1a2744, #6c5ce7);
  border-radius: 12px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
}

.sim-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sim-result-item span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.sim-result-item strong {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

@media (min-width: 600px) {
  .sim-fields { grid-template-columns: repeat(3, 1fr); }
}

/* ===== TÉMOIGNAGES ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  position: relative;
}

.testimonial-stars {
  color: #6c5ce7;
  font-size: 18px;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 700;
  color: #1a2744;
  font-size: 14px;
}

.testimonial-role {
  font-size: 13px;
  color: #a0aec0;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
}

.faq-question {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #1a2744;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f7f8fc;
}

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: #6c5ce7;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

/* ===== BANDEAU RÉASSURANCE ===== */
.reassurance {
  background: linear-gradient(135deg, #1a2744 0%, #6c5ce7 100%);
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
}

.reassurance h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 30px;
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 30px;
}

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

.reassurance-item .icon {
  margin-bottom: 12px;
}

.reassurance-item .icon svg {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.reassurance-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.reassurance-item span {
  font-size: 13px;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .reassurance-grid { grid-template-columns: repeat(4, 1fr); }
  .reassurance h2 { font-size: 32px; }
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: #f7f8fc;
  padding: 50px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1a2744;
  margin-bottom: 16px;
}

.cta-section p {
  color: #718096;
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: #1a2744;
  color: rgba(255,255,255,0.7);
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
}

.footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  margin: 0 12px;
}

.footer a:hover {
  color: #a29bfe;
}

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

/* ===== POPUP MODALE ===== */
.modal-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-wrapper.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2001;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
  color: #a0aec0;
  background: none;
  border: none;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #1a2744;
}

.modal-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a2744;
  margin-bottom: 6px;
}

.modal-content .modal-desc {
  font-size: 14px;
  color: #718096;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a2744;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #6c5ce7;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-check label {
  font-size: 12px;
  color: #718096;
  line-height: 1.4;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: #6c5ce7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #5a4bd1;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 0;
}

.form-success .check-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 8px;
}

.form-success p {
  color: #718096;
  font-size: 14px;
}

/* ===== CONDITIONS LÉGALES ===== */
.legal-section {
  padding: 40px 20px;
  background: #f7f8fc;
}

.legal-section .container {
  max-width: 800px;
}

.legal-section p {
  font-size: 12px;
  color: #a0aec0;
  line-height: 1.6;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 480px) {
  .hero-card-rate { font-size: 44px; }
  .hero-card { padding: 20px; }
  .section-title { font-size: 22px; }
  .modal-content { padding: 24px 20px; }
}

/* ===== CSS ICONS (remplacent les emojis pour compatibilite serveur) ===== */
.css-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
}

.icon-gift::before,
.icon-star::before,
.icon-shield::before,
.icon-bolt::before,
.icon-money::before,
.icon-chart::before,
.icon-check::before {
  display: inline-block;
}

/* Gift icon */
.icon-gift {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ffd700;
  border-radius: 3px;
  position: relative;
  vertical-align: middle;
  margin-right: 4px;
}
.icon-gift::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 6px;
  border: 2px solid #ffd700;
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}
.icon-gift::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #ffd700;
}

/* Star icon */
.icon-star {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #ffd700;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  vertical-align: middle;
  margin-right: 6px;
}

/* Shield */
.icon-shield {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  clip-path: polygon(50% 0%, 100% 20%, 100% 65%, 50% 100%, 0% 65%, 0% 20%);
}

/* Bolt */
.icon-bolt {
  width: 48px;
  height: 48px;
  position: relative;
  background: transparent;
}
.icon-bolt::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 14px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 22px solid #ffd700;
  transform: rotate(-10deg);
}
.icon-bolt::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #ffd700;
  transform: rotate(-10deg);
}

/* Money */
.icon-money {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00b894, #55efc4);
  border-radius: 6px;
  position: relative;
}
.icon-money::before {
  content: "\20AC";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
}

/* Chart */
.icon-chart {
  width: 48px;
  height: 48px;
  position: relative;
  background: transparent;
  border-bottom: 3px solid #6c5ce7;
  border-left: 3px solid #6c5ce7;
}
.icon-chart::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 6px;
  width: 8px;
  height: 14px;
  background: #a29bfe;
  border-radius: 2px 2px 0 0;
}
.icon-chart::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 18px;
  width: 8px;
  height: 26px;
  background: #6c5ce7;
  border-radius: 2px 2px 0 0;
  box-shadow: 12px 0 0 -0px #a29bfe;
}

/* Check */
.icon-check {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00b894, #55efc4);
  border-radius: 50%;
  position: relative;
}
.icon-check::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 14px;
  height: 22px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
}
