/* =====================================================
   VINCULUM FINANCE — Feuille de style globale
   Palette : Bleu confiance / Vert validation / Noir pro
   ===================================================== */

:root {
  --c-blue:        #1d4ed8;
  --c-blue-dark:   #0a2540;
  --c-blue-soft:   #e8f0fe;
  --c-green:       #15803d;
  --c-green-soft:  #dcfce7;
  --c-violet:      #7c3aed; /* accent logo */
  --c-black:       #0b1220;
  --c-grey-900:    #1a1f36;
  --c-grey-700:    #4b5563;
  --c-grey-500:    #6b7280;
  --c-grey-300:    #d1d5db;
  --c-grey-100:    #f3f4f6;
  --c-grey-50:     #f8fafc;
  --c-white:       #ffffff;
  --c-warning:     #b45309;
  --c-warning-soft:#fef3c7;
  --c-info:        #0369a1;
  --c-info-soft:   #e0f2fe;
  --c-error:       #b91c1c;
  --c-error-soft:  #fee2e2;

  --radius:        14px;
  --radius-sm:     8px;
  --shadow-sm:     0 2px 8px rgba(15,23,42,.06);
  --shadow:        0 8px 24px rgba(15,23,42,.08);
  --shadow-lg:     0 20px 50px rgba(15,23,42,.14);

  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-grey-900);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-blue-dark); }
h1,h2,h3,h4 { color: var(--c-blue-dark); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ----- Topbar ----- */
.topbar {
  background: var(--c-blue-dark);
  color: var(--c-white);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.topbar-item { opacity: .9; }
.topbar-item:nth-child(-n+3)::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--c-green); border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.topbar-item.topbar-contact { margin-left: auto; }
.topbar-item.topbar-contact a { color: #fff; }

/* ----- Header ----- */
.site-header {
  background: var(--c-white);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--c-grey-100);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-black); }
