/* ===== Variables & reset ===== */
:root {
  --bg: #0a0a12;
  --bg-alt: #10101c;
  --surface: #15151f;
  --surface-border: #26263a;
  --text: #eef0fa;
  --text-muted: #9a9ab3;
  --accent: #3E7BFA;
  --accent-2: #F5B93E;
  --accent-gradient: linear-gradient(135deg, #3E7BFA 0%, #F5B93E 100%);
  --radius: 14px;
  --max-width: 1160px;
  --shadow-glow: 0 0 40px rgba(62, 123, 250, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ===== Arriere-plan interactif (particules IA) ===== */
#aiBackground {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

html[dir="rtl"] body { font-family: "Segoe UI", "Tahoma", system-ui, sans-serif; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  margin: 0 0 8px;
}

h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-subtitle { color: var(--text-muted); max-width: 640px; margin: 0 0 40px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  justify-self: start;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.header-actions { justify-self: end; }

.main-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--text) !important;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switcher {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-gradient);
  color: #08080f;
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
}

/* Regle .btn-block complete plus bas dans le fichier (evite les conflits de cascade). */

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.hero-tagline { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 20px; }

.hero-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; }

.hero-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 185, 62, 0.12);
  border: 1px solid var(--accent-2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0 0 28px;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(62,123,250,0.25) 0%, rgba(245,185,62,0.08) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-icon { font-size: 1.8rem; margin-bottom: 12px; }

.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ===== Pricing ===== */
#pricing h2 { margin-bottom: 40px; }
.pricing-grid { align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; position: relative; }
.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 24px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--surface-border);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.price.quote-price { font-size: 1.15rem; color: var(--accent-2); border-color: var(--accent-2); background: rgba(245, 185, 62, 0.1); }

.pricing-featured .price {
  background: var(--accent-gradient);
  border: none;
  color: #08080f;
}
.pricing-featured .price span { color: rgba(8, 8, 15, 0.65); }

.feature-list { flex: 1; margin-bottom: 24px; }
.feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.feature-list li:last-child { border-bottom: none; }

.pricing-featured {
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-glow);
}

.badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-gradient);
  color: #08080f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

html[dir="rtl"] .badge { right: auto; left: 24px; }

/* ===== Ligne promo (audit offert) ===== */
/* Badge compact et centre (comme .price.quote-price), pas une bande pleine largeur.
   Le selecteur .pricing-card .promo-line (au lieu de .promo-line seul) est necessaire
   pour passer devant la specificite de la regle generique ".card p" plus haut dans ce
   fichier, qui ecrasait sinon la couleur du texte et le rendait quasi invisible. */
.pricing-card .promo-line {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: -6px auto 20px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #f5b93e, #ff5f6d);
  background-size: 300% auto;
  color: #08080f;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: center;
  border: 1px solid rgba(8, 8, 15, 0.15);
  animation: promoShine 4s linear infinite, promoPulse 2.2s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(255, 95, 109, 0.45);
}
.pricing-card .promo-line::before {
  content: "🎁";
  font-size: 0.95rem;
  line-height: 1;
}
.pricing-card .promo-line .promo-strike,
.pricing-card .promo-line .promo-offer {
  color: #08080f;
}
.promo-strike {
  text-decoration: line-through;
  text-decoration-color: #7a0d0d;
  text-decoration-thickness: 2px;
  opacity: 0.85;
  font-weight: 700;
}
.promo-offer {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 900;
}
@keyframes promoShine {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
@keyframes promoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(255, 95, 109, 0.45); }
  50% { transform: scale(1.04); box-shadow: 0 0 26px rgba(255, 95, 109, 0.65); }
}
@media (max-width: 480px) {
  .pricing-card .promo-line {
    white-space: normal;
    font-size: 0.76rem;
    padding: 9px 16px;
  }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  margin-bottom: 72px;
}

.about-text { color: var(--text-muted); max-width: 560px; margin-bottom: 20px; font-size: 1.05rem; }

.process-list {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px;
}

.process-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 24px;
}

.process-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--surface-border);
}

.process-step:first-of-type { border-top: none; padding-top: 0; }

.process-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.7;
  line-height: 1;
}

.process-step h4 { font-size: 0.98rem; margin-bottom: 4px; }
.process-step p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ===== Valeurs : menu sophistique ===== */
.values-section { margin-top: 16px; }
.values-title { font-size: 1.5rem; margin-bottom: 6px; }
.values-hint { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; }

.values-menu {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}

.values-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--surface-border);
}

html[dir="rtl"] .values-list { border-right: none; border-left: 1px solid var(--surface-border); }

.value-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  padding: 18px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

html[dir="rtl"] .value-tab { text-align: right; border-left: none; border-right: 3px solid transparent; }

.value-tab:hover { background: rgba(62, 123, 250, 0.06); color: var(--text); }

.value-tab.active {
  background: rgba(62, 123, 250, 0.1);
  color: var(--text);
  border-left-color: var(--accent);
}

html[dir="rtl"] .value-tab.active { border-left-color: transparent; border-right-color: var(--accent); }

.value-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-2);
  opacity: 0.8;
}

.values-panel {
  padding: 40px;
  display: flex;
  align-items: center;
}

.value-panel-desc {
  display: none;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
}

.value-panel-desc.active { display: block; }

