/* ============================================================
   Copro Support - styles.css
   Charte graphique navy blue premium
   ============================================================ */

:root {
  --navy: #0d1b3e;
  --navy-dark: #080f21;
  --blue: #1a3a6e;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --white: #ffffff;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.section {
  padding: 96px 0;
}

/* ---------- Typographic helpers ---------- */
.label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 16px;
}

.label.accent-text {
  color: var(--accent);
}

.label.white-text {
  color: rgba(255, 255, 255, 0.7);
}

.accent {
  color: var(--accent);
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  max-width: 720px;
  margin-bottom: 48px;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn-navy:hover {
  background: var(--accent);
}

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

.btn-accent:hover {
  background: #1d4fd0;
}

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

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

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.navbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 44px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: var(--accent);
}

.navbar-cta {
  color: var(--white);
}

.navbar-cta:hover {
  color: var(--white);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 168px 0 96px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    45deg,
    #ffffff 0,
    #ffffff 1px,
    transparent 1px,
    transparent 22px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-accent-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 40px;
  border-radius: 2px;
}

/* ---------- Services ---------- */
.services {
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.card-top-accent {
  border-top: 4px solid var(--accent);
}

.card-top-navy {
  border-top: 4px solid var(--navy);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-icon.accent {
  color: var(--accent);
}

.card-icon.navy {
  color: var(--navy);
}

.card-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.card-text {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 20px;
}

.card-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.card-list.accent li::before {
  background: var(--accent);
}

.card-list.navy li::before {
  background: var(--navy);
}

/* ---------- Nouila ---------- */
.nouila {
  background: var(--white);
}

.nouila-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.nouila-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}

.nouila-text {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
}

.nouila-left .btn {
  margin-top: 12px;
}

.nouila-link {
  display: inline-block;
  margin-top: 20px;
  margin-left: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.nouila-link:hover {
  opacity: 0.7;
}

.nouila-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nouila-stat {
  background: var(--light);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 28px 24px;
}

.nouila-stat-value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.nouila-stat-label {
  font-size: 14px;
  color: var(--gray);
}

/* ---------- CoproPilot ---------- */
.copropilot {
  background: var(--navy);
  color: var(--white);
}

.cp-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.cp-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.cp-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  margin-bottom: 48px;
}

.cp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.cp-point {
  background: var(--blue);
  border-radius: 6px;
  padding: 32px;
}

.cp-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cp-num.accent {
  color: var(--accent);
}

.cp-num.white {
  color: var(--white);
}

.cp-point-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.cp-point-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.cp-cta {
  text-align: center;
}

/* ---------- A propos ---------- */
.apropos {
  background: var(--light);
}

.apropos-lead {
  font-size: 16px;
  color: var(--gray);
  max-width: 760px;
  margin-top: -24px;
  margin-bottom: 48px;
}

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.apropos-point {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}

.apropos-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.apropos-point-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.apropos-point-text {
  font-size: 15px;
  color: var(--gray);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--white);
}

.contact-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--gray);
  margin-top: -32px;
  margin-bottom: 56px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  margin-bottom: 28px;
}

.contact-info-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.contact-info-value {
  font-size: 16px;
  color: var(--navy);
}

.contact-info-value a:hover {
  color: var(--accent);
}

.contact-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  margin-top: 8px;
}

/* ---------- Form ---------- */
.contact-form {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group textarea {
  resize: vertical;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
}

.footer-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 260px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.footer-col ul li a {
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 32px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 64px 0;
  }

  .navbar-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    box-shadow: 0 12px 24px rgba(13, 27, 62, 0.08);
  }

  .navbar-links.open {
    transform: translateY(0);
  }

  .navbar-links a {
    width: 100%;
    padding: 14px 0;
  }

  .navbar-cta {
    margin-top: 8px;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    padding: 128px 0 72px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-stat-value {
    font-size: 32px;
  }

  .section-title,
  .nouila-title,
  .cp-title {
    font-size: 28px;
  }

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

  .nouila-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cp-grid,
  .apropos-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-inner {
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .nouila-link {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .nouila-right {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}
