/* ============================================================
   style.css — Minisite Indy | e-Sphera.net/indy
   Design inspiré de e-sphera.net
   Polices : Poppins (titres) + Open Sans (corps)
   Couleurs : #2ea3f2 (bleu), #213047 (dark), #555 (texte)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

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

:root {
  --blue:        #0046A9;
  --blue-dark:   #003580;
  --blue-light:  #eaf6fe;
  --dark:        #213047;
  --heading:     #1a2535;
  --text:        #555;
  --text-light:  #8a9bb0;
  --white:       #ffffff;
  --bg:          #f8fafd;
  --border:      #e4ecf4;
  --shadow-sm:   0 2px 12px rgba(46,163,242,.08);
  --shadow:      0 6px 28px rgba(46,163,242,.13);
  --shadow-lg:   0 16px 48px rgba(46,163,242,.18);
  --radius:      12px;
  --radius-sm:   8px;
  --font-h:      'Poppins', sans-serif;
  --font-b:      'Open Sans', sans-serif;
  --transition:  .22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); text-decoration: underline; }
ul { list-style: none; }

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  color: var(--heading);
  line-height: 1.22;
  font-weight: 700;
}
h1 { font-size: clamp(1.85rem, 4.5vw, 2.9rem); margin-bottom: 1.1rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: .9rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); margin-bottom: .65rem; }
h4 { font-size: 1rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 84px 0; }
.section--alt  { background: var(--bg); }
.section--blue { background: var(--blue-light); }
.section--dark { background: var(--dark); color: var(--white); }

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(46,163,242,.32);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}
.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-light);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.btn-lg { padding: 17px 42px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}
.nav-logo:hover { opacity: 0.85; }
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); text-decoration: none; }
.nav-cta .btn { padding: 9px 22px; font-size: .88rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #eaf6fe 0%, #f4faff 60%, #fff 100%);
  padding: 96px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(46,163,242,.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(46,163,242,.1);
  border: 1px solid rgba(46,163,242,.2);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.1rem; }
.hero-title .hl { color: var(--blue); }
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 10px;
}
/* Mockup dashboard */
/* Hero visual — image mode */
.hero-visual {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
}
.hero-visual--img {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: contain;
  max-height: 500px;
}

/* Section images */
.section-img {
  text-align: center;
  margin: 0 auto 32px;
}
.section-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}
.section-img--wide {
  max-width: 720px;
}
.section-img--side {
  max-width: 380px;
  float: right;
  margin: 0 0 24px 32px;
}

/* ===== BARRE STATS ===== */
.stats-bar { background: var(--dark); padding: 36px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  text-align: center;
}
.stat-val {
  font-family: var(--font-h);
  font-size: 2.1rem; font-weight: 800;
  color: var(--blue);
  display: block;
}
.stat-lbl { font-size: .82rem; color: rgba(255,255,255,.7); }

/* ===== HEADER DE SECTION ===== */
.sec-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.sec-label {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--blue); margin-bottom: 10px;
}
.sec-header h2 { margin-bottom: 14px; }
.sec-header p { font-size: 1.02rem; color: var(--text); }

