/* public/css/style.css */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #000;
  color: #1d1d1f;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

header {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
  background-image: url('../images/header-bg.jpg');
}

header .logo {
  max-width: 150px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
}

p {
  font-size: 1rem;
  margin: 10px 0 0;
}

form {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

form input[type="file"],
form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 1rem;
}

form button {
  background-color: #0071e3;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #005bb5;
}

footer {
  background: #151418;
  color: white;
  padding: 60px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.footer-brand {
  max-width: 300px;
  margin-top: 40px;
}

.footer-brand img {
  height: 24px;
  width: auto;
  margin-bottom: 24px;
  image-rendering: -webkit-optimize-contrast;
  -webkit-font-smoothing: antialiased;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  line-height: 1;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: white;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Ajout des styles pour la section des formats */
.formats-info {
  background: #fff;
  padding: 80px 0;
  position: relative;
}

.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .formats-grid {
    grid-template-columns: 1fr;
  }
}

.format-category {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 12px;
}

.format-category h3 {
  color: #1d1d1f;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.format-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.format-category li {
  margin-bottom: 10px;
}

.format-category a {
  color: #0071e3;
  text-decoration: none;
  display: inline-block;
  padding: 5px 0;
}

.format-category a:hover {
  color: #005bb5;
  text-decoration: underline;
}

/* Ajustement de la section converter */
.converter {
  margin-top: 40px;
}

/* Styles for format details pages */
.format-details {
  background: white;
  border-radius: 16px;
  padding: 40px;
  margin-top: 0;
  position: relative;
  border: 1px solid #eaeaea;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.format-details h2 {
  color: #1d1d1f;
  margin-bottom: 20px;
}

.format-details h3 {
  color: #1d1d1f;
  margin: 30px 0 15px;
}

.format-details pre {
  background-color: #f5f5f7;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

.format-details code {
  font-family: monospace;
  background-color: #f5f5f7;
  padding: 2px 5px;
  border-radius: 4px;
}

.back-link {
  display: inline-block;
  color: #0071e3;
  text-decoration: none;
  margin-bottom: 20px;
}

.back-link:hover {
  color: #005bb5;
  text-decoration: underline;
}

.format-details ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 15px 0;
}

.format-details li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Format page CTA section */
.format-cta {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 30px;
  text-align: center;
}

.format-cta h3 {
  color: #1d1d1f;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.format-cta p {
  color: #515154;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: #0071e3;
  color: #fff;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #005bb5;
  text-decoration: none;
  color: #fff;
}

.site-header {
  background: transparent;
  padding: 32px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
  background: rgba(21, 20, 24, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  max-width: 1400px;
}

.site-header .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.site-header .logo img {
  height: 24px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  -webkit-font-smoothing: antialiased;
  filter: brightness(0) invert(1);
}

.site-header .logo:hover {
  opacity: 0.9;
}

.site-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.site-header nav a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.site-header nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.site-header nav .external-link {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.site-header nav .external-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.site-header nav .external-link:hover svg {
  transform: translate(2px, -2px);
  opacity: 1;
}

.hero {
  background-image: url('../images/checksub-convertor-background.png');
  background-size: cover;
  background-position: top center;
  color: white;
  padding: 0;
  min-height: 100vh;
  position: relative;
  margin: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 18, 18, 0.75) 0%,
    rgba(18, 18, 18, 0.65) 100%
  );
  width: 100vw;
}

.hero .container {
  position: relative;
  z-index: 1;
  align-items: center;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 32px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.services-preview {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.service-icon {
  width: 20px;
  height: 20px;
  color: #6b2cf5;
  background: white;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(107, 44, 245, 0.2);
}

.hero-content {
  margin-top: -180px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
}

.converter-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Update size adjustments for smaller screens */
@media (max-width: 1366px) {  /* 13-15 inch screens */
  .converter-card {
    transform: scale(0.85);
    transform-origin: top center;
    margin: -30px auto 0;
    width: 85%;
    max-width: 500px;
  }

  .upload-zone {
    padding: 28px;
  }

  .format-selector select {
    padding: 10px;
  }

  .convert-btn {
    padding: 8px 16px;
  }
}

/* Add an intermediate breakpoint for medium-sized laptops */
@media (max-width: 1200px) {
  .converter-card {
    transform: scale(0.9);
    width: 90%;
    max-width: 550px;
    margin: -20px auto 0;
  }
}

@media (max-width: 992px) {
  .converter-card {
    transform: scale(0.95);
    width: 95%;
    margin: -10px auto 0;
  }
}

@media (max-width: 768px) {
  .converter-card {
    transform: none;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }
}

.upload-zone {
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.upload-zone.has-file {
  border-color: #6b2cf5;
  background: rgba(107, 44, 245, 0.05);
}

.upload-zone .highlight {
  border-color: #6b2cf5;
  background: rgba(107, 44, 245, 0.05);
}

.dropzone.highlight {
  border-color: #6b2cf5;
  background: rgba(107, 44, 245, 0.05);
}

.file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.dropzone {
  margin-bottom: 24px;
  position: relative;
  cursor: pointer;
}

.upload-icon {
  color: #6b2cf5;
  margin-bottom: 16px;
  display: inline-block;
}

.upload-text {
  color: #333;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.browse-btn {
  background: #6b2cf5;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.browse-btn:hover {
  background: #5620c5;
  transform: translateY(-1px);
}

.or-text {
  color: #666;
  margin: 16px 0;
}

.format-selector {
  margin-bottom: 24px;
}

.format-selector select {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  background: white;
  cursor: pointer;
}

.format-selector select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.terms-text {
  font-size: 0.875rem;
  color: #666;
}

.terms-text a {
  color: #6b2cf5;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

/* Update existing footer styles */
footer {
  background: #1a1a1a;
  color: white;
  padding: 40px 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.social-links {
  margin: 20px 0;
}

.convert-btn {
  background: #6b2cf5;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  width: 100%;
}

.convert-btn:disabled {
  background: #a990f4;
  cursor: not-allowed;
  transform: none;
}

.convert-btn:hover {
  background: #5620c5;
  transform: translateY(-1px);
}

.convert-btn:disabled:hover {
  background: #a990f4;
  transform: none;
}

/* Format accordion styles */
.formats-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.format-header {
  background: #f5f5f7;
  padding: 20px;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  transition: background-color 0.2s ease;
}

.format-header:hover {
  background: #eaeaec;
}

.format-header h3 {
  margin: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.format-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.format-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  padding: 0 20px;
  background: white;
  border: none;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  background: #f5f5f7;
}

.format-content.active {
  max-height: 2000px;
  opacity: 1;
  padding: 20px;
}

.format-content ul {
  margin: 0;
  padding: 0;
}

.format-content li {
  list-style: none;
  margin-bottom: 8px;
}

.format-content li:last-child {
  margin-bottom: 0;
}

.format-header.active {
  border-radius: 8px 8px 0 0;
}

.format-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8b5cf6;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
}

.format-learn-more:hover {
  transform: translateY(-1px);
}

.format-learn-more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Checksub Promo Section */
.checksub-promo {
  background: #151418;
  background-size: cover;
  background-position: bottom center;
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.checksub-promo h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
}

.promo-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.promo-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.promo-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.promo-text li {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promo-text li:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.promo-text li strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}

.promo-text li span {
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.promo-cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 70, 239, 0.4);
}

/* Formats Info Section */
.formats-info {
  background: #fff;
  padding: 80px 0;
  position: relative;
  background: #fafafa;
}

.formats-info h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.feature-icon {
  color: #8b5cf6;
  margin-bottom: 16px;
}

/* Add responsive styles for the navbar */
@media (max-width: 768px) {
  .site-header {
    padding: 20px 0;
  }
  
  .site-header .container {
    padding: 0 16px;
  }
  
  .site-header nav {
    gap: 16px;
  }
  
  .site-header nav a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .hero .container {
    padding-top: 80px;
  }

  .services-preview {
    flex-direction: column;
    gap: 16px;
  }

  .service-card {
    padding: 24px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }
}

/* Format Page Styles */
.format-page-header {
  background: white;
  padding: 60px 0 40px;
  color: #151418;
  position: relative;
  background: #fff;
}

.format-page-header .back-link {
  color: rgba(21, 20, 24, 0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.format-page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 auto;
  color: #151418;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px;
  text-align: center;
}

.format-page-header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.format-details {
  background: white;
  border-radius: 0;
  padding: 40px 24px;
  margin-top: 0;
  position: relative;
  border: none;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.format-details h2 {
  font-size: 1.8rem;
  color: #151418;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.format-details h3 {
  font-size: 1.4rem;
  color: #151418;
  margin: 5px 0 24px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.format-details p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2c353d;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.format-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.format-details li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: #374151;
  line-height: 1.5;
}

.format-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #151418;
}

.format-comparison {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 32px 0;
  padding: 32px;
  border-radius: 12px;
}

.format-example {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.format-example pre {
  margin: 0;
  white-space: pre !important;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  overflow-x: auto;
  tab-size: 2;
}

.format-example code {
  display: block;
  padding: 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  min-width: 100%;
  box-sizing: border-box;
  white-space: pre !important;
  overflow-x: auto;
  word-wrap: normal;
  word-break: keep-all;
}

.format-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .format-comparison {
    grid-template-columns: 1fr;
  }
}

.format-cta {
  background: #151418;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 40px 0;
  color: white;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.format-cta h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.format-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 24px;
}

.format-cta .cta-button {
  background: white;
  color: #151418;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.format-cta .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-layout {
    gap: 32px;
  }
  
  .converter-card {
    padding: 24px;
  }
}

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
    max-width: 600px;
    margin: -40px auto 0;
  }
  
  .services-preview {
    max-width: 600px;
    margin: 0 auto 32px;
  }
}

@media (max-width: 768px) {
  .format-page-header {
    padding: 40px 0 32px;
  }
  
  .format-page-header .back-link {
    margin-bottom: 20px;
  }
  
  .format-page-header h1 {
    font-size: 2rem;
  }
  
  .format-details {
    padding: 24px;
    margin-top: -20px;
  }
  
  .format-comparison {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-top: -30px;
  }
}

.format-cta-top {
  margin: 0 auto 0px;
  background: #151418 url('../images/background-section.png');
  background-size: cover;
  background-position: center;
  max-width: 800px;
  padding: 32px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* Make overlay more transparent */
.format-cta-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(21, 20, 24, 0.65);
  z-index: 1;
}

/* Ensure content stays above the overlay */
.format-cta-top > * {
  position: relative;
  z-index: 2;
}

.format-cta-top .cta-button {
  background: white;
  color: #151418;
}

.format-cta-top .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

body {
  background: #fff;
}

main {
  min-height: calc(100vh - 300px);
}

/* Compatible Software Section */
.format-software {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 24px 0 40px;
  background: #f8fafc;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.format-software h4 {
  font-size: 1.2rem;
  color: #151418;
  margin-bottom: 20px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.format-software ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.format-software li {
  position: relative;
  padding: 12px 16px;
  color: #374151;
  line-height: 1.5;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.format-software li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #6b2cf5;
}

/* Remove the bullet point style */
.format-software li::before {
  display: none;
}

/* Add an icon instead */
.format-software li::after {
  content: '→';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b2cf5;
  opacity: 0;
  transition: all 0.2s ease;
}

.format-software li:hover::after {
  opacity: 1;
  right: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .format-software {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }

  .format-software h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
}

/* Format Differences Section */
.format-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.format-details li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  color: #374151;
  line-height: 1.6;
}

.format-details li strong {
  color: #151418;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* Use Cases Section */
.use-cases ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.use-cases li {
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .format-software {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .use-cases ul {
    grid-template-columns: 1fr;
  }

  .format-details li {
    margin-bottom: 24px;
  }
}

.format-software li a {
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  width: 100%;
  height: 100%;
}

.format-software li:hover a {
  color: #6b2cf5;
}

/* Keep the existing hover effect for the list item */
.format-software li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #6b2cf5;
}

/* Add styles for very small screens */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .converter-card {
    padding: 16px;
  }
}

/* Format Example Section */
.format-example {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
}

.format-example pre {
  margin: 0;
  white-space: pre !important;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  overflow-x: auto;
  tab-size: 2;
}

.format-example code {
  display: block;
  padding: 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  min-width: 100%;
  box-sizing: border-box;
  white-space: pre !important;
  overflow-x: auto;
  word-wrap: normal;
  word-break: keep-all;
}

/* Add horizontal scrolling container */
.format-comparison {
  overflow-x: auto;
  max-width: 100%;
  padding: 1px;
}

/* Ensure code blocks maintain formatting */
.format-example pre code {
  white-space: pre !important;
  word-wrap: normal;
  word-break: keep-all;
}

/* Add some styling for XML-like content */
.format-example.xml pre {
  color: #24292e;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
  .format-example {
    padding: 16px;
  }
  
  .format-example pre {
    font-size: 12px;
  }
  
  /* Ensure horizontal scrolling works on mobile */
  .format-example,
  .format-example pre,
  .format-example code {
    -webkit-overflow-scrolling: touch;
  }
}

/* Add visual indication of scrollable content */
.format-example::-webkit-scrollbar {
  height: 8px;
  background-color: #f5f5f5;
}

.format-example::-webkit-scrollbar-thumb {
  background-color: #cbd5e0;
  border-radius: 4px;
}

.format-example::-webkit-scrollbar-track {
  background-color: #f8fafc;
  border-radius: 4px;
}

.format-software .no-software {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  color: #64748b;
  font-style: italic;
  text-align: center;
  border: 1px dashed #e2e8f0;
}

/* Remove hover effects for the no-software message */
.format-software li.no-software:hover {
  transform: none;
  box-shadow: none;
  border-color: #e2e8f0;
}

.format-software li.no-software::after {
  display: none;
}

/* AI Promo Section */
.ai-promo {
  margin: 40px auto;
  background: #151418 url('../images/background-section.png');
  background-size: cover;
  background-position: bottom center;
  max-width: 800px;
  padding: 32px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transform: scaleY(-1); /* Reverse the background */
}

/* Container to flip content back */
.ai-promo-content {
  background: linear-gradient(135deg, #2D1F3D 0%, #1B1523 100%);
  color: white;
  padding: 60px 0;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  text-align: center;
}

.ai-promo-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.ai-promo-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: white;
}

.ai-promo-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ai-promo-content .ai-cta {
  display: inline-block;
  background: white;
  color: #2D1F3D;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-promo-content .ai-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Background shapes */
.ai-promo-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/background-section.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

/* Remove old styles that might conflict */
.ai-promo-grid,
.ai-features,
.ai-feature,
.ai-feature-icon,
.ai-feature-text,
.ai-promo-image {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ai-promo-content {
    padding: 40px 20px;
    margin: 20px 0;
  }

  .ai-promo-content h2 {
    font-size: 2rem;
  }

  .ai-promo-content p {
    font-size: 1.1rem;
  }
}

/* Common AI Promo styles */
.ai-promo-content {
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

/* Format pages AI Promo (inside format-details) */
.format-details .ai-promo-content {
  background: linear-gradient(135deg, #2D1F3D 0%, #1B1523 100%);
  color: white;
  padding: 60px 0;
  border-radius: 16px;
  text-align: center;
  margin: 40px 0;
}

/* Conversion pages AI Promo */
.format-details > .ai-promo-content {
  max-width: 800px;
  margin: 40px auto;
}

/* Common AI Promo styles for both format and conversion pages */
.ai-promo-content {
  position: relative;
  overflow: hidden;
}

.ai-promo-content .container {
  position: relative;
  z-index: 2;
}

.ai-promo-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/background-section.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.ai-promo-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: white;
}

.ai-promo-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ai-promo-content .ai-cta {
  display: inline-block;
  background: white;
  color: #2D1F3D;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-promo-content .ai-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ai-promo-content {
    padding: 40px 20px;
    margin: 20px 0;
  }

  .ai-promo-content h2 {
    font-size: 2rem;
  }

  .ai-promo-content p {
    font-size: 1.1rem;
  }
}

/* Format page specific styles */
.format-page-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  margin-top: 200px;
  position: relative;
  border: 1px solid #eaeaea;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.format-page-content h1 {
  font-size: 2.5rem;
  margin: 0 0 20px;
}

.format-page-content h2 {
  color: #ffffff;
  margin-bottom: 20px;
}

.format-page-content h3 {
  color: #1d1d1f;
  margin: 30px 0 15px;
}

.format-page-content pre {
  background-color: #f5f5f7;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

.format-page-content code {
  font-family: monospace;
  background-color: #f5f5f7;
  padding: 2px 5px;
  border-radius: 4px;
}

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

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: black;
}

.modal-buttons {
  margin-top: 20px;
  text-align: right;
}

.modal-buttons button {
  margin-left: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

#modal-cancel {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

#modal-confirm {
  background-color: #6b2cf5;
  color: white;
  border: none;
}

#modal-confirm:hover {
  background-color: #5620c5;
}

.modal-content p {
  white-space: pre-wrap;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 14px;
}

.modal-buttons {
  margin-top: 20px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#modal-message {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

/* Ajoutez ces styles à votre fichier CSS */
#status-container {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease;
}

#status-container.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#status-container.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}