﻿/* ============================================
   REMBOURSIO – Premium CSS
   Palette: Bleu marine #003B78 + Vert #18B84A
   Typo: Playfair Display (titres) + DM Sans (corps)
   ============================================ */

/* ── TOKENS ──────────────────────────────── */
:root {
  --navy:      #003B78;   /* Bleu principal */
  --navy-mid:  #0A2F5A;   /* Bleu foncé secondaire */
  --navy-soft: #0D4A96;   /* Bleu intermédiaire hover */
  --green:     #18B84A;   /* Vert principal */
  --green-light:#35C85F;  /* Vert clair secondaire */
  --green-pale: rgba(24,184,74,.1);
  --cream:     #F5F5F5;   /* Gris clair fond */
  --white:     #FFFFFF;
  --gray-50:   #F5F5F5;
  --gray-100:  #E8E8EC;
  --gray-400:  #9999A8;
  --gray-700:  #44445A;
  --text:      #0A1929;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(0,59,120,.07);
  --shadow-md: 0 8px 28px rgba(0,59,120,.12);
  --shadow-lg: 0 20px 60px rgba(0,59,120,.18);

  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── RESET / BASE ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}

/* ── NAV ─────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 5vw;
  height: 68px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.topbar.scrolled { box-shadow: var(--shadow-md); }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 40px; width: auto; }

.nav-links {
  display: flex; list-style: none; gap: .2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--gray-700);
  padding: .45rem .75rem; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--navy); background: var(--gray-50); }

.nav-cta {
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem; font-weight: 600;
  padding: .6rem 1.3rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--navy-soft); transform: translateY(-1px); }

/* Burger */
.burger {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none; cursor: pointer; margin-left: auto;
}
.burger span {
  display: block; width: 100%; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .35s, opacity .35s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── HERO ────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 100vh;
  padding: 120px 5vw 80px;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, var(--green-pale) 0%, transparent 70%),
    var(--cream);
  overflow: hidden;
  position: relative;
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-pale);
  border: 1px solid rgba(24,184,74,.3);
  padding: .35rem .9rem; border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.hero-copy > p {
  font-size: 1.05rem; color: var(--gray-700);
  max-width: 480px; margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  font-weight: 600; font-size: .95rem;
  padding: .85rem 1.8rem; border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,59,120,.25);
}
.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,59,120,.32);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600; font-size: .95rem;
  padding: .85rem 1.8rem; border-radius: 50px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* Hero counters */
.hero-counters {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  max-width: 480px;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.hero-card span { display: block; font-size: .78rem; font-weight: 500; color: var(--gray-400); margin-bottom: .25rem; }
.hero-card strong { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--navy); }

/* Hero visual */
.hero-visual { position: relative; z-index: 1; }

.visual-panel {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.visual-panel::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(24,184,74,.25) 0%, transparent 70%);
  border-radius: 50%;
}

.panel-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(24,184,74,.15);
  border: 1px solid rgba(24,184,74,.4);
  color: var(--green-light);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  padding: .35rem .9rem; border-radius: 50px;
  margin-bottom: 1.5rem;
}

.visual-panel h2 {
  font-size: 1.5rem; color: var(--white); margin-bottom: 1rem;
}

.visual-panel p { font-size: .9rem; color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }

.panel-features { display: flex; flex-direction: column; gap: .6rem; }
.panel-features span { font-size: .9rem; color: rgba(255,255,255,.9); font-weight: 500; }

.hero-shape {
  position: absolute; bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,184,74,.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── TRUST BAR ───────────────────────────── */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--navy);
  padding: 1.1rem 5vw;
}

.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.85);
  padding: .5rem 1.8rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 1rem; }

/* ── SECTIONS (shared) ───────────────────── */
.section {
  padding: 90px 5vw;
}
.section-light  { background: var(--cream); }
.section-glass  { background: var(--white); }
.section-gray   { background: var(--gray-50); }
.section-dark   { background: var(--navy); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-header h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); margin-bottom: 1rem; }
.section-header p  { font-size: .95rem; color: var(--gray-700); }

.section-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-pale);
  border: 1px solid rgba(24,184,74,.3);
  padding: .3rem .85rem; border-radius: 50px;
  margin-bottom: 1rem;
}
.section-tag-light { color: var(--green-light); background: rgba(24,184,74,.15); border-color: rgba(24,184,74,.35); }