/* ===== GRILLES ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(46,163,242,.25);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--text); line-height: 1.65; margin: 0; }

/* ===== ÉTAPES ===== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.step { text-align: center; padding: 24px 16px; }
.step-num {
  width: 54px; height: 54px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-h); font-size: 1.3rem; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(46,163,242,.3);
}
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { font-size: .9rem; color: var(--text); }

/* ===== TARIFICATION ===== */
.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.price-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.price-card .feat-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white);
  font-size: .75rem; font-weight: 700; padding: 4px 18px;
  border-radius: 50px; white-space: nowrap;
}
.price-name {
  font-family: var(--font-h); font-size: 1rem; font-weight: 700;
  color: var(--heading); margin-bottom: 8px;
}
.price-amount {
  font-family: var(--font-h); font-size: 2.4rem; font-weight: 800;
  color: var(--blue); line-height: 1; margin: 12px 0 4px;
}
.price-amount small { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.price-sub { font-size: .83rem; color: var(--text-light); margin-bottom: 20px; }
.price-features { text-align: left; margin-bottom: 24px; }
.price-features li {
  font-size: .87rem; padding: 6px 0; color: var(--text);
  display: flex; gap: 8px; align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border: none; }
.price-features li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ===== TÉMOIGNAGES ===== */
.testi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testi::before {
  content: '\201C';
  font-family: Georgia, serif; font-size: 4.5rem;
  color: var(--blue); opacity: .15;
  position: absolute; top: 8px; left: 18px; line-height: 1;
}
.stars { color: #f59e0b; font-size: .95rem; margin-bottom: 10px; }
.testi-text {
  font-size: .92rem; color: var(--text);
  font-style: italic; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.testi-author { font-weight: 700; font-size: .88rem; color: var(--heading); }
.testi-role   { font-size: .8rem; color: var(--text-light); }

/* ===== SCORE / AVIS ===== */
.score-box {
  display: flex; align-items: center; gap: 24px;
  background: var(--blue-light); border-radius: var(--radius);
  padding: 28px 36px; margin: 32px 0;
}
.score-big {
  font-family: var(--font-h); font-size: 4.5rem; font-weight: 800;
  color: var(--blue); line-height: 1;
}
.score-stars { font-size: 1.5rem; margin-bottom: 4px; }
.score-detail { font-size: .85rem; color: var(--text); margin: 0; }

/* ===== PROS / CONS ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.pros, .cons {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border);
}
.pros { border-top: 4px solid #22c55e; }
.cons { border-top: 4px solid #f59e0b; }
.pros h3 { color: #16a34a; font-size: 1rem; margin-bottom: 14px; }
.cons h3 { color: #d97706; font-size: 1rem; margin-bottom: 14px; }
.pros li, .cons li { padding: 5px 0; font-size: .9rem; }
.pros li::before { content: '✓ '; color: #22c55e; font-weight: 700; }
.cons li::before { content: '△ '; color: #f59e0b; font-weight: 700; }

/* ===== TABLEAU COMPARATIF ===== */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); font-size: .9rem;
}
.compare-table th {
  background: var(--dark); color: var(--white);
  padding: 14px 18px; font-family: var(--font-h); font-size: .88rem; text-align: left;
}
.compare-table td {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--bg); }
.check { color: #22c55e; font-weight: 700; font-size: 1rem; }
.cross { color: #ef4444; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, #1a86d3 100%);
  padding: 88px 0; text-align: center;
}
.cta-section h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-section p {
  color: rgba(255,255,255,.85); font-size: 1.05rem;
  margin: 16px auto 32px; max-width: 560px;
}
.cta-note { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 14px; }

/* ===== MAILLAGE INTERNE ===== */
.internal-links { background: var(--bg); padding: 52px 0; }
.int-title {
  font-size: .85rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 22px;
}
.links-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.link-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  transition: all var(--transition); color: var(--heading);
}
.link-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow);
  text-decoration: none; transform: translateY(-2px);
}
.link-card-icon { font-size: 1.4rem; flex-shrink: 0; }
.link-card-title { font-weight: 600; font-size: .93rem; display: block; }
.link-card-desc  { font-size: .78rem; color: var(--text-light); }
.link-card-arrow { margin-left: auto; color: var(--blue); font-size: 1rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0 0;
  font-size: .83rem; color: var(--text-light);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb .sep { margin: 0 7px; }

/* ===== ALERT / INFO BOX ===== */
.info-box {
  background: var(--blue-light); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 24px 0; font-size: .92rem;
}

/* ===== FOOTER ===== */
.footer { background: var(--dark); padding: 60px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px;
}
.footer-logo {
  font-family: var(--font-h); font-size: 1.3rem; font-weight: 800;
  color: var(--white); margin-bottom: 12px;
}
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.55); max-width: 240px; line-height: 1.65; }
.footer-heading {
  font-family: var(--font-h); font-size: .88rem; font-weight: 700;
  color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.4);
}
.footer-disclaimer {
  font-size: .75rem; color: rgba(255,255,255,.35);
  margin-top: 14px; text-align: center; max-width: 700px; margin-left: auto; margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual:not(.hero-visual--img) { display: none; }
  .hero-visual--img { margin-top: 20px; }
  .hero-img { max-height: 320px; }
  .section-img--side { float: none; max-width: 100%; margin: 0 auto 24px; }
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .score-box { flex-direction: column; text-align: center; padding: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.38rem; }
  .btn-lg { padding: 15px 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .compare-table { font-size: .8rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
