/* Nice Connextions Féminines - Premium Design System */
:root {
  --primary: #a33728;
  --primary-container: #c44f3d;
  --secondary: #735c00;
  --secondary-container: #fed65b;
  --tertiary: #006195;
  --background: #fdf9f4;
  --surface: #fdf9f4;
  --surface-container-low: #f7f3ee;
  --surface-container: #f1ede8;
  --surface-container-high: #ebe8e3;
  --on-surface: #1c1c19;
  --on-surface-variant: #57423e;
  --outline: #8b716d;
  --font-serif: 'Noto Serif', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--on-surface);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
}

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

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: white;
  padding: 1rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(163, 55, 40, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 55, 40, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: white;
  color: var(--on-surface);
  padding: 1rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--outline);
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--surface-container-low);
  transform: translateY(-1px);
}

/* ========== NAV BAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(253, 249, 244, 0.85);
  border-bottom: 1px solid rgba(139, 113, 109, 0.08);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.nav-brand span {
  font-weight: 400;
  font-size: 0.9rem;
  vertical-align: middle;
}

.nav-links a {
  margin: 0 1.2rem;
  text-decoration: none;
  color: var(--on-surface);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--on-surface);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, var(--background) 70%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 55, 40, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 97, 149, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  z-index: 10;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--on-surface-variant);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background-color: var(--outline);
  opacity: 0.3;
}

.hero-ctas {
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* ========== SECTIONS ========== */
.section {
  padding: 7rem 0;
}

.section-alt {
  background-color: var(--surface-container-low);
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* ========== CARDS ========== */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 1.2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.card p {
  color: var(--on-surface-variant);
  line-height: 1.7;
}

/* ========== DUAL ARCHITECTURE ========== */
.dual-arch {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  margin-top: 4rem;
}

.arch-card {
  flex: 1;
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.arch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.arch-icon {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.arch-list {
  list-style: none;
  margin-top: 2rem;
}

.arch-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--surface-container);
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

.arch-list li:last-child {
  border-bottom: none;
}

.arch-arrow {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.4;
  display: flex;
  align-items: center;
}

.security-banner {
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: white;
  padding: 1.5rem 3rem;
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  box-shadow: 0 8px 30px rgba(163, 55, 40, 0.2);
}

/* ========== STACK GRID ========== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stack-item {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.stack-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.stack-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.stack-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.stack-role {
  font-size: 0.8rem;
  color: var(--on-surface-variant);
}

/* ========== MAQUETTES (HIGH-RES) ========== */
.section-intro {
  max-width: 800px;
  margin-bottom: 4rem;
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.mockup-category-label {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.mockups-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.mockup-card-row {
  background: var(--surface-container-low);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mockup-card-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.mockup-info {
  padding: 2rem 3rem;
  background: var(--surface-container-high);
}

.mockup-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

.mockup-info p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.6;
}

.mockup-card-row .mockup-img-wrap {
  overflow: hidden;
  background: var(--surface-container);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem; /* Ajout d'aération */
}

/* Desktop hi-res screenshots - show full image */
.desktop-wrap img {
  width: 100%;
  max-width: 800px; /* Limiter la largeur maximale sur desktop */
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  border-radius: 8px; /* Coins adoucis */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Ombre douce */
}

.mockup-card-row:hover .desktop-wrap img {
  transform: scale(1.02);
}

/* Mobile hi-res screenshots - show full image */
.mobile-wrap img {
  width: 100%;
  max-width: 300px; /* Tranché pour ressembler à la taille d'un vrai mobile */
  height: auto;
  display: block;
  border-radius: 20px; /* Coins plus arrondis simulants un écran mobile */
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* Ombre portée plus marquée */
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-group {
  background: white;
  padding: 2.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.feature-group:hover {
  transform: translateY(-3px);
}

.feature-group-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--surface-container);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ========== TIMELINE ========== */
.timeline {
  margin-top: 4rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-container), transparent);
}

.timeline-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-week {
  background: var(--primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(163, 55, 40, 0.25);
}

.timeline-content {
  background: white;
  padding: 2.5rem;
  border-radius: 1.2rem;
  flex: 1;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(4px);
}

.timeline-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.timeline-tags {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--surface-container-low);
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

/* ========== DEVIS (DALIDADA STYLE) ========== */
.quote-document {
  background: white;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  margin-bottom: 4rem;
  border-top: 6px solid var(--primary);
}

.quote-doc-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--surface-container-low);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.quote-doc-brand {
  font-family: var(--font-sans);
  color: var(--on-surface);
}

.quote-doc-brand strong {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.quote-doc-title {
  text-align: right;
}

.quote-doc-title h3 {
  font-size: 1.2rem;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
}

.quote-doc-client {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--surface-container-low);
  border-left: 4px solid var(--primary);
  border-radius: 0 0.5rem 0.5rem 0;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

.quote-table th {
  background-color: var(--on-surface);
  color: white;
  text-align: left;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02rem;
}

.quote-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--surface-container);
  vertical-align: top;
}

.quote-table td small {
  display: block;
  color: var(--on-surface-variant);
  margin-top: 0.3rem;
  font-size: 0.85rem;
}

.col-center { text-align: center; }
.col-right { text-align: right; }

.total-row-sub td {
  padding-top: 1.5rem;
  border-bottom: none;
}

.total-row-vat td {
  border-bottom: none;
  color: var(--on-surface-variant);
  padding-top: 0.5rem;
}

.total-row td {
  font-size: 1.15rem;
  border-top: 2px solid var(--on-surface);
  border-bottom: 2px solid var(--on-surface);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.quote-doc-footer {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.quote-signature-block {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.sig-box {
  flex: 1;
  border: 1px solid var(--surface-container);
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.sig-title {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.sig-date {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
}

.sig-space {
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sig-fake {
  font-family: 'Brush Script MT', cursive, serif;
  font-size: 2rem;
  color: #000080;
  transform: rotate(-10deg);
  opacity: 0.8;
}

.sig-line {
  color: var(--outline);
  font-size: 0.8rem;
  font-style: italic;
}

/* ========== DOWNLOAD BOX ========== */
.download-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, rgba(163, 55, 40, 0.04), rgba(0, 97, 149, 0.03));
}

.download-box {
  background: white;
  padding: 5rem;
  border-radius: 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(163, 55, 40, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.download-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.download-logo span {
  font-weight: 400;
  font-size: 1rem;
}

.download-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.download-box p {
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.btn-download {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(163, 55, 40, 0.2);
}

.btn-download:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(163, 55, 40, 0.3);
}

.download-contact {
  margin-top: 3rem;
}

.download-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.download-contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.download-contact a:hover {
  color: var(--primary-container);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--on-surface);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer p {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .cards-grid-3, .dual-arch, .stack-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .stat-sep { display: none; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  
  .mockup-card-row {
    flex-direction: column;
  }
  
  .mockup-card-row .mockup-img-wrap,
  .mockup-card-row .mobile-wrap {
    flex: auto;
    width: 100%;
    max-height: 400px;
  }

  .desktop-wrap {
    max-height: 300px;
  }
  
  .mockup-info {
    padding: 2rem;
  }
  
  .quote-document {
    padding: 2rem;
  }
  
  .quote-doc-header, .quote-signature-block {
    flex-direction: column;
    gap: 1rem;
  }
  
  .quote-doc-title {
    text-align: left;
  }
  
  .quote-table {
    display: block;
    overflow-x: auto;
  }
  
  .download-box {
    padding: 3rem 2rem;
  }

  .download-box h2 {
    font-size: 1.8rem;
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
}