.brand-logo { width: 44px; height: 44px; }
.brand-text strong { display: block; font-weight: 800; font-size: 17px; letter-spacing: 1px; color: var(--c-black); }
.brand-text small { display: block; font-size: 10px; color: var(--c-violet); font-weight: 700; letter-spacing: 2px; }
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav a { padding: 10px 14px; border-radius: 10px; font-weight: 500; color: var(--c-grey-700); }
.main-nav a:hover { background: var(--c-blue-soft); color: var(--c-blue); }
.main-nav a.active { color: var(--c-blue); background: var(--c-blue-soft); }
.nav-cta { color: #fff !important; background: var(--c-blue) !important; }
.nav-cta:hover { background: var(--c-blue-dark) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; gap: 5px; flex-direction: column; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--c-blue-dark); display: block; border-radius: 2px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; font-family: inherit;
  border: 0; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-success { background: var(--c-green); color: #fff; }
.btn-success:hover { background: #166534; color: #fff; }
.btn-outline { background: #fff; border: 2px solid var(--c-blue); color: var(--c-blue); }
.btn-outline:hover { background: var(--c-blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-grey-700); }
.btn-ghost:hover { background: var(--c-grey-100); }
.btn-large { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ----- Hero ----- */
.hero {
  background: linear-gradient(135deg, var(--c-blue-dark) 0%, #1d4ed8 60%, #2563eb 100%);
  color: #fff; padding: 80px 0 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.4), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 span { color: #a5f3fc; }
.hero-lead { font-size: 1.2rem; opacity: .92; margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-actions .btn-primary { background: var(--c-green); }
.hero-actions .btn-primary:hover { background: #166534; }
.hero-actions .btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--c-blue-dark); }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust > div { font-size: 13px; opacity: .9; }
.hero-trust strong { display: block; font-size: 22px; color: #a5f3fc; font-weight: 800; }

.hero-card {
  background: #fff; color: var(--c-grey-900);
  border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--c-blue-dark); margin-bottom: 8px; }
.hero-card .mini-result {
  background: var(--c-blue-soft); border-radius: 12px; padding: 14px;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
}
.hero-card .mini-result strong { color: var(--c-blue-dark); font-size: 22px; }

/* ----- Sections ----- */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--c-grey-500); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.section-alt { background: var(--c-grey-50); }

/* ----- Cards ----- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-grey-100);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--c-blue-soft); color: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.card.green .icon { background: var(--c-green-soft); color: var(--c-green); }
.card.violet .icon { background: #ede9fe; color: var(--c-violet); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--c-grey-700); margin: 0; }

/* ----- Trust badges (chiffres clés) ----- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 48px 0; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.4rem; color: var(--c-blue); font-weight: 800; }
.stat span { color: var(--c-grey-500); font-size: .95rem; }

/* ----- Forms ----- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; color: var(--c-grey-900); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px;
  border: 1.5px solid var(--c-grey-300); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s; color: var(--c-grey-900);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--c-blue);
  box-shadow: 0 0 0 4px var(--c-blue-soft);
}
.form-group .hint { font-size: 12px; color: var(--c-grey-500); margin-top: 4px; }
.form-card { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--c-grey-100); }

/* Range slider */
.range-group { margin-bottom: 24px; }
.range-group label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; color: var(--c-grey-700); margin-bottom: 10px; }
.range-group label span { color: var(--c-blue); font-weight: 700; font-size: 18px; }
.range-group input[type=range] {
  -webkit-appearance: none; width: 100%; height: 6px;
  background: var(--c-grey-300); border-radius: 4px; outline: none;
}
.range-group input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  background: var(--c-blue); border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(29,78,216,.4);
}
.range-group input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--c-blue); border-radius: 50%; border: 0; cursor: pointer;
}

/* Result boxes */
.result-box { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--c-blue); }
.result-box.success { border-color: var(--c-green); }
.result-box.warning { border-color: var(--c-warning); }
.result-box.info    { border-color: var(--c-info); }
.result-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--c-grey-100); }
.result-row:last-child { border-bottom: 0; }
.result-row span { color: var(--c-grey-500); }
.result-row strong { font-weight: 700; color: var(--c-blue-dark); font-size: 1.05rem; }
.result-highlight { background: var(--c-blue-soft); padding: 18px; border-radius: 12px; text-align: center; margin: 12px 0 18px; }
.result-highlight small { display: block; color: var(--c-blue-dark); font-size: 13px; opacity: .8; margin-bottom: 4px; }
.result-highlight strong { color: var(--c-blue); font-size: 2.1rem; font-weight: 800; }

/* Status badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.success { background: var(--c-green-soft); color: var(--c-green); }
.badge.warning { background: var(--c-warning-soft); color: var(--c-warning); }
.badge.info    { background: var(--c-info-soft); color: var(--c-info); }
.badge.neutral { background: var(--c-grey-100); color: var(--c-grey-700); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: var(--c-green-soft); color: var(--c-green); border-left: 4px solid var(--c-green); }
.alert-warning { background: var(--c-warning-soft); color: var(--c-warning); border-left: 4px solid var(--c-warning); }
.alert-info    { background: var(--c-info-soft); color: var(--c-info); border-left: 4px solid var(--c-info); }
.alert-error   { background: var(--c-error-soft); color: var(--c-error); border-left: 4px solid var(--c-error); }

/* ----- Steps (formulaire 3 étapes) ----- */
.steps {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 36px; padding: 0;
}
.step {
  flex: 1; padding: 14px;
  border-radius: 10px; background: var(--c-grey-100);
  text-align: center; font-size: 14px; color: var(--c-grey-700);
  font-weight: 500; position: relative;
}
.step.active { background: var(--c-blue); color: #fff; box-shadow: 0 4px 12px rgba(29,78,216,.3); }
.step.done   { background: var(--c-green); color: #fff; }
.step .step-num { display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: rgba(255,255,255,.25); font-weight: 700; margin-right: 6px; }
.progress-bar { height: 6px; background: var(--c-grey-100); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--c-blue), var(--c-violet)); transition: width .4s; }

