:root {
    --bg: #e2e2e2;
    --txt: #000000;
    --cover: #868686;
    --bg2: #aaaaaa;
    --cover: #bfbfbf;
  --navbar-height: 72px;
    

}

@media (prefers-color-scheme: dark) {
     :root {
        --bg: #414141;
        --txt: #ffffff;
        --cover: #2c2c2c;
        --bg2: #1e1e1e;
        --cover: #575757;
      --navbar-height: 72px;

    }
}

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

html, body {
  margin: 0;
  padding: 0;
  padding-top: var(--navbar-height);
  background-color: var(--bg);
  color: var(--txt);
    font-family: 'Helvetica', sans-serif;
    scrollbar-gutter: stable;
    padding: 0%;
}

/* SECTION */
.bloc {
  width: 100%;
}

/* ===== SECTION TITRE ===== */
.titre-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 30px 30px;
  margin: 120px;
  text-align: center;
  position: relative;
  background: var(--bg);
}

#navbar-container + .titre-page {
  margin-top: 0 !important;
  padding-top: 12px !important;
}

.title-wrapper {
  max-width: 800px;

  margin: 0 auto;
  padding: 0 30px;
}

.main-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--txt);
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.subtitle {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 25px;
  background: linear-gradient(135deg, var(--txt) 0%, rgba(91, 124, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1.3;
}

.tagline {
  font-size: 26pt;
  color: var(--txt);
  opacity: 0.8;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.6;
  margin: 5px 0 0;
}

.home-dashboard-cta {
  margin-top: 22px;
  justify-content: center;
}

.home-dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--txt);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-dashboard-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .titre-page {
    margin: 0;
    padding: 20px 16px 28px;
    min-height: calc(100svh - var(--navbar-height));
    justify-content: center;
    text-align: center;
  }

  .title-wrapper {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 8px;
  }

  .main-title,
  .tagline {
    text-align: center;
  }

  .tagline {
    font-size: clamp(1.1rem, 5.2vw, 1.45rem);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
  margin-top: 150px;
  pointer-events: none;
}

.chevron {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--txt);
  border-bottom: 2px solid var(--txt);
  transform: rotate(45deg);
  animation: chevron 2s infinite;
  
}



@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== FEATURE CARDS ===== */
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0px 30px;
  max-width: 1200px;
  margin: 0 auto -60px;
  position: relative;
  z-index: 10;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid rgba(91, 124, 255, 0.2);
  border-radius: 20px;
  padding: 50px 35px;
  text-align: center;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.feature-card:hover {
  border-color: rgba(91, 124, 255, 0.6);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(91, 124, 255, 0.15);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  display: block;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--txt);
  font-weight: 600;
  line-height: 1.4;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--txt);
  line-height: 1.6;
  margin: 0;
}

.container-plateformes {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.container-plateformes img {
    width: 700px;
    height: auto;
    transition: transform 0.3s;
    opacity: 0;
    transform: scale(0.9);
    max-width: 90%;
}

.container-plateformes img.loaded {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .container-plateformes img {
        width: 100%;
    }
}

/* ===== PLATFORMS SECTION ===== */
.platforms-section {
  padding: 0px 30px;
  background: var(--bg);
  margin-bottom: 55px;

}

.platforms-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.platforms-content h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--txt);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.et-bien-plus {
    text-align: center;
    font-size: 16pt;
    color: var(--txt);
}

.comment-faire {
    text-align: center;
    font-size: 3rem;
    color: var(--txt);
    margin: 60px 0 0px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .comment-faire {
        font-size: 2rem;
    }
}

.comment-faire-color {
    text-align: center;
    font-size: 3rem;
    font-family: 'poppins', sans-serif;
    background: linear-gradient(135deg, #5b7cff, #77cdff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

@media (max-width: 768px) {
    .comment-faire-color {
        font-size: 28pt;
    }
}

.section-covers {
  padding: 0px 30px;
  background: var(--bg);
}

.section-covers h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 80px;
  color: var(--txt);
  font-weight: 700;
  line-height: 1.3;
}

.grid-covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 50px auto;
}

.cover {
  aspect-ratio: 1/1;
  background: var(--bg2);
  border-radius: 24px;
  position: relative;
  cursor: pointer;
  pointer-events: all;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(91, 124, 255, 0.1);
  min-height: 280px;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.cover:hover {
  border-color: rgba(91, 124, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(91, 124, 255, 0.15);
}

.cover img,
.cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(91, 124, 255, 0.08) 100%);
  width: 100%;
  backdrop-filter: blur(20px);
  max-width: 600px;
  border-radius: 30px;
  padding: 50px;
  position: relative;
  border: 1px solid rgba(91, 124, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
  align-items: flex-start;
}

#modal-media-container {
  width: 130px;
  height: 130px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(91, 124, 255, 0.3);
}

#modal-media-container img,
#modal-media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fonctionnalites {
  padding: 140px 30px;
  background: var(--bg);
}

.fonctionnalites h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--txt);
  margin: 40px 0;
  margin-left: 40px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 900px;
  letter-spacing: -0.3px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease 0.2s;
}

.fonctionnalites.loaded h1 {
  opacity: 1;
  transform: translateX(0);
}

.fonctionnalites h1:nth-child(1) {
  transition-delay: 0.1s;
}

.fonctionnalites h1:nth-child(2) {
  transition-delay: 0.2s;
}

.fonctionnalites h1:nth-child(3) {
  transition-delay: 0.3s;
}

.fonctionnalites h1:nth-child(4) {
  transition-delay: 0.4s;
}

.fonctionnalites h1:nth-child(odd) {
  text-align: left;
}

.fonctionnalites h1:nth-child(even) {
  text-align: right;
}

@media (max-width: 768px) {
  .fonctionnalites h1 {
    text-align: center !important;
  }
}

.pied-de-page {
    width: 100%;
  text-align: center;
  font-size: 0.95rem;
  color: var(--txt);
  padding: 60px 30px;
  background: var(--bg2);
  border-top: 1px solid rgba(91, 124, 255, 0.1);
  margin-top: 80px;
  opacity: 0.8;

}
.dev-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dev-popup-box {
    background: #111;
    color: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.dev-popup-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.dev-popup-buttons button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

/* ===== FEATURES POPUP ===== */
.features-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.features-popup.active {
    display: flex;
    opacity: 1;
}

.features-popup-content {
    background: var(--bg2);
    padding: 50px 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.4s ease;
    border: 1px solid rgba(91, 124, 255, 0.2);
}

.features-popup.active .features-popup-content {
    transform: scale(1);
}

.close-features-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--txt);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.close-features-popup:hover {
    opacity: 1;
}

#popup-feature-number {
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-left: 20px;
    color: var(--txt);
    text-align: left;
}

#popup-feature-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-left: 20px;
    color: var(--txt);
    opacity: 0.85;
    text-align: left;
}



