/* ===========================
   TWOMORROW – style.css
   Conseil en Systèmes d'Information
   =========================== */

:root {
  --navy: #0D2052;
  --navy-dark: #081435;
  --navy-mid: #1A3470;
  --accent: #2563EB;
  --accent-light: #DBEAFE;
  --white: #FFFFFF;
  --off-white: #F8F9FC;
  --gray-100: #F1F3F9;
  --gray-200: #E2E6F0;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --text: #111827;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, .logo-text { font-family: 'Raleway', sans-serif; }

/* ===========================
   NAVIGATION
   =========================== */

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-size: 20px; font-weight: 700;
  color: white; letter-spacing: -0.5px;
}

.nav-links {
  display: flex; gap: 32px; list-style: none; margin: 0 auto;
}

.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--gray-700); text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background: var(--navy);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--navy-mid); }
.nav-cta.active-cta { background: var(--accent); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}

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

/* ===========================
   LAYOUT HELPERS
   =========================== */

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-pad { padding: 80px 0; }

.section-label {
  font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; color: var(--navy-dark);
  line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px; color: var(--gray-500);
  line-height: 1.7; max-width: 560px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary {
  display: inline-block;
  background: var(--accent); color: white;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.btn-primary-dark {
  display: inline-block;
  background: var(--navy); color: white;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary-dark:hover { background: var(--navy-mid); }

.btn-outline {
  display: inline-block;
  background: transparent; color: rgba(255,255,255,0.8);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
  cursor: pointer;
}

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

/* ===========================
   HERO
   =========================== */

.hero {
  background: var(--navy-dark);
  background-image: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(37,99,235,0.18) 0%, transparent 70%);
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 80px 5%;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute; bottom: -30%; right: 5%;
  width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content { max-width: 620px; z-index: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: #93C5FD; font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 28px; letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800; color: white;
  line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero h1 em { color: #60A5FA; font-style: normal; }

.hero p {
  font-size: 18px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 40px;
  font-weight: 300; max-width: 520px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 48px;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-num {
  font-family: 'Raleway', sans-serif;
  font-size: 32px; font-weight: 800; color: white;
}

.stat-label {
  font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 4px;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */

.page-hero {
  background: var(--navy-dark);
  background-image: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 70%);
  padding: 80px 5% 80px;
}

/* ===========================
   EXPERTISE CARDS
   =========================== */

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

.expertise-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.25s;
  position: relative; overflow: hidden;
}

.expertise-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,32,82,0.08);
}

.expertise-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0; transition: opacity 0.25s;
}

.expertise-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px; height: 24px;
  stroke: var(--accent); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.expertise-card h3 {
  font-size: 18px; font-weight: 700;
  color: var(--navy-dark); margin-bottom: 10px;
}

.expertise-card p {
  font-size: 14px; color: var(--gray-500); line-height: 1.65;
}

.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px;
}

.tag {
  font-size: 11px; font-weight: 500;
  background: var(--gray-100); color: var(--gray-700);
  padding: 4px 10px; border-radius: 6px;
}

/* Full-width expertise cards (expertises page) */
.expertise-grid-lg { grid-template-columns: 1fr; gap: 16px; }

.expertise-card-full {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; gap: 28px; align-items: flex-start;
  transition: all 0.25s;
}

.expertise-card-full:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(13,32,82,0.06);
}

.ecf-icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.ecf-icon svg { width: 28px; height: 28px; }

.ecf-content h2 {
  font-size: 20px; font-weight: 700;
  color: var(--navy-dark); margin-bottom: 10px;
}

.ecf-content p {
  font-size: 15px; color: var(--gray-500); line-height: 1.7;
  margin-bottom: 12px;
}

/* ===========================
   APPROACH SECTION
   =========================== */

.approach-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

.steps { margin-top: 36px; }

.step {
  display: flex; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Raleway', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--accent); width: 28px;
  flex-shrink: 0; padding-top: 3px;
}

.step h4 {
  font-size: 16px; font-weight: 600;
  color: var(--navy-dark); margin-bottom: 6px;
}

.step p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

.approach-visual {
  background: var(--navy-dark);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative; overflow: hidden;
  position: sticky; top: 90px;
}

.approach-visual::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.av-title {
  font-family: 'Raleway', sans-serif;
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 32px;
}

