/* Styles communs alignés sur le design Flutter (header, footer, sections, cartes) */
:root {
  --purple: #574BEC;
  --purple-dark: #7C3AED;
  --purple-border: rgba(87, 75, 236, 0.35);
  --purple-light: rgba(87, 75, 236, 0.08);
  --purple-shadow: rgba(87, 75, 236, 0.25);
  --text-title: #1A1A1A;
  --text-body: #2D2D2D;
  --text-secondary: #424242;
  --grey-50: #FAFAFA;
  --grey-200: #EEEEEE;
  --grey-300: #E0E0E0;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-header: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-card: 16px;
  --radius-step: 12px;
  --radius-badge: 24px;
  --radius-btn: 12px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Poppins', sans-serif; color: var(--text-body); }

/* ----- Header (identique au Flutter AppHeader) ----- */
.site-header {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--grey-300);
}
@media (max-width: 1024px) {
  .site-header { padding: 12px 16px; }
  .site-header .header-burger { display: flex !important; }
  .site-header .header-spacer-after-nav { display: none !important; }
  .site-header nav { display: none !important; }
  .site-header .header-profile i { font-size: 15px; }
}
.site-header .header-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(87, 75, 236, 0.1);
  color: var(--purple);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, background 0.2s;
}
.site-header .header-burger:hover { opacity: 0.9; background: rgba(87, 75, 236, 0.15); }
.site-header .header-burger i { font-size: 18px; }
.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header .logo:hover { color: var(--purple-dark); }
.site-header .logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-header .logo:not(:has(.logo-img)) { font-size: 1.25rem; }
.site-header .header-spacer {
  flex: 1;
  min-width: 24px;
}
/* Desktop : le premier spacer (avant le logo) ne doit pas prendre de place pour garder le logo à gauche */
@media (min-width: 1025px) {
  .site-header .header-spacer:first-of-type {
    flex: 0;
    min-width: 0;
    width: 0;
    overflow: hidden;
  }
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-header nav a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-header nav a i { font-size: 18px; color: var(--text-secondary); }
@media (min-width: 1025px) {
  .site-header nav a i { font-size: 14px; }
}
.site-header nav a:hover { color: var(--purple); background: rgba(87, 75, 236, 0.06); }
.site-header nav a:hover i { color: var(--purple); }
.site-header .header-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  box-sizing: border-box;
  background: rgba(87, 75, 236, 0.1);
  border-radius: 12px;
  color: var(--purple);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s, background 0.2s;
}
.site-header .header-profile:hover { opacity: 0.9; background: rgba(87, 75, 236, 0.15); }
/* Icône profil plus petite (desktop) sans toucher au container */
.site-header .header-profile i { font-size: 16px; }

/* ----- Menu mobile (overlay + panneau type Flutter) ----- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }
.nav-menu-panel {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 1001;
  width: calc(100% - 40px);
  max-width: 400px;
  background: linear-gradient(to bottom, #fff, #f8fafc);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
body.nav-open .nav-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px 16px 0 0;
}
.nav-menu-header span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.nav-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-menu-close:hover { background: rgba(255, 255, 255, 0.2); }
.nav-menu-close i { font-size: 18px; }
.nav-menu-items {
  padding: 20px;
}
.nav-menu-items a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-body);
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-menu-items a:last-child { margin-bottom: 0; }
.nav-menu-items a i { font-size: 20px; color: var(--text-secondary); }
.nav-menu-items a:hover,
.nav-menu-items a.nav-menu-active {
  background: linear-gradient(135deg, #3b82f6, #574bec);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.nav-menu-items a:hover i,
.nav-menu-items a.nav-menu-active i { color: #fff; }

/* ----- Footer (identique au Flutter AppFooter : 4 colonnes) ----- */
.site-footer {
  width: 100%;
  background: var(--grey-200);
  padding: 32px 24px;
  margin-top: 48px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 767px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.site-footer-col h3,
.site-footer .site-footer-col > .footer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
  margin: 0 0 12px;
  font-family: 'Poppins', sans-serif;
}
.site-footer-col .site-footer-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  object-fit: contain;
}
.site-footer-social-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-footer-social-row a,
.site-footer-social-row a:link,
.site-footer-social-row a:visited,
.site-footer-social-row a:hover,
.site-footer-social-row a:active,
.site-footer-social-row a:focus {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.site-footer-social-row a {
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 0.2s;
}
.site-footer-social-row a:hover { background: rgba(87, 75, 236, 0.12); }
.site-footer-social-row .fa-icon { font-size: 22px; }
.site-footer-col .footer-link {
  display: block;
  padding: 0 0 8px;
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.site-footer-col .footer-link:hover { color: var(--purple); }
.site-footer-col .footer-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}
.site-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--purple);
  color: white;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.site-footer-btn:last-child { margin-bottom: 0; }
