@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.75rem 2rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-brand a {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 80%;
}

nav a:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

nav a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Sections */
section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

section:first-of-type {
  margin-top: 80px;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

section p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

section ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

section li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Slider */
#slider {
  padding: 0;
  margin-top: 70px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.slider {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
}

.slider div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  animation: fadeIn 1s ease-in-out;
}

.slider div.active {
  display: block;
}


/* Images différentes pour desktop et mobile */
/* Slide 1 - Desktop */
.slide-1 {
    background-image: url('../photos/bg1.jpg');
}

/* Slide 2 - Desktop */
.slide-2 {
    background-image: url('../photos/bg2.jpg');
    background-position: center;
    background-size: cover;
}

/* Slide 3 - Desktop */
.slide-3 {
    background-image: url('../photos/bg3.jpg');
    background-position: center;
    background-size: cover;
}

/* Images pour mobile - vous pouvez remplacer par vos images mobiles */
@media (max-width: 768px) {
    .slide-1 {
        background-image: url('../photos/bg1-mobile.jpg'); /* Remplacez par votre image mobile */
        background-position: center;
        background-size: cover;
    }
    
    .slide-2 {
        background-image: url('../photos/bg2-mobile.jpg'); /* Remplacez par votre image mobile */
        background-position: center;
        background-size: cover;
    }
    
    .slide-3 {
        background-image: url('../photos/bg3-mobile.jpg'); /* Remplacez par votre image mobile */
        background-position: center;
        background-size: cover;
    }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* App Section */
#app_ {
  border-radius: var(--border-radius-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#titre_download {
  font-size: 3.5rem;
  text-align: center;
}

#txt_doxnload {
  width:45%;
  text-align: center;
}
/* Responsive */
@media (max-width: 768px) {
  #app_ {
    border-radius: var(--border-radius-xl);
    display: flex;
    flex-direction:column;
    justify-content: space-between;
  }
  #titre_download {
    font-size: 2.5rem;
    margin-top: 3rem ;
  }
  #txt_doxnload {
    width:100%;
  }
}

#txt_doxnload p{
  margin: auto;
  text-align: center;
  margin-top: 0.5rem ;
  display: flex;
}

#lien_download{
  text-align: center;
  display: block;
  margin: auto;
  color: rgb(246, 48, 239);
}

#app p {
  margin-bottom: 2rem;
}

#app a {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--bg-gradient);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

#app a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.phone-container {
  margin: auto;
  text-align: center;
}

.phone-container img {
  width:500px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Content Cards */
.content {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.content h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content blockquote {
  background: linear-gradient(135deg, #f093fb15 0%, #f5576c15 100%);
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  font-style: italic;
  color: var(--text-primary);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

table th {
  background: var(--bg-gradient);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--bg-tertiary);
  color: var(--text-secondary);
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover {
  background: var(--bg-secondary);
}

/* Iframe */
iframe {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
  width: 100%;
  height: 400px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 3.5rem 2rem 2.5rem;
  margin-top: 4rem;
}

footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

footer h3,
footer h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

footer p,
footer li,
footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-brand p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

footer .footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

footer .footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

footer .footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

footer .footer-col h4 {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

footer .footer-col li {
  margin-bottom: 0.75rem;
}

footer .footer-col li i {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

footer .footer-contact li {
  display: flex;
  align-items: center;
}

footer .footer-bottom {
  margin-top: 2.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  section h3 {
    font-size: 1.25rem;
  }
  
  .slider {
    height: 400px;
  }
  
  .content {
    padding: 1.5rem;
  }
  
  header {
    padding: 0.75rem 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  iframe {
    height: 250px;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  table th,
  table td {
    padding: 0.75rem 0.5rem;
  }

  footer .footer-inner {
    gap: 1.75rem;
  }

  footer .footer-social {
    justify-content: flex-start;
  }

  .nav-container {
    padding: 0 0.25rem;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.5rem;
    transform-origin: top;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    border-radius: 0 0 1rem 1rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 1100;
  }

  nav ul li {
    width: 100%;
  }

  nav ul a {
    display: block;
    width: 100%;
    padding: 0.65rem 0;
  }

  body.nav-open header nav ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    position: relative;
  }

  nav ul::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 18px;
    border-width: 0 8px 10px 8px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.98) transparent;
  }
}