.av-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.av-item:last-child { border-bottom: none; }
.av-dot { width: 8px; height: 8px; background: #60A5FA; border-radius: 50%; flex-shrink: 0; }
.av-text { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85); }
.av-pct { margin-left: auto; font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700; color: #60A5FA; }

/* ===========================
   SECTORS
   =========================== */

.sectors-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px; margin-top: 48px;
}

.sector-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  transition: all 0.25s;
}

.sector-detail-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(13,32,82,0.06);
}

.sdc-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}

.sdc-icon { font-size: 28px; flex-shrink: 0; }

.sdc-header h2 {
  font-size: 18px; font-weight: 700; color: var(--navy-dark);
}

.sector-detail-card p {
  font-size: 14px; color: var(--gray-500); line-height: 1.65;
  margin-bottom: 14px;
}

/* ===========================
   WHY CARDS
   =========================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 48px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.why-num {
  font-family: 'Raleway', sans-serif;
  font-size: 36px; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}

.why-card h4 {
  font-size: 16px; font-weight: 600;
  color: var(--navy-dark); margin-bottom: 8px;
}

.why-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ===========================
   FAQ
   =========================== */

.faq-nav {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 12px;
}

.faq-nav a {
  font-size: 14px; color: var(--gray-700);
  text-decoration: none; padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s; border-left: 2px solid transparent;
}

.faq-nav a:hover {
  background: var(--off-white);
  color: var(--navy-dark);
  border-left-color: var(--accent);
}

.faq-list { max-width: 100%; }

.faq-item { border-bottom: 1px solid var(--gray-200); }

.faq-q {
  width: 100%; background: none; border: none;
  text-align: left; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 500; color: var(--navy-dark);
  gap: 16px;
}

.faq-q span {
  font-size: 22px; color: var(--gray-500);
  transition: transform 0.3s; flex-shrink: 0;
}

.faq-q.open span { transform: rotate(45deg); }

.faq-a {
  font-size: 15px; color: var(--gray-500);
  line-height: 1.75; max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
}

.faq-a.open { max-height: 300px; padding-bottom: 22px; }

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
  background: var(--navy-dark);
  padding: 100px 5%;
  background-image: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(37,99,235,0.2) 0%, transparent 70%);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; color: white;
  letter-spacing: -1px; margin-bottom: 18px;
}

.cta-section p {
  font-size: 18px; color: rgba(255,255,255,0.55); margin-bottom: 40px;
}

.cta-btns {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}

/* ===========================
   CONTACT
   =========================== */

.contact-grid {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 64px; align-items: start;
}

.form-group {
  display: flex; flex-direction: column; gap: 6px;
}

.form-group label {
  font-size: 13px; font-weight: 500; color: var(--gray-700);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: white; color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

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

.form-group textarea { resize: vertical; }

.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--gray-200);
}

.contact-item:last-of-type { border-bottom: none; }

.ci-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.ci-icon svg { width: 20px; height: 20px; }

.ci-label {
  font-size: 11px; font-weight: 600;
  color: var(--gray-500); letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 4px;
}

.ci-value {
  font-size: 15px; font-weight: 500; color: var(--navy-dark);
  margin-bottom: 2px;
}

.ci-value a { color: var(--accent); text-decoration: none; }
.ci-value a:hover { text-decoration: underline; }

.ci-sub { font-size: 13px; color: var(--gray-500); }

.contact-box-dark {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px; margin-top: 24px;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}

.footer-brand .logo-text {
  font-size: 20px; color: white; margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,0.4);
  line-height: 1.7; max-width: 280px;
}

.footer-col h5 {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block; font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none; margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.3);
  flex-wrap: wrap; gap: 12px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .approach-inner { grid-template-columns: 1fr; }
  .approach-visual { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 8px; }
  .nav-links.open {
    display: flex;
    position: absolute; top: 68px; left: 0; right: 0;
    background: white; padding: 16px 5% 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-toggle { display: flex; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .expertise-card-full { flex-direction: column; }
  .faq-nav, .faq-list { max-width: 100%; }
  .contact-info .contact-item:last-of-type { border-bottom: 1px solid var(--gray-200); }
}

@media (max-width: 480px) {
  nav { padding: 0 4%; }
  .hero { padding: 60px 4%; min-height: 70vh; }
  .page-hero { padding: 60px 4%; }
  .section-pad { padding: 60px 0; }
  .container { padding: 0 4%; }
}

/* Logo text in navbar */
.logo { gap: 10px; }
.logo-text {
  font-size: 20px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.5px;
}
footer .logo-text { color: white; }

/* Approach single column */
.approach-single { grid-template-columns: 1fr; max-width: 680px; }
