/*! JuriCongo Landing Page | Mukuna Tech | 2025 */

/* ==========================================================================
   Base styles and CSS Variables
   ========================================================================== */

:root {
  /* Color Variables - Updated palette */
  --navy-dark: #253551; /* Bleu de nuit - Primary color */
  --navy-light: #253551; /* Same as navy-dark for consistency */
  --dark-gray: #2A2829; /* Gris sombre */
  --bg-light: #F4F6F9; /* Gris claire - Background */
  --gold-accent: #253551; /* Using navy color instead of gold */
  --text-dark: #2A2829; /* Text color using dark gray */
  --text-light: #F4F6F9; /* Light text on dark backgrounds */
  --text-muted: #6C757D; /* Secondary text */
  --white: #FFFFFF; /* Pure white elements */
  --black: #000000; /* Black elements */
  --error: #E57373; /* Error states */
  --or-accent: #D4AF37;

  /* Spacing Variables */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Container Width */
  --container-width: 1200px;
  --container-padding: 1.5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  color: var(--navy-dark);
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: 2.25rem;
  color: var(--navy-dark);
}

h3 {
  font-size: 1.5rem;
  color: var(--gold-accent);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

a {
  color: var(--navy-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}

ul {
  list-style-position: inside;
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
  color: var(--text-muted);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.form-row {
  width: 100%;
}

section {
  padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-nav {
  padding: var(--spacing-sm) 0;
  background-color: transparent;
  transition: all 0.3s ease;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

.nav-contact {
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
}

.nav-contact:hover {
  background-color: var(--white);
  color: var(--navy-dark) !important;
}

/* Scrolled state for navigation */
.scrolled {
  background-color: var(--navy-dark);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--spacing-lg) + 60px); /* Added extra padding for the fixed navbar */
  background: url('../assets/images/Gemini_Generated_Image_36baq836baq836ba.jpeg') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(37, 53, 81, 0.7); /* Semi-transparent overlay using navy color */
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-logo {
  margin-bottom: var(--spacing-md);
}

.hero-logo img {
  max-width: 150px;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

#hero h1 {
  font-size: 4rem;
  margin-bottom: var(--spacing-xs);
  text-shadow: var(--shadow-sm);
  color: var(--white);
}

#hero h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

#hero p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.74);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.cta-button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--white);
  color: var(--navy-dark);
  font-weight: bold;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  min-width: 200px;
}

.cta-button:hover {

  background-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-button.secondary {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.cta-button.secondary:hover {
  background-color: var(--white);
  color: var(--navy-dark);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

#features {
  background-color: var(--bg-light);
  position: relative;
  color: var(--text-dark);
}

#features h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--navy-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.feature-card {
  background-color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--or-accent);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 53, 81, 0.02) 0%, rgba(37, 53, 81, 0.05) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--or-accent);
}

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

.feature-card:hover .icon-placeholder {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--navy-dark) 30%, var(--or-accent) 100%);
}

.feature-icon {
  margin-bottom: var(--spacing-sm);
}

.icon-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--or-accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  transition: transform 0.3s ease, background 0.4s ease;
}

.feature-card h3 {
  color: var(--navy-dark);
}

.feature-card p {
  color: var(--text-dark);
  margin-bottom: 0;
}

.feature-card i { /* Cible toutes les icônes dans les cartes */
  font-size: 3rem; /* 48px, pour ajuster la taille */
  color: var(--or-accent); /* Utilise votre couleur OR */
  margin-bottom: 1rem; /* Espace en dessous */
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */

#benefits {
  background-color: var(--bg-light);
  position: relative;
}

.benefits-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.benefits-text h2 {
  color: var(--navy-dark);
  margin-bottom: var(--spacing-md);
}

.benefits-list {
  list-style-type: none;
}

.benefits-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--or-accent);
  font-weight: bold;
}

.benefits-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(38, 166, 154, 0.2) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(192, 160, 98, 0.3);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.image-placeholder::after {
  content: "App Preview";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ==========================================================================
   App Preview Section
   ========================================================================== */

#app-preview {
  background-color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

#app-preview h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--navy-dark);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
}

.preview-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  /*box-shadow: var(--shadow-sm);*/
  transition: all 0.3s ease;
  aspect-ratio: 9/19;
}

.preview-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.preview-item .image-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  background-color: var(--navy-light);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Très important pour que l'image couvre bien la zone sans se déformer */
}

@media only screen and (min-width: 768px) {
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 1024px) {
  .preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

#newsletter {
  background-color: var(--bg-light);
  text-align: center;
  color: var(--text-dark);
}

#newsletter h2 {
  color: var(--navy-dark);
  margin-bottom: var(--spacing-sm);
}