.site-footer-btn:hover { opacity: 0.95; }
.site-footer-copy {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
}

/* ----- Sections génériques ----- */
.section-wrap {
  width: 100%;
  padding: 56px 24px;
}
.section-wrap.grey { background: var(--grey-50); }
.section-wrap.white { background: #fff; }
.section-wrap.cta-section { padding-bottom: 28px; }
.section-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.section-inner.wide { max-width: 960px; }
.section-inner.wider { max-width: 1100px; }
.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 16px;
}
.section-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 24px;
}

/* ----- Boutons ----- */
.btn {
  display: inline-block;
  background: var(--purple);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { opacity: 0.95; }
.btn-cta { padding: 18px 40px; font-size: 17px; }

/* ----- Hero ----- */
.hero {
  width: 100%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  text-align: center;
  padding: 48px 24px 64px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px;
}
.hero p {
  font-size: 20px;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto 12px;
  line-height: 1.4;
}
.hero .sub { font-size: 18px; }

/* ----- Cartes solution "Un concept qui sort du lot" ----- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 768px) {
  .solution-grid { grid-template-columns: 1fr; }
}
.solution-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--purple-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 300px;
}
@media (max-width: 768px) {
  .solution-card { min-height: 280px; }
}
.solution-card .lottie-wrap {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  margin-bottom: 12px;
  background: transparent;
}
.solution-card .lottie-wrap canvas { width: 100% !important; height: 100% !important; background: transparent !important; }
.solution-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 8px;
}
.solution-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0;
}

/* ----- Étapes "Comment ça marche" ----- */
.steps-list { margin-top: 40px; }
.step-block {
  background: #fff;
  border-radius: var(--radius-step);
  border: 2px solid var(--purple);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.step-block:last-child { margin-bottom: 0; }
.step-inner {
  display: flex;
  align-items: center;
  min-height: 500px;
}
@media (max-width: 1024px) {
  .step-inner { flex-direction: column; min-height: 0; }
  .step-inner.reverse { flex-direction: column; }
  .step-inner .step-text { order: 1; }
  .step-inner .step-media { order: 2; }
}
.step-inner.reverse { flex-direction: row-reverse; }
@media (max-width: 1024px) {
  .step-inner.reverse { flex-direction: column; }
}
.step-text, .step-media { flex: 1; padding: 24px; }
.step-media img,
.step-media .lottie-step {
  width: 100%;
  border-radius: var(--radius-step);
  display: block;
}
.step-media .lottie-step {
  height: 280px;
  background: transparent;
  position: relative;
}
.step-media .lottie-step canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: transparent !important;
}
@media (min-width: 1025px) {
  .step-media .lottie-step { height: 500px; }
}
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-badge);
  border: 1.5px solid var(--purple);
  background: transparent;
  box-shadow: 0 0 8px var(--purple-shadow);
  margin-bottom: 20px;
}
.step-badge-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-badge-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.5px;
}
.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 12px;
  text-align: center;
}
.step-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0;
  text-align: center;
}
.step-desc b { font-weight: 700; }