/* ── STEPS ───────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.step-num {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.step-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .65rem; }
.step-card p  { font-size: .88rem; color: var(--gray-700); }

/* ── SERVICES ────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}

.svc-card {
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(24,184,74,.4); }

.svc-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.svc-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .6rem; }
.svc-card p  { font-size: .875rem; color: var(--gray-700); }

/* ── TEAM ────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  max-width: 1100px; margin: 0 auto;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.team-photo-div {
  background: var(--cream);
  height: 200px;
  overflow: hidden;
}
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.team-info { padding: 1.5rem 1.5rem; }
.team-info h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .25rem; }
.team-role {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  color: var(--green); text-transform: uppercase;
  margin-bottom: .75rem;
}
.team-info p { font-size: .84rem; color: var(--gray-700); line-height: 1.55; }

/* ── TESTIMONIALS ────────────────────────── */
.testimonials-carousel { position: relative; max-width: 1100px; margin: 0 auto; }

.carousel-container { overflow: hidden; border-radius: var(--radius-lg); }

.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: .25rem;
}

.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
}

.lang-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 50px;
  margin-bottom: .75rem;
}
.lang-fr { background: #EBF4FF; color: #1A5FA8; }
.lang-en { background: #E8F5E9; color: #2E7D32; }
.lang-de { background: #FFF3E0; color: #E65100; }

.testi-card p { font-size: .9rem; color: var(--gray-700); font-style: italic; flex: 1; }

.testi-footer { display: flex; align-items: center; gap: .85rem; margin-top: .5rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.testi-footer strong { display: block; font-size: .88rem; color: var(--navy); }
.testi-footer span   { font-size: .78rem; color: var(--gray-400); }

/* Carousel controls */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 50%; box-shadow: var(--shadow-sm);
  font-size: 1rem; cursor: pointer; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  z-index: 10;
}
.carousel-btn:hover { background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); }
.prev-btn { left: -22px; }
.next-btn { right: -22px; }

.carousel-indicators { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.indicator {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-100); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.indicator.active { background: var(--navy); transform: scale(1.3); }

/* ── CONTACT ─────────────────────────────── */
.contact-panel {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem;
  align-items: start;
  max-width: 1100px; margin: 0 auto;
}

.section-dark .section-header h2,
.contact-panel h2 { color: var(--white); }
.contact-panel > div > p { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 380px; }
.contact-phone { color: var(--green-light); font-weight: 700; }
.contact-phone:hover { color: var(--green); }

/* Form */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.form-grid .full { grid-column: 1/-1; }

.form-grid label { display: flex; flex-direction: column; gap: .4rem; }
.form-grid label span { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,.7); text-transform: uppercase; }

.form-grid input,
.form-grid select,
.form-grid textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  color: var(--white);
  font-size: .92rem; font-family: inherit;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder { color: rgba(255,255,255,.35); }
.form-grid select option { background: var(--navy-mid); color: var(--white); }
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--green);
  background: rgba(255,255,255,.12);
}
.form-grid textarea { min-height: 120px; resize: vertical; }

.submit-btn {
  grid-column: 1/-1;
  background: var(--green);
  color: var(--navy);
  font-weight: 700; font-size: .97rem;
  padding: 1rem;
  border: none; border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(24,184,74,.35);
}
.submit-btn:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(24,184,74,.45);
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-content {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: start;
  padding: 60px 5vw 40px;
  max-width: 1200px; margin: 0 auto;
}

.footer-logo-img { height: 38px; margin-bottom: 1rem; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.6); max-width: 300px; line-height: 1.7; margin-bottom: 1.5rem; }

.footer-socials { display: flex; gap: .6rem; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-btn:hover { background: var(--green); border-color: var(--green); color: var(--navy); }

.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-col a:hover { color: var(--green-light); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem 5vw;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1200px; margin: 0 auto;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }

.footer-badges { display: flex; gap: .5rem; }
.cert-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.15);
  padding: .25rem .65rem; border-radius: 4px;
}

/* ── REVEAL ANIMATIONS ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    text-align: center;
  }
  .hero-actions, .hero-counters { justify-content: center; }
  .hero-copy > p { margin: 0 auto 2rem; }
  .hero-copy h1 { margin: 0 auto 1.25rem; }
  .hero-visual { display: none; }

  .contact-panel { grid-template-columns: 1fr; gap: 2rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }

  .prev-btn { left: 0; }
  .next-btn { right: 0; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 1rem 5vw 1.5rem; gap: 0; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem .5rem; border-radius: 0; border-bottom: 1px solid var(--gray-100); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }

  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); width: 100%; justify-content: center; }
  .trust-item:last-child { border-bottom: none; }

  .form-grid { grid-template-columns: 1fr; }
  .hero-counters { grid-template-columns: 1fr 1fr; }
  .footer-links-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal { transition: none !important; animation: none !important; }
}