/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
  /* Brand Colors */
  --teal: #1B7895;
  --blue: #38B6FF;
  --off: #FFFBF0;
  
  /* Text & Functional Colors */
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.75);
  --border: rgba(27, 120, 149, 0.15);
  
  /* Effects */
  --shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
  --radius: 20px;
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--off);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex; 
  flex-direction: column; 
  min-height: 100vh;
}

main { flex: 1; }

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

/* =========================================
   LAYOUT UTILS
   ========================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 20px rgba(56, 182, 255, 0.25);
}

.btn--primary:hover {
  background: #2ea0e6;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(56, 182, 255, 0.35);
}

.btn--secondary {
  background: white;
  color: var(--text);
  border-color: rgba(27, 120, 149, 0.2);
}

.btn--secondary:hover {
  background: #f8fafc;
  border-color: var(--teal);
}

.btn--block { width: 100%; }
.btn--large { padding: 14px 32px; font-size: 17px; }

/* =========================================
   HEADER & NAV
   ========================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand */
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand__logo {
  height: 64px; /* LOGO AGRANDI pour remplir le header (72px total) */
  width: auto;
}

/* Desktop Nav */
.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav a:hover { opacity: 1; color: var(--teal); }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Nav Overlay */
.mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  background: var(--off);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mobile[hidden] {
  display: none !important;
}

.mobile:not([hidden]) {
  display: flex;
}

.mobile a:not(.btn) {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
  padding: 8px 0;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 60px 0;
  overflow: hidden; /* avoid overflow from grid */
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--teal); }

.lead {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 90%;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__trustline {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* Hero Dashboard/Card Effect */
.hero__card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 16px;
  transform: rotate(-2deg); /* slight playful tilt */
  transition: transform 0.3s ease;
}

.hero__card:hover { transform: rotate(0deg); }

.stat {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56,182,255,0.1), rgba(27,120,149,0.05));
  border: 1px solid rgba(56,182,255,0.2);
  text-align: center;
}

.stat__label { margin: 0; font-weight: 700; color: var(--teal); font-size: 0.9rem; }
.stat__value { margin: 8px 0 0; font-size: 2rem; font-weight: 800; color: var(--text); }
.stat__note { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }

.mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--off);
  border: 1px solid var(--border);
}

.mini__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mini__title { margin: 0; font-weight: 800; font-size: 0.95rem; }
.mini__text { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }

/* =========================================
   SECTIONS & STEPS
   ========================================= */
.section { padding: 80px 0; }
.section--alt { background: rgba(255, 255, 255, 0.6); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head { max-width: 600px; margin-bottom: 40px; }
.section__head h2 { font-size: 2.25rem; font-weight: 800; margin: 0 0 16px; }
.section__head p { font-size: 1.125rem; color: var(--muted); margin: 0; }

.steps, .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step, .card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s;
}

.step:hover, .card:hover { transform: translateY(-5px); }

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 182, 255, 0.15);
  color: var(--teal);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step h3, .card h3 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 800; }
.card h3 { color: var(--teal); }
.step p, .card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* =========================================
   BLOG STYLES
   ========================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-card__content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h2 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 800; }
.blog-card p { color: var(--muted); line-height: 1.6; flex: 1; }
.blog-card__link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--teal); text-decoration: none; }

.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -10px rgba(15,23,42,0.1);
}

.article-content h1 { font-size: 2.5rem; margin-bottom: 10px; color: var(--text); font-weight: 800; }
.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.article-body h2 { color: var(--teal); margin-top: 40px; margin-bottom: 16px; font-size: 1.8rem; font-weight: 800; }
.article-body p { line-height: 1.8; color: var(--text); margin-bottom: 20px; font-size: 1.05rem; }
.article-body ul { margin-bottom: 20px; padding-left: 20px; line-height: 1.8; }
.article-cta { background: var(--off); padding: 30px; border-radius: 16px; text-align: center; margin-top: 40px; border: 1px solid var(--border); }
.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; color: rgba(15,23,42,0.6); }
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 700; }

/* =========================================
   PAGES LÉGALES
   ========================================= */
.legal-main {
  width: 90%;          /* Largeur forcée pour mobile */
  max-width: 800px;    /* Largeur max pour desktop */
  margin: 40px auto;   /* Centrage automatique */
  padding: 40px 24px;  /* Espacement interne */
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  box-sizing: border-box; /* IMPORTANT : Empêche le padding d'élargir la div */
}

.legal-main h1 { font-size: 2rem; margin-bottom: 30px; color: var(--text); font-weight: 800; }
.legal-main h2 { font-size: 1.4rem; margin-top: 25px; margin-bottom: 15px; color: var(--teal); font-weight: 800; }
.legal-main p, .legal-main ul { line-height: 1.6; color: rgba(15, 23, 42, 0.75); margin-bottom: 15px; }
.legal-main li { margin-bottom: 8px; margin-left: 20px; }

/* =========================================
   CTA & FORM
   ========================================= */
.cta {
  background: linear-gradient(180deg, rgba(56,182,255,0.05), rgba(27,120,149,0.02));
  border-top: 1px solid rgba(27, 120, 149, 0.1);
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta__content h2 { font-size: 2.5rem; font-weight: 800; margin: 0 0 20px; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-weight: 700;
  color: var(--text);
}
.bullets li { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

.form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form label {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 16px;
}
.form label:first-child { margin-top: 0; }

.form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(27, 120, 149, 0.15);
  background: #fdfdfd;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form input:focus {
  border-color: var(--blue);
  background: white;
}

.form__note { margin: 12px 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.form__success {
  background: #e6fffa;
  color: #2c7a7b;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 700;
  text-align: center;
  border: 1px solid #b2f5ea;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: white;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__socials {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--blue);
}

.social-link svg {
  opacity: 0.8;
}

.footer__links { display: flex; gap: 24px; }
.footer a { text-decoration: none; color: var(--muted); font-weight: 700; }
.footer a:hover { color: var(--teal); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
  .hero h1 { font-size: 2.5rem; }
  .hero__grid, .cta__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { order: -1; transform: rotate(0); margin-bottom: 20px; }
  .nav { display: none; }
  .burger { display: flex; }
  .steps, .cards { grid-template-columns: 1fr; }
  
  .mobile:not([hidden]) { display: flex; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .btn--large { width: 100%; }
  .topbar__actions .btn { display: none; }
  /* Correction marges mobile */
  .legal-main { width: 92%; padding: 30px 20px; } 
}