/* ----- Pricing ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: #fff;
  padding: 24px 32px;
  border-radius: var(--radius-card);
  border: 2px solid rgba(87, 75, 236, 0.3);
  box-shadow: 0 8px 20px var(--purple-light);
  text-align: center;
}
.pricing-card .price {
  font-size: 36px;
  font-weight: 700;
  color: var(--purple);
}
.pricing-card .period { font-size: 18px; color: var(--text-body); }
.pricing-card .detail { font-size: 15px; color: var(--text-secondary); margin-top: 8px; }

/* ----- Page contact (cards) ----- */
.contact-cards { max-width: 720px; margin: 0 auto; padding: 32px 24px; }
.contact-card {
  padding: 20px;
  background: transparent;
  border-radius: var(--radius-card);
  border: 1px solid rgba(87, 75, 236, 0.2);
  margin-bottom: 24px;
}
.contact-card h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-title);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-card h2 .contact-card-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 18px;
}
.contact-card p { font-size: 15px; line-height: 1.5; margin: 0; white-space: pre-line; }
.contact-card a { color: var(--purple); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ----- Pages légales ----- */
.legal-page { max-width: 720px; margin: 0 auto; padding: 32px 24px; }
.legal-page h1 { font-size: 28px; font-weight: 700; color: var(--text-title); margin-bottom: 16px; }
.legal-page .intro { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.legal-page h2 { font-size: 18px; font-weight: 600; color: var(--text-title); margin: 24px 0 8px; }
.legal-page p { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0 0 12px; white-space: pre-line; }
.legal-page ul { margin: 0 0 12px 1.2em; padding-left: 1em; }
.legal-page li { margin-bottom: 6px; line-height: 1.5; }
.legal-page a { color: var(--purple); }

/* ----- Blog (liste + article) ----- */
.blog-listing { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.blog-listing h1 { font-size: 28px; font-weight: 700; color: var(--text-title); margin-bottom: 12px; }
.blog-listing-intro { font-size: 16px; color: var(--text-body); line-height: 1.6; margin-bottom: 32px; }
.blog-grid { display: grid; gap: 24px; }
.blog-card { background: #fff; border-radius: var(--radius-card); border: 1px solid rgba(87, 75, 236, 0.2); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, border-color 0.2s; }
.blog-card:hover { box-shadow: 0 8px 24px var(--purple-light); border-color: rgba(87, 75, 236, 0.35); }
.blog-card-link { display: block; padding: 24px; text-decoration: none; color: inherit; }
.blog-card-label { display: inline-block; font-size: 12px; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.blog-card-title { font-size: 20px; font-weight: 700; color: var(--text-title); margin: 0 0 12px; line-height: 1.3; }
.blog-card-excerpt { font-size: 15px; color: var(--text-body); line-height: 1.5; margin: 0 0 16px; }
.blog-card-more { font-size: 14px; font-weight: 600; color: var(--purple); display: inline-flex; align-items: center; gap: 6px; }
.blog-card-link:hover .blog-card-more { text-decoration: underline; }

.blog-article { max-width: 720px; margin: 0 auto; padding: 32px 24px; }
.blog-article article { margin-bottom: 32px; }
.blog-article h1 { font-size: 28px; font-weight: 700; color: var(--purple); margin-bottom: 8px; line-height: 1.3; }
.blog-article-lead { font-size: 18px; color: var(--text-secondary); font-style: italic; margin-bottom: 24px; }
.blog-article p { font-size: 16px; line-height: 1.65; color: var(--text-body); margin: 0 0 16px; }
.blog-article h2 { font-size: 22px; font-weight: 700; color: var(--text-title); margin: 32px 0 12px; }
.blog-article h3 { font-size: 18px; font-weight: 600; color: var(--text-title); margin: 24px 0 8px; }
.blog-article ul, .blog-article ol { margin: 0 0 16px 1.5em; padding-left: 1em; }
.blog-article li { margin-bottom: 8px; line-height: 1.5; }
.blog-article-subtitle { font-size: 17px; font-weight: 700; color: var(--text-title); margin: 20px 0 12px !important; }
.blog-table-wrap { overflow-x: auto; margin: 16px 0 24px; border-radius: var(--radius-step); border: 1px solid rgba(87, 75, 236, 0.25); box-shadow: var(--shadow-sm); }
.blog-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.blog-table th, .blog-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--grey-300); }
.blog-table thead th { background: var(--purple); color: #fff; font-weight: 600; }
.blog-table tbody tr:nth-child(even) { background: rgba(87, 75, 236, 0.06); }
.blog-table tbody tr:last-child td { border-bottom: none; }
.blog-table-alt thead th { background: #1A1A2E; }
.blog-article-note { font-size: 14px; color: var(--text-secondary); font-style: italic; margin: 8px 0 20px !important; }
.blog-tip { padding: 14px 18px; background: rgba(87, 75, 236, 0.08); border-left: 4px solid var(--purple); border-radius: 0 var(--radius-step) var(--radius-step) 0; margin: 16px 0 !important; }
.blog-tip strong { color: var(--purple); }
.blog-faq-q { font-weight: 700; color: var(--purple) !important; font-size: 17px !important; margin-top: 20px !important; }
.blog-list-numeric { list-style: decimal; padding-left: 1.5em; }
.blog-list-numeric li { margin-bottom: 16px; }
.blog-article-cta { padding: 20px; background: rgba(87, 75, 236, 0.08); border: 2px solid var(--purple); border-radius: var(--radius-step); margin: 24px 0 !important; }
.blog-article-cta strong { color: var(--purple); }
.blog-article-share { font-size: 14px; color: var(--text-secondary); font-style: italic; margin-top: 8px !important; }
.blog-back { margin-top: 24px; }
.blog-back a { color: var(--purple); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.blog-back a:hover { text-decoration: underline; }
