/* =========================================
   PUISSANCE 3 — Site 2026
   ========================================= */

:root {
  --blue:       #7594D0;
  --blue-dark:  #5a79be;
  --blue-light: #9CC6EF;
  --mint:       #adefd1;
  --mint-dark:  #7dd9b0;
  --white:      #ffffff;
  --gray-50:    #f8f9fb;
  --gray-100:   #f0f2f5;
  --gray-300:   #d1d5db;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --dark:       #111827;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14);
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--mint);
  color: var(--dark);
  border-color: var(--mint);
}
.btn-primary:hover {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(173,239,209,.5);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost-dark:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(117,148,208,.4);
}
.btn-outline-sm {
  padding: 8px 18px;
  border-radius: 6px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-outline-sm:hover {
  background: var(--blue);
  color: var(--white);
}

/* =========================================
   HEADER
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-100);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header-top { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { height: 52px; width: auto; }

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
  font-size: 17px;
  transition: color var(--transition);
}
.phone-link:hover { color: var(--blue-dark); }

/* NAV */
.nav { background: var(--white); }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.nav-link svg { flex-shrink: 0; }

/* DROPDOWN */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  border-top: 2px solid var(--blue);
  z-index: 200;
}
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--gray-700);
  transition: all var(--transition);
}
.dropdown li a:hover {
  background: var(--gray-50);
  color: var(--blue);
  padding-left: 26px;
}
.has-dropdown:hover .dropdown { display: block; }

/* DROPDOWN RICH */
.dropdown-rich { min-width: 360px; padding: 8px; }
.dropdown-rich li a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
}
.dropdown-rich li a:hover {
  background: var(--gray-50);
  color: inherit;
  padding-left: 12px;
}
.drop-icon {
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 22px;
}
.drop-text { display: flex; flex-direction: column; gap: 2px; }
.drop-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}
.drop-text em {
  font-size: 14px;
  font-style: normal;
  color: var(--gray-500);
  line-height: 1.4;
}
.badge-soon {
  display: inline-block;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  background: #EEF2FF;
  color: var(--blue);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
}

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: calc(70vh - 84px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(17,24,39,.57) 0%,
    rgba(17,24,39,.39) 55%,
    rgba(17,24,39,.14) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 60px;
  padding-bottom: 100px;
}
.hero-typewriter-line {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.typewriter-text {
  color: var(--mint);
  font-weight: 700;
}
.typewriter-cursor {
  color: var(--mint);
  font-weight: 300;
  animation: blink .75s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-highlight {
  color: var(--mint);
  display: block;
}
.hero-sub {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 780px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.6);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 56px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--gray-500);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================
   PRODUCTS GRID
   ========================================= */
.products { background: var(--gray-50); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  overflow: hidden;
  height: 360px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.product-card-body p {
  color: var(--gray-500);
  font-size: 15px;
  flex: 1;
  margin-bottom: 18px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  transition: gap var(--transition);
}
.product-card:hover .card-link { gap: 10px; }

/* =========================================
   ARGUMENTS
   ========================================= */
.arguments { background: var(--white); }
.arguments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.argument-item { text-align: center; }
.argument-icon {
  width: 72px;
  height: 72px;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue);
  transition: all var(--transition);
}
.argument-item:hover .argument-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08);
}
.argument-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.argument-item p { color: var(--gray-500); font-size: 14px; }

/* =========================================
   DOMAINS
   ========================================= */
.domains { background: var(--gray-50); }
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.domain-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.domain-card-img {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.domain-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.domain-card:hover .domain-card-img img { transform: scale(1.06); }
.domain-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,.4), transparent);
}
.domain-card-body {
  background: var(--white);
  padding: 24px 28px;
}
.domain-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.domain-card-body p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* =========================================
   STATS
   ========================================= */
.stats {
  background: var(--blue);
  padding: 72px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--mint);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* =========================================
   RÉFÉRENCES
   ========================================= */
.references { background: var(--white); }
.references-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}
.logo-item {
  filter: grayscale(1) opacity(.6);
  transition: all var(--transition);
}
.logo-item:hover { filter: grayscale(0) opacity(1); transform: scale(1.08); }
.logo-item img { height: 48px; width: auto; object-fit: contain; }

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section { background: var(--gray-50); }
.cta-box {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #3a7bd5 100%);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  text-align: center;
  color: var(--white);
}
.cta-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-box p {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.cta-actions .btn-primary {
  background: var(--mint);
  color: var(--dark);
  border-color: var(--mint);
}
.cta-actions .btn-ghost-dark {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.cta-actions .btn-ghost-dark:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand img { margin-bottom: 20px; background: white; padding: 8px 12px; border-radius: 8px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 320px; margin-bottom: 20px; }
.social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}
.social-link:hover { background: var(--blue); transform: translateY(-2px); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--mint); }

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact-list svg { color: var(--mint); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--mint); }

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card.fade-in:nth-child(2) { transition-delay: .1s; }
.product-card.fade-in:nth-child(3) { transition-delay: .2s; }
.product-card.fade-in:nth-child(4) { transition-delay: .3s; }
.argument-item.fade-in:nth-child(2) { transition-delay: .1s; }
.argument-item.fade-in:nth-child(3) { transition-delay: .2s; }
.argument-item.fade-in:nth-child(4) { transition-delay: .3s; }
.domain-card.fade-in:nth-child(2) { transition-delay: .1s; }
.domain-card.fade-in:nth-child(3) { transition-delay: .2s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .arguments-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-box { padding: 56px 40px; }
}

@media (max-width: 768px) {
  .header-contact .btn-outline-sm { display: none; }
  .burger { display: flex; }
  .nav { display: none; border-top: 1px solid var(--gray-100); }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-link { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--gray-100); }
  .dropdown { position: static; box-shadow: none; border-top: none; padding-left: 16px; border-radius: 0; }
  .dropdown-rich { padding: 0; min-width: unset; }
  .dropdown-rich li a { padding: 10px 8px; }
  .drop-icon { width: 36px; height: 36px; font-size: 18px; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }

  .hero { min-height: 85vh; }
  .hero-content { padding-top: 48px; padding-bottom: 80px; }
  .products-grid { grid-template-columns: 1fr; }
  .domains-grid { grid-template-columns: 1fr; }
  .domain-card-img { height: 220px; }
  .arguments-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .references-logos { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-box { padding: 48px 24px; }
  .cta-actions { flex-direction: column; align-items: center; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .arguments-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