/* ----- Témoignages ----- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial {
  background: #fff; padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-grey-100);
  position: relative;
}
.testimonial::before {
  content: "❝"; position: absolute; top: 12px; right: 18px;
  font-size: 56px; color: var(--c-blue-soft); font-family: Georgia, serif; line-height: 1;
}
.testimonial-stars { color: #f59e0b; margin-bottom: 12px; font-size: 16px; }
.testimonial-text { color: var(--c-grey-700); font-style: italic; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), var(--c-violet));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.testimonial-author strong { display: block; color: var(--c-grey-900); }
.testimonial-author small { color: var(--c-grey-500); font-size: 12px; }

/* ----- Process timeline ----- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.process-step { text-align: center; }
.process-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-blue); color: #fff;
  font-size: 22px; font-weight: 800; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(29,78,216,.3);
}
.process-step h3 { margin-bottom: 6px; }
.process-step p { color: var(--c-grey-500); font-size: .95rem; margin: 0; }

/* ----- Tableau (amortissement, admin) ----- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-grey-100); font-size: 14px; }
.table th { background: var(--c-grey-50); font-weight: 600; color: var(--c-grey-700); }
.table tr:hover td { background: var(--c-blue-soft); }
.table-wrap { overflow-x: auto; }

/* ----- Footer ----- */
.site-footer {
  background: var(--c-blue-dark); color: #cbd5e1; padding: 60px 0 24px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #cbd5e1; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #a5b4fc; }
.footer-about { font-size: 13px; line-height: 1.7; margin-top: 12px; max-width: 280px; opacity: .85; }
.footer-address { font-style: normal; font-size: 13px; line-height: 1.7; }
.footer-address a { color: #a5f3fc; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; }
.legal-info { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; opacity: .8; margin-bottom: 12px; }
.legal-info strong { color: #fff; }
.copyright { font-size: 12px; opacity: .7; margin: 0; }

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--c-blue-dark); color: #fff;
  padding: 16px 0; z-index: 1000; box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 14px; }
.cookie-banner a { color: #a5f3fc; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn-ghost { color: #fff; }
.cookie-actions .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ----- CTA section ----- */
.cta-section {
  background: linear-gradient(135deg, var(--c-blue-dark), var(--c-blue));
  color: #fff; text-align: center; padding: 70px 24px;
  border-radius: var(--radius); margin: 60px 0;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero-grid, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 16px; box-shadow: var(--shadow);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { width: 100%; }
}
@media (max-width: 600px) {
  .topbar { font-size: 12px; }
  .topbar-item.topbar-contact { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 50px 0 60px; }
  section { padding: 50px 0; }
  .steps { flex-wrap: wrap; }
}

/* ----- Login admin ----- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-blue-dark), var(--c-blue));
  padding: 20px;
}
.login-card {
  background: #fff; padding: 40px; width: 100%; max-width: 420px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.login-card .brand { justify-content: center; margin-bottom: 24px; }

/* ----- Admin layout ----- */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--c-grey-50); }
.admin-side { background: var(--c-blue-dark); color: #cbd5e1; padding: 24px 16px; }
.admin-side .brand-text strong { color: #fff; }
.admin-side .brand-text small { color: #a5b4fc; }
.admin-nav { list-style: none; padding: 0; margin: 24px 0; }
.admin-nav a { display: block; padding: 12px 14px; color: #cbd5e1; border-radius: 8px; font-size: 14px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 32px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.stat-card strong { display: block; font-size: 28px; color: var(--c-blue); font-weight: 800; }
.stat-card span { font-size: 13px; color: var(--c-grey-500); }

@media (max-width: 800px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { display: none; }
}

/* =====================================================
   HERO SLIDER (carousel d'images)
   ===================================================== */
.hero-slider {
  position: relative; min-height: 620px;
  background: var(--c-blue-dark);
  color: #fff; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,37,64,.92) 0%, rgba(29,78,216,.85) 50%, rgba(124,58,237,.55) 100%);
}
.hero-slide-content {
  position: relative; z-index: 2;
  width: 100%; padding: 60px 0;
}
.hero-slide-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 50px; align-items: center;
}
.hero-slide h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
  animation: slideInUp .8s ease both;
}
.hero-slide h1 .accent { color: #a5f3fc; }
.hero-slide h1 .accent-green { color: #4ade80; }
.hero-slide .hero-lead {
  font-size: 1.15rem; opacity: .95;
  margin-bottom: 28px; max-width: 580px;
  animation: slideInUp 1s ease both;
}
.hero-slide .hero-actions { animation: slideInUp 1.2s ease both; }
.hero-slide .hero-trust { animation: slideInUp 1.4s ease both; margin-top: 28px; }

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Carte simulateur dans le hero */
.hero-card-wrap { position: relative; z-index: 2; animation: slideInRight 1s ease both; }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Indicateurs du slider */
.slider-dots {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  display: flex; gap: 10px;
}
.slider-dots button {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.4); border: 0;
  cursor: pointer; transition: background .3s;
}
.slider-dots button.active { background: #fff; width: 56px; }

/* Flèches navigation */
.slider-arrow {
  position: absolute; top: 50%; z-index: 5;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; cursor: pointer;
  color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%);
  transition: background .25s;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* =====================================================
   IMAGES & PHOTOS
   ===================================================== */
.card-image {
  width: 100%; height: 200px;
  border-radius: 12px; overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  background: var(--c-grey-100);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-image img { transform: scale(1.05); }

.section-image-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center;
}
.section-photo {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.section-photo img { width: 100%; height: 100%; object-fit: cover; }

.image-stack {
  position: relative; min-height: 480px;
}
.image-stack img {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.image-stack img:nth-child(1) {
  top: 0; left: 0;
  width: 65%;
  z-index: 2;
}
.image-stack img:nth-child(2) {
  bottom: 0; right: 0;
  width: 60%;
  z-index: 1;
}

/* Avatar photo dans témoignages */
.testimonial-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-white);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Bandeau avec image de fond */
.banner-section {
  position: relative;
  padding: 80px 0;
  background-size: cover; background-position: center;
  color: #fff; text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 60px 0;
}
.banner-section::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,37,64,.85), rgba(29,78,216,.80));
}
.banner-section > * { position: relative; z-index: 2; }
.banner-section h2 { color: #fff; }
.banner-section p { font-size: 1.1rem; opacity: .95; max-width: 640px; margin: 0 auto 24px; }

/* Service hero avec image de fond */
.service-card-img {
  position: relative; min-height: 280px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  background-size: cover; background-position: center;
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  transition: transform .3s;
}
.service-card-img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(10,37,64,.85) 90%);
}
.service-card-img:hover { transform: translateY(-6px); }
.service-card-img > * { position: relative; z-index: 2; }
.service-card-img h3 { color: #fff; margin-bottom: 6px; }
.service-card-img p { color: rgba(255,255,255,.92); font-size: .92rem; margin: 0; }

@media (max-width: 980px) {
  .hero-slider { min-height: auto; padding: 30px 0; }
  .hero-slide { position: relative; opacity: 1; visibility: visible; transition: none; }
  .hero-slide:not(.active) { display: none; }
  .hero-slide-grid { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }
  .section-image-grid { grid-template-columns: 1fr; }
  .image-stack { min-height: 320px; }
}

/* Utilitaire */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mt-2 { margin-top: 16px; }
.flex { display: flex; gap: 12px; }
.flex-end { justify-content: flex-end; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
