/* ============================================================
   BTX CONSEIL — Global Stylesheet
   Palette: #04d5bb (turquoise) / #3c5a76 (marine) / #0d1117 (noir)
   Typo: Cerebri Sans (display) + Inter (corps)
   ============================================================ */

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

/* --- TOKENS --- */
:root {
  --turquoise:     #04d5bb;
  --turquoise-light: #0dfddf;
  --marine:        #3c5a76;
  --teal:          #3c7675;
  --noir:          #0d1117;
  --noir-soft:     #131b24;
  --blanc:         #f5f7f9;
  --blanc-pur:     #ffffff;
  --gris-texte:    #4a5568;
  --gris-light:    #e8edf2;

  --font-display: 'Cerebri Sans', 'Nunito', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.25s ease;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gris-texte);
  background: var(--blanc-pur);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--marine);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { max-width: 68ch; }

/* --- LAYOUT --- */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section--dark {
  background: var(--noir);
  color: var(--blanc);
}

.section--teal {
  background: var(--teal);
  color: var(--blanc);
}

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

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

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(4, 213, 187, 0.15);
  transition: var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav__links a {
  color: rgba(255,255,255,0.75);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--turquoise);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--turquoise);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  background: var(--turquoise) !important;
  color: var(--noir) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta:hover {
  background: var(--turquoise-light) !important;
  transform: translateY(-1px);
}

.nav__cta::after { display: none !important; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--blanc);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  background: var(--noir);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(4,213,187,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(60,90,118,0.2) 0%, transparent 60%);
}

/* Ligne scan — signature visuelle */
.hero__scan {
  position: absolute;
  top: 0; left: -100%;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--turquoise), transparent);
  animation: scan 3.5s ease-in-out forwards;
  animation-delay: 0.4s;
  opacity: 0.7;
}

@keyframes scan {
  0%   { left: -2px; opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { left: 100%; opacity: 0; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 60px 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--turquoise);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--turquoise);
}

.hero__title {
  color: var(--blanc-pur);
  margin-bottom: 28px;
  max-width: 14ch;
}

.hero__title em {
  font-style: normal;
  color: var(--turquoise);
}

.hero__subtitle {
  color: rgba(255,255,255,0.65);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 56ch;
  margin-bottom: 48px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--turquoise);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--turquoise);
  color: var(--noir);
}

.btn--primary:hover {
  background: var(--turquoise-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4,213,187,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--blanc);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--marine);
  border: 1.5px solid var(--marine);
}

.btn--outline-dark:hover {
  background: var(--marine);
  color: var(--blanc);
  transform: translateY(-2px);
}

/* --- SECTION HEADER --- */
.section-header {
  margin-bottom: 64px;
}

.section-header--centered {
  text-align: center;
}

.section-header--centered p {
  margin: 16px auto 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1.5px;
  background: var(--turquoise);
}

/* --- CARDS --- */
.card {
  background: var(--blanc-pur);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gris-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card__icon {
  width: 52px; height: 52px;
  background: rgba(4,213,187,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card__title {
  margin-bottom: 12px;
  color: var(--marine);
}

.card__text {
  font-size: 0.95rem;
  color: var(--gris-texte);
  line-height: 1.7;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}

/* --- FOOTER --- */
.footer {
  background: var(--noir);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 32px;
}

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

.footer__brand img {
  height: 48px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 36ch;
}

.footer__col h4 {
  color: var(--blanc-pur);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__col ul a:hover {
  color: var(--turquoise);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a:hover {
  color: var(--turquoise);
}

/* --- BADGE --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.badge--turquoise {
  background: rgba(4,213,187,0.12);
  color: var(--turquoise);
}

.badge--marine {
  background: rgba(60,90,118,0.1);
  color: var(--marine);
}

/* --- DIVIDER --- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--turquoise);
  border-radius: 2px;
  margin: 20px 0;
}

.divider--centered { margin: 20px auto; }

/* --- CONTACT FORM --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--marine);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 1.5px solid var(--gris-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--noir);
  background: var(--blanc-pur);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(4,213,187,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- UTILITAIRES --- */
.text-turquoise { color: var(--turquoise); }
.text-marine { color: var(--marine); }
.text-white { color: var(--blanc-pur); }
.text-muted { color: rgba(255,255,255,0.55); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .nav__links { display: none; flex-direction: column; gap: 0; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--noir-soft);
    padding: 24px 24px 32px;
    border-top: 1px solid rgba(4,213,187,0.15);
  }
  .nav__links.open a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); width: 100%; }
  .nav__cta { margin-top: 16px; }
  .hero__title { max-width: 100%; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 24px; }
  .hero__stat-value { font-size: 1.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .card { padding: 28px 20px; }
  .btn { width: 100%; justify-content: center; }
  .section-header { margin-bottom: 40px; }
}

/* --- ANIMATIONS SCROLL --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- TRÈS PETITS ÉCRANS (480px) --- */
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding-top: 72px; min-height: auto; padding-bottom: 48px; }
  .hero__inner { padding: 40px 0; }
  .hero__subtitle { font-size: 0.95rem; }
  .hero__stat-value { font-size: 1.3rem; }
  .container { width: 94vw; }
  .section-header--centered p { font-size: 0.95rem; }
}
