/* CSS spécifique à la page Demo - Formulaire moderne et ergonomique */

/* Styles du Header et Footer (exactement identiques à home.css) */
/* Header */
.header {
  background-color: white;
  border-bottom: 1px solid #ECECEC;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
}

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

.logo {
  text-decoration: none;
}

.nav-tabs {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-tabs li a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-tabs li a:hover {
  color: #6E08A7;
}

.nav-tabs li a.active {
  color: #6E08A7;
  border-bottom: 2px solid #6E08A7;
  padding-bottom: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language dropdown sections */
.desktop-language-dropdown {
  display: block;
}

.mobile-language-item {
  display: none;
}

.mobile-menu-language {
  margin-top: 20px;
}


/* Styles pour les boutons (exactement identiques à home.css) */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 6px 6px 16px 0px rgba(0, 0, 0, 0.10);
}

.btn-primary {
  background-color: #6E08A7;
  color: white;
}

.btn-primary:hover {
  background-color: #5a077a;
}

.btn-success {
  background-color: #008F4A;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-outline {
  background-color: white;
  color: #201E21;
  border: 2px solid #6E08A7;
}

/* Footer (exactement identique à home.css) */
.footer {
  background-image: url(/assets/bg-footer-82be0078712301466f7222e5db49ebc0e53943876848e23d5ea097a821b1e111.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 52px 0;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.footer-logo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.footer-blocks {
  display: flex;
  gap: 60px;
}

.footer-block {
  flex: 1;
}

.footer-block-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

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

.footer-links li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s ease;
}

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

.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-contacts li span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 0 10px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 0;
}

/* Styles pour le menu mobile (exactement identiques à home.css) */
.hamburger-menu {
  display: none;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #201E21;
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu mobile overlay (exactement identique à home.css) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  transition: left 0.3s ease;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ECECEC;
}

.mobile-logo img {
  height: 32px;
  width: auto;
}

.close-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 32px;
  height: 32px;
}

.close-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #201E21;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  flex: 1;
}

.mobile-nav-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-tabs li {
  margin-bottom: 0;
}

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  color: #201E21;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #F5F5F5;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #6E08A7;
}

.mobile-nav-link.active {
  color: #6E08A7;
  border-bottom: 2px solid #6E08A7;
}

.mobile-menu-actions {
  padding-top: 20px;
  border-top: 1px solid #ECECEC;
}

.mobile-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* Container global */

/* Variables CSS */
:root {
  --primary-color: #6E08A7;
  --primary-light: #F1E6F6;
  --secondary-color: #008F4A;
  --text-dark: #201E21;
  --text-medium: #302D32;
  --text-light: #706D72;
  --border-color: #ECECEC;
  --border-light: #F5F5F5;
  --background-light: #FAFAFA;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --transition: all 0.3s ease;
}

/* Reset et base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

/* Section Formulaire */
.demo-form-section {
  padding: 80px 0;
  background-color: white;
}

.demo-form-header {
  text-align: center;
  margin-bottom: 60px;
}

.demo-form-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.demo-form-description {
  font-size: 18px;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.demo-form-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius-large);
  box-shadow: 0 8px 32px var(--shadow-light);
  overflow: hidden;
}

/* Formulaire */
.demo-form {
  padding: 60px;
}

/* Rangs du formulaire */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Groupes de formulaires */
.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 8px;
  transition: var(--transition);
}

/* Inputs */
.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-small);
  font-size: 16px;
  font-family: inherit;
  background-color: white;
  transition: var(--transition);
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(110, 8, 167, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-textarea {
  min-height: 120px;
}

/* Bouton de soumission */
.btn-submit {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8B5CF6 100%);
  color: white;
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(110, 8, 167, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(110, 8, 167, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Responsive pour le header et footer (exactement identiques à home.css) */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
  
  .header-nav-section {
    display: none;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .nav-tabs {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-tabs li {
    margin-bottom: 10px;
  }
  
  .mobile-language-item {
    margin-top: 10px;
    width: 100%;
    text-align: left;
  }
  
  /* Language dropdown mobile visibility */
  .desktop-language-dropdown {
    display: none;
  }
  
  .mobile-language-item {
    display: block;
  }
  
  /* Styles pour le dropdown de langue sur mobile - dans la navigation */
  .mobile-language-item .header-dropdown {
    display: inline-block;
  }
  
  .mobile-language-item .dropdown-btn {
    background-color: #F8F9FA;
    border: 1px solid #ECECEC;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 60px;
    justify-content: center;
    border-radius: 6px;
  }
  
  .mobile-language-item .dropdown-menu {
    right: auto;
    left: 0;
    transform: translateY(-10px);
    min-width: 80px;
  }
  
  .mobile-language-item .dropdown-menu.active {
    transform: translateY(0);
  }
  
  .mobile-menu-language-item {
    border-bottom: 1px solid #F5F5F5;
    padding: 16px 0;
    text-align: left;
  }
  
  .mobile-menu-language .header-dropdown {
    display: inline-block;
  }
  
  .mobile-menu-language .dropdown-btn {
    background-color: #F8F9FA;
    border: 1px solid #ECECEC;
    padding: 12px 16px;
    font-size: 16px;
    min-width: 80px;
    justify-content: center;
    color: #201E21;
    border-radius: 8px;
  }
  
  .mobile-menu-language .dropdown-menu {
    right: auto;
    left: 0;
    transform: translateY(-10px);
    min-width: 100px;
  }
  
  .mobile-menu-language .dropdown-menu.active {
    transform: translateY(0);
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
    text-align: center;
  }
  
  .footer-blocks {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  
  .footer-block {
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .demo-form {
    padding: 40px 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .demo-form-title {
    font-size: 28px;
  }
  
  .demo-form-description {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .demo-form {
    padding: 24px 16px;
  }
  
  .demo-form-title {
    font-size: 24px;
  }
  
  .demo-form-description {
    font-size: 14px;
  }
}
