@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 & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand a {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand a::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-right: 5px;
  background: url('../images/favicon.ico') center/contain no-repeat;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

header nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

header nav a:hover,
header nav a:focus-visible {
  background: var(--bg-tertiary);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  header nav {
    position: fixed;
    top: 76px;
    right: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  header nav a {
    width: 100%;
    border-radius: var(--border-radius);
  }

  body.nav-open header nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

.apprentissage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.apprentissage-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-tertiary);
}

.apprentissage-card h3 {
  margin-bottom: 0.75rem;
}

.apprentissage-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.apprentissage-list li {
  color: var(--text-secondary);
}

.apprentissage-flow {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
  border: 1px solid rgba(220, 38, 38, 0.12);
}

.apprentissage-flow ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.apprentissage-flow li {
  margin-bottom: 0.65rem;
}

/* 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;
    }
    
    .slide-4 {
        background-image: url('../photos/bg4-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;
  }
  
  
  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;
  }

}