/* ============================================
   Robin Informatique — Showcase Website
   Light Theme — Professional & Welcoming
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --clr-bg: #f8f9fc;
  --clr-bg-white: #ffffff;
  --clr-bg-hero: linear-gradient(170deg, #ffffff 0%, #f5f3ff 45%, #ede9fe 100%);
  --clr-bg-section: #ffffff;
  --clr-bg-section-alt: #f1f5f9;

  --clr-text: #334155;
  --clr-text-muted: #64748b;
  --clr-text-heading: #0f172a;

  --clr-primary: #4f46e5;
  --clr-primary-hover: #4338ca;
  --clr-accent: #0891b2;
  --clr-accent-hover: #0e7490;
  --clr-success: #059669;
  --clr-success-light: #ecfdf5;
  --clr-success-border: #a7f3d0;

  --clr-gradient: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
  --clr-gradient-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(8, 145, 178, 0.08) 100%);
  --clr-phone-bg: #4f46e5;

  --clr-card-border: #e2e8f0;
  --clr-card-bg: #ffffff;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 4px 16px rgba(79, 70, 229, 0.2);
  --shadow-success: 0 4px 16px rgba(5, 150, 105, 0.2);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-base);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-primary-hover);
}

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

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--clr-text-heading);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--clr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Cards --- */
.glass-card {
  background: var(--clr-card-bg);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
  color: #fff;
}

.btn-phone {
  background: var(--clr-phone-bg);
  color: #fff;
  box-shadow: var(--shadow-primary);
  font-size: 1.1rem;
  padding: 16px 34px;
}

.btn-phone:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  color: #fff;
}

.btn-outline {
  background: var(--clr-bg-white);
  color: var(--clr-text-heading);
  border: 2px solid var(--clr-card-border);
}

.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-card-border);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--clr-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--clr-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-gradient);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-text-heading);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-phone-bg);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-primary);
}

.header-phone:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
  color: #fff;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--clr-text-heading);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: var(--clr-bg-hero);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--clr-success-light);
  border: 1px solid var(--clr-success-border);
  border-radius: var(--radius-full);
  color: var(--clr-success);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--clr-text-heading);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

.trust-item .icon {
  font-size: 1.2rem;
}

.hero-visual {
  flex: 0 0 400px;
  position: relative;
}

.hero-card {
  background: var(--clr-bg-white);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--clr-gradient);
}

.hero-card-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.hero-card h3 {
  font-size: 1.2rem;
  color: var(--clr-text-heading);
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-card p {
  font-size: 0.93rem;
  color: var(--clr-text-muted);
  margin-bottom: 0;
}

.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.stat {
  text-align: center;
  padding: 14px;
  background: var(--clr-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-card-border);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--clr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services {
  background: var(--clr-bg-section);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 32px 24px;
  text-align: center;
}

.service-icon {
  font-size: 2.6rem;
  margin-bottom: 18px;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ============================================
   PRICING SECTION
   ============================================ */
#tarifs {
  background: var(--clr-bg-section-alt);
}

.pricing-info {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-info .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--clr-success-light);
  border: 1px solid var(--clr-success-border);
  border-radius: var(--radius-full);
  color: var(--clr-success);
  font-weight: 600;
  font-size: 0.93rem;
}

.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-card-border);
  background: var(--clr-bg-white);
  box-shadow: var(--shadow-sm);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table thead th {
  background: var(--clr-bg-section-alt);
  padding: 18px 24px;
  text-align: left;
  font-weight: 700;
  color: var(--clr-text-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--clr-card-border);
}

.pricing-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--transition);
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: #f8fafc;
}

.pricing-table td {
  padding: 18px 24px;
  vertical-align: middle;
}

.pricing-table td:first-child {
  font-weight: 600;
  color: var(--clr-text-heading);
}

.price-after {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--clr-primary);
}

.price-before {
  font-size: 0.83rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 8px;
}

.pricing-note {
  text-align: center;
  margin-top: 28px;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.pricing-note strong {
  color: var(--clr-success);
}

/* ============================================
   ABOUT / SAP SECTION
   ============================================ */
#about {
  background: var(--clr-bg-section);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 18px;
}

.about-content p {
  color: var(--clr-text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-content strong {
  color: var(--clr-text-heading);
}

.trust-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-card {
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.trust-card .icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.trust-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 6px;
}

.trust-card p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
  background: var(--clr-bg-section-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 32px 24px;
  text-align: center;
}

.contact-card .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text-heading);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--clr-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.contact-card a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-primary);
  -webkit-text-fill-color: unset;
}

.contact-card a:hover {
  color: var(--clr-primary-hover);
}

.contact-cta {
  text-align: center;
  margin-top: 48px;
}

.contact-cta p {
  color: var(--clr-text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--clr-text-heading);
  color: #cbd5e1;
  padding: 44px 0 28px;
}

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

.footer .logo {
  color: #f1f5f9;
}

.footer .logo-icon {
  box-shadow: none;
}

.footer-left p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-right strong {
  color: #e2e8f0;
}

.footer-bottom {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.8rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
    color: var(--clr-text-heading);
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .header-phone {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    font-size: 0.85rem;
  }

  .pricing-table td,
  .pricing-table thead th {
    padding: 14px 16px;
  }
}