#newsletter p {
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

#contact {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: var(--spacing-xl) 0;
}

#contact h2 {
  color: var(--navy-dark);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  background-color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: var(--text-dark);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text-dark);
}

.contact-item h3 {
  color: var(--navy-dark);
  margin-bottom: var(--spacing-xs);
}

.contact-item p {
  margin-bottom: 0;
  color: var(--text-muted);
}

@media only screen and (min-width: 768px) {
  .contact-info {
    flex-direction: row;
    justify-content: center;
  }

  .contact-item {
    flex: 1;
    max-width: 350px;
  }
}

#signup-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: var(--spacing-sm);
}

.form-row {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  margin: 0 auto;
  gap: var(--spacing-sm);
}

.form-row input {
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--text-dark);
  font-size: 1rem;
  border: 1px solid var(--text-muted);
  transition: all 0.3s ease;
}

.form-row input:focus {
  outline: none;
  border-color: var(--gold-accent);
  background-color: var(--white);
}

.form-row input::placeholder {
  color: var(--text-muted);
}

.form-row button {
  padding: var(--spacing-sm);
  background-color: var(--navy-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-row button:hover {
  background-color: var(--white);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.success-message {
  color: var(--navy-dark);
  background-color: rgba(255, 201, 71, 0.1);
  border: 1px solid var(--gold-accent);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
  margin-top: var(--spacing-md);
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ==========================================================================
   Section Animation Styles
   ========================================================================== */

.section-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================================
   Footer Styles
   ========================================================================== */

footer {
  padding-top: var(--spacing-md);
  background-color: var(--bg-light);
}

.footer-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--navy-dark), transparent);
  margin: 0 auto var(--spacing-md) auto;
  width: 80%;
  max-width: 800px;
}

/* ==========================================================================
   Founder Section Styles
   ========================================================================== */

#founder {
  padding: var(--spacing-lg) 0;
}

.founder-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  align-items: center;
}

.founder-photo {
  display: flex;
  justify-content: center;
}

.founder-photo img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.founder-bio p {
  color: var(--text-dark);
}

@media only screen and (min-width: 768px) {
  .founder-content {
    grid-template-columns: 380px 1fr;
    gap: var(--spacing-lg);
  }

  .founder-photo img {
    width: 360px;
    height: 360px;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 50%;
  }
}

/* ==========================================================================
   Founder Access Section Styles
   ========================================================================== */

#founder-access {
  /*background-color: var(--white); !* Un fond différent pour contraster *!*/
  padding: var(--spacing-lg) 0;
}

.founder-access-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  background-color: var(--bg-light); /* Un léger fond pour l'encart */
}

.founder-icon {
  font-size: 2rem;
  color: var(--or-accent); /* Utilise votre couleur Or */
  margin-bottom: var(--spacing-sm);
}

.founder-access-box h3 {
  color: var(--navy-dark);
  margin-bottom: var(--spacing-sm);
}

.founder-access-box p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark); /* Un texte un peu plus sombre pour la lisibilité */
}

.founder-access-box .future-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Media Queries for Responsive Design
   ========================================================================== */

/* Small Mobile (320px to 479px) */
@media only screen and (max-width: 479px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  #hero {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: var(--spacing-lg);
  }

  #hero h1 {
    font-size: 2.25rem;
  }

  #hero h2 {
    font-size: 1.5rem;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row input,
  .form-row button {
    width: 100%;
  }
}

/* Mobile (480px to 767px) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  #hero {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: var(--spacing-lg);
  }

  #hero h1 {
    font-size: 2.75rem;
  }

  #hero h2 {
    font-size: 1.75rem;
  }
}

/* Mobile Navigation (for screens up to 767px) */
@media only screen and (max-width: 767px) {
  .main-nav .container {
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100vh;
    background-color: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 1001;
    padding: var(--spacing-lg) 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    padding: var(--spacing-sm) 0;
    font-size: 1.2rem;
  }

  .nav-contact {
    margin-top: var(--spacing-md);
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: var(--container-padding);
    z-index: 1002;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .mobile-menu-overlay.active {
    display: block;
  }
}

/* Tablet (768px and up) */
@media only screen and (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-content {
    flex-direction: row;
    align-items: center;
  }

  .benefits-text {
    flex: 1;
  }

  .benefits-image {
    flex: 1;
  }

  #signup-form {
    flex-direction: row;
  }

  #signup-form input {
    flex: 1;
  }

  #signup-form button {
    flex: 0 0 auto;
  }

  .company-info {
    flex: 2;
    margin-bottom: 0;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

/* Desktop (1024px and up) */
@media only screen and (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

