/* ============================================================
   IT Cares — Feuille de style principale
   FZ87 - Pièce N
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-mid: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--light);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ============================================================
   Header & Navigation
   ============================================================ */

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--primary); }

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

nav a:hover { background: var(--light); color: var(--primary); }
nav a.active { color: var(--primary); font-weight: 700; }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--gradient);
  padding: 5rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.06);
  top: -150px;
  right: -100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero h1 span { color: #60a5fa; }

.hero p { color: #94a3b8; font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat .label {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  background: #059669;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--gray); font-size: 0.93rem; line-height: 1.65; }

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* ============================================================
   Steps
   ============================================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { color: var(--gray); font-size: 0.9rem; }

/* ============================================================
   Pricing cards
   ============================================================ */

.price-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.15);
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-tag sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.5rem; }
.price-tag .unit { font-size: 0.9rem; font-weight: 500; color: var(--gray); }

.price-list {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.price-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--dark-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-list li::before { content: '✓'; color: var(--secondary); font-weight: 700; }

/* ============================================================
   Form
   ============================================================ */

.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark-mid);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   Contact info
   ============================================================ */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.contact-item p, .contact-item a { font-size: 0.92rem; color: var(--gray); }

/* ============================================================
   CTA Banner
   ============================================================ */

.cta-banner {
  background: var(--gradient);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-banner p { color: #94a3b8; margin-bottom: 2rem; }

/* ============================================================
   Footer
   ============================================================ */

footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { color: var(--white); font-size: 1.3rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--gray-light); font-size: 0.9rem; text-decoration: none; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
}

/* ============================================================
   Page hero (inner pages)
   ============================================================ */

.page-hero {
  background: var(--gradient);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.page-hero p { color: #94a3b8; font-size: 1.05rem; }

/* ============================================================
   About page
   ============================================================ */

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-card p { color: var(--gray); font-size: 0.9rem; }

/* ============================================================
   Animations
   ============================================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  nav.open { display: flex; }
  nav a { padding: 0.75rem 1rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { gap: 1.25rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn { justify-content: center; }
}