/* ===== Bandeau CTA final ===== */
.final-cta {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(62,123,250,0.14) 0%, rgba(10,10,18,0) 70%), var(--bg-alt);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.final-cta-inner { max-width: 640px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta .section-subtitle { margin: 0 auto 32px; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ===== Illustration de separation (entre CTA final et Contact) ===== */
.brand-divider { padding: 72px 0; }
.brand-divider-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 960px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ===== Reassurance formulaire ===== */
.form-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin: -6px 0 0; }

/* ===== Bouton flottant WhatsApp ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #08080f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover { transform: scale(1.08); }

html[dir="rtl"] .floating-whatsapp { right: auto; left: 24px; }

/* ===== Contact / newsletter ===== */
.contact-centered { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-centered .section-subtitle { margin-left: auto; margin-right: auto; }
.calendly-btn { margin-top: 16px; }

.newsletter-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.muted-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }

.form-card { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.9rem; color: var(--text-muted); }

.form-field input, .form-field textarea {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-feedback {
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(62, 123, 250, 0.12);
}

.form-feedback.error { background: rgba(255, 92, 92, 0.15); color: #ff8080; }
.form-feedback.success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

/* ===== Bandeau de consentement cookies ===== */
.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.cookie-consent-text { color: var(--text-muted); font-size: 0.88rem; margin: 0; flex: 1; min-width: 220px; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent-actions .btn { padding: 10px 18px; font-size: 0.88rem; }

/* ===== Page de remerciement (post-paiement) ===== */
.thank-you-section { text-align: center; max-width: 620px; margin: 0 auto; }
.thank-you-icon { font-size: 3rem; margin-bottom: 16px; }
.thank-you-summary {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.thank-you-summary strong { color: var(--text); }
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #08080f;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  margin-top: 8px;
}
.whatsapp-cta:hover { transform: translateY(-2px); }

/* ===== Tarifs dynamiques & checkout ===== */
.country-switcher { min-width: 90px; }
.price-amount { font-variant-numeric: tabular-nums; }
.btn-block { width: 100%; text-align: center; cursor: pointer; font: inherit; }
.btn-block:not(.btn-primary) { border: 1px solid var(--surface-border); background: none; }
.btn-block.btn-primary { border: none; background: var(--accent-gradient); color: #08080f; }
.pricing-note { text-align: center; margin-top: 28px; }
.pricing-note a { color: var(--accent); text-decoration: underline; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}
html[dir="rtl"] .modal-close { right: auto; left: 16px; }

.checkout-price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 8px 0 16px;
  color: var(--accent-2);
}

.currency-note { color: var(--accent-2) !important; margin-top: 6px; }
#paypalButtonContainer { margin-top: 18px; min-height: 44px; }
.checkout-unavailable { margin-top: 14px; }
#checkoutModal .form-feedback { margin-top: 14px; }

/* ===== Page "Votre site" : sections narratives et FAQ ===== */
.narrative-section .narrative-container { max-width: 760px; }
.narrative-text { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.pricing-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: -8px; margin-bottom: 16px; }

.faq-list { max-width: 760px; margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
html[dir="rtl"] .faq-item summary { padding-right: 0; padding-left: 28px; }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
html[dir="rtl"] .faq-item summary::after { right: auto; left: 0; }

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* ===== Blog ===== */
.blog-grid { margin-top: 32px; }
.blog-card { display: flex; flex-direction: column; gap: 12px; }
.blog-card .blog-date { color: var(--accent-2); font-size: 0.8rem; }
.blog-card h3 { font-size: 1.05rem; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }
.blog-card .btn { align-self: flex-start; margin-top: auto; }

.blog-article { margin-top: 24px; max-width: 760px; }
.blog-content h2 { margin-top: 32px; font-size: 1.3rem; }
.blog-content p { color: var(--text-muted); margin-bottom: 16px; }

/* ===== Pages legales (CGU / Confidentialite) ===== */
.legal-container { max-width: 760px; margin: 0 auto; }
.legal-page h1 { margin-top: 24px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal-note {
  background: rgba(62, 123, 250, 0.1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 16px 0 40px;
}
.legal-container h2 { margin-top: 36px; font-size: 1.2rem; color: var(--accent-2); }
.legal-container p { color: var(--text-muted); margin-bottom: 14px; }
.legal-container a { color: var(--accent); text-decoration: underline; }
.legal-list { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
html[dir="rtl"] .legal-list { padding-left: 0; padding-right: 20px; }
.legal-list li { color: var(--text-muted); margin-bottom: 8px; }
.legal-todo {
  background: rgba(255, 92, 92, 0.1);
  border: 1px dashed rgba(255, 92, 92, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-style: italic;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 60px 0 24px;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-inner a { display: block; color: var(--text-muted); margin-bottom: 8px; font-size: 0.9rem; }
.footer-title { font-weight: 700; margin-bottom: 12px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-4, .grid-5, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .newsletter-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-menu { grid-template-columns: 1fr; }
  .values-list { border-right: none; border-bottom: 1px solid var(--surface-border); }
  html[dir="rtl"] .values-list { border-left: none; border-bottom: 1px solid var(--surface-border); }
  .value-tab.active { border-left-color: transparent; border-bottom: 2px solid var(--accent); }
  html[dir="rtl"] .value-tab.active { border-right-color: transparent; border-bottom: 2px solid var(--accent); }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--surface-border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-4, .grid-5, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; }
}
