/* BUTTONS */

.btn {
  padding: 16px 29px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn.primary {
  color: var(--text);
  background: var(--gradient);
  box-shadow: 0 18px 55px rgba(139, 92, 246, 0.35);
}

.btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 75px rgba(0, 212, 255, 0.25);
}

.btn.glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.btn.glass:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

/* CARTES */

.feature-card,
.screenshot-card,
.requirement-box,
.install-card,
.roadmap-item,
.download-panel,
.mega-social,
.contact-form,
.contact-info,
.code-card,
.trust-card,
.status-column,
.advanced-log,
.version-highlight,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-card,
.install-card,
.requirement-box,
.trust-card,
.roadmap-item {
  padding: 32px;
}

.feature-card {
  transition: var(--transition);
}

.feature-card:hover,
.trust-card:hover,
.screenshot-card:hover,
.advanced-log:hover {
  transform: translateY(-8px);
  background: var(--panel-2);
  border-color: rgba(0, 212, 255, 0.35);
}

.feature-icon,
.trust-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.38), rgba(0, 212, 255, 0.22));
  font-size: 28px;
  margin-bottom: 24px;
}

.feature-card h3,
.install-card h3,
.requirement-box h3,
.roadmap-item h3,
.trust-card h3 {
  font-size: 24px;
  margin-bottom: 13px;
}

.feature-card p,
.install-card p,
.requirement-box li,
.roadmap-item p,
.trust-card p {
  color: var(--muted);
  line-height: 1.75;
}

/* VIDEO YOUTUBE */

.youtube-showcase {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.youtube-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(0, 212, 255, 0.22), rgba(255, 45, 154, 0.22));
  box-shadow: var(--shadow);
}

.youtube-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 26px;
  display: block;
  background: #000;
}

.youtube-info {
  padding: 34px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.youtube-info span {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.youtube-info h3 {
  font-size: 30px;
  margin: 16px 0;
}

.youtube-info p {
  color: var(--muted);
  line-height: 1.75;
}

/* TERMINAL */

.code-card {
  overflow: hidden;
}

.code-top {
  display: flex;
  gap: 9px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.code-top span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.code-top span:nth-child(1) {
  background: #ff5f57;
}

.code-top span:nth-child(2) {
  background: #ffbd2e;
}

.code-top span:nth-child(3) {
  background: #28c840;
}

.code-body {
  padding: 32px;
  font-family: monospace;
  font-size: 17px;
}

.code-body p {
  color: #d9ddff;
  margin-bottom: 15px;
}

.code-body b {
  color: var(--blue);
}

.code-final {
  color: var(--text) !important;
  animation: blink 1s infinite;
}

/* CHANGELOG */

.changelog-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.changelog-filter {
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  transition: var(--transition);
}

.changelog-filter:hover,
.changelog-filter.active {
  background: var(--gradient);
  transform: translateY(-3px);
}

.version-highlight {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 38px;
  border-color: rgba(0, 212, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(0, 212, 255, 0.09), rgba(139, 92, 246, 0.08)),
    var(--panel);
  margin-bottom: 38px;
}

.version-glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.18);
  filter: blur(50px);
}

.version-left,
.version-right {
  position: relative;
  z-index: 1;
}

.version-left h3 {
  font-size: 36px;
  margin: 16px 0;
}

.version-left p {
  color: var(--muted);
  line-height: 1.75;
}

.version-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.version-right div {
  padding: 22px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.27);
  border: 1px solid var(--border);
}

.version-right span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.version-badge {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.version-badge.stable {
  color: #022c12;
  background: var(--green);
}

.version-badge.beta {
  color: #140b00;
  background: var(--orange);
}

.version-badge.future {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.advanced-changelog {
  display: grid;
  gap: 24px;
}

.advanced-log {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  padding: 32px;
  transition: var(--transition);
}

.advanced-log.hide {
  display: none;
}

.log-date {
  border-right: 1px solid var(--border);
  padding-right: 25px;
}

.log-date span {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.log-date small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.log-head h3 {
  font-size: 26px;
}

.log-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.log-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.log-list li {
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.log-list li::before {
  font-weight: 900;
  margin-right: 8px;
}

.log-list li.added::before {
  content: "+";
  color: var(--green);
}

.log-list li.improved::before {
  content: "↗";
  color: var(--blue);
}

.log-list li.fixed::before {
  content: "✓";
  color: var(--orange);
}

.log-list li.planned::before {
  content: "◇";
  color: var(--pink);
}

/* FAQ */

.faq {
  max-width: 900px;
  margin: auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  background: var(--panel-2);
  border-color: rgba(0, 212, 255, 0.32);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::after {
  content: "+";
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 26px 24px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.faq-item.active .faq-answer {
  max-height: 260px;
}

/* FORMULAIRE */

.contact-form {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 20px;
  border-radius: 17px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  outline: none;
  font-size: 16px;
  transition: var(--transition);
  display: block;
}

.contact-form input,
.contact-form select {
  min-height: 62px;
}

.contact-form textarea {
  min-height: 170px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777f99;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

/* SELECT PROPRE */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 58px;
  cursor: pointer;
}

/* Flèche personnalisée du select */
.select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.contact-form .btn {
  width: 100%;
}

.spam-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-message {
  color: var(--blue);
  font-weight: 900;
  text-align: center;
}

/* MODAL IMAGE */

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox img {
  max-width: 95vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 24px;
  z-index: 10000;
}

/* TOAST */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  padding: 15px 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 900;
  transition: var(--transition);
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* CONFIRMATION */

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 30000;
  padding: 24px;
  background: rgba(3, 5, 11, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.confirm-dialog.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-dialog-card {
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(5, 8, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(0.98);
  transition: var(--transition);
}

.confirm-dialog.active .confirm-dialog-card {
  transform: translateY(0) scale(1);
}

.confirm-dialog-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--blue);
  background: rgba(0, 212, 255, 0.10);
  border: 1px solid rgba(0, 212, 255, 0.18);
  display: grid;
  place-items: center;
}

.confirm-dialog-icon.danger {
  color: #ff4f8f;
  background: rgba(255, 45, 154, 0.10);
  border-color: rgba(255, 45, 154, 0.24);
}

.confirm-dialog-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirm-dialog-copy h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.15;
}

.confirm-dialog-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.confirm-dialog-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.confirm-dialog-cancel,
.confirm-dialog-confirm {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: var(--transition);
}

.confirm-dialog-cancel {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
}

.confirm-dialog-confirm {
  color: #03121d;
  background: var(--blue);
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.confirm-dialog-confirm.danger {
  color: #ffffff;
  background: #ff2d79;
  border-color: rgba(255, 45, 154, 0.42);
}

.confirm-dialog-cancel:hover,
.confirm-dialog-confirm:hover {
  transform: translateY(-2px);
}
