/*--------------------------------------------------------------
   RÉGLAGES GLOBAUX
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html, body {
    width: 100%;
}
  body {
    font-family: 'Roboto', sans-serif;
    background: #007BFF;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
  }
  /* Désactivation du scroll vertical sur desktop */
  @media (min-width: 1024px) {
    html, body { overflow: hidden; }
  }
  
  /*--------------------------------------------------------------
     FOND DIAGONAL (deux triangles)
  --------------------------------------------------------------*/
  body::before,
  body::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.5s ease;
  }
  body::before {
    background: #007BFF;
    clip-path: polygon(0 0, 100% 0, 0 70%);
  }
  body::after {
    background: #ffffff;
    clip-path: polygon(100% 100%, 100% 30%, 0 100%);
  }

  .top-bar {
    width: 100%;
    height: auto;
    background-color: #ffcc00; /* Couleur modifiable */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    text-align: center;
    padding: 5px;
}

.top-bar span{
    font-size: 10px;
}
  
  /*--------------------------------------------------------------
     CONTAINER PRINCIPAL
  --------------------------------------------------------------*/
  .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    max-width: 1200px;
    margin: 10px auto 0; /* Marge supérieure réduite à 10px */
    min-height: calc(100vh - 60px);
  }
  
  /*--------------------------------------------------------------
     SECTION GAUCHE : TITRES, DESCRIPTION ET POINTS CLÉS
  --------------------------------------------------------------*/
  .left-section {
    flex: 1;
    padding: 20px;
    color: #fff;
    animation: fadeIn 1s ease;
  }
  .logo {
    margin-bottom: 10px;
  }
  .logo img{
    width: 100px;
    height: 100px;
  }
  .small-title {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .headline {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  .description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    /* margin-bottom: 40px; */
  }
  
  .point {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
    color: #000;
    display: flex;
    flex-direction: row; /* Force l'icône à gauche */
    align-items: center;
    gap: 15px;
  }
  
  .point:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
  }
  
  .point-icon {
    flex-shrink: 0;
  }
  
  .point-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  
  .point-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .point-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .point-desc {
    font-size: 14px;
    line-height: 1.4;
  }


/* METRE CARRE */

.surface-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .surface-option {
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .surface-option input {
    display: none;
  }
  
  .surface-option span {
    display: block;
    color: #333;
  }
  
  .surface-option input:checked + span,
  .surface-option:hover span {
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    padding: 10px;
  }
  
  
  /*--------------------------------------------------------------
     SECTION DROITE : FORMULAIRE INTERACTIF
  --------------------------------------------------------------*/

  .container-right{
    background: rgb(255, 255, 255);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  }
  .right-section {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    animation: fadeIn 1s ease;
    max-width: 500px;
    width: 100%;
    min-height: auto; /* Hauteur imposée pour le formulaire */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .form-header {
    text-align: center;
    margin-bottom: 20px;
  }
  .form-header h2 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .form-header p {
    font-size: 11px;
    color: #555;
  }
  
  /* Zone qui centre verticalement le contenu actif du formulaire */
  .form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .form-step {
    display: none;
    animation: fadeIn 0.5s ease;
    text-align: center;
    width: 100%;
    overflow-x: hidden; /* ✅ bloque tout dépassement horizontal */
}
  .form-step.active {
    display: block;
  }
  .form-question {
    font-size: 18px;  /* Question en plus gros */
    margin-bottom: 20px;
    font-weight: 500;
    margin-top: 15px;
  }
  
  /* Boutons de réponses */
  .answer-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
  }
  .answer-button {
    flex: 1;
    padding: 12px;
    border: 2px solid #007BFF;
    border-radius: 5px;
    background: #007BFF;
    color: #fff;
    font-weight: 600;
    font-size: 18px; /* Boutons en plus gros */
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
  }
  .answer-button:hover {
    background: #007BFF;
    color: #fff;
  }
  
  /*--------------------------------------------------------------
     CUSTOM CHECKBOXES : CARRÉS AVEC CHANGEMENT DE COULEUR
  --------------------------------------------------------------*/
  .checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    width: 100%; /* ✅ s’adapte bien au conteneur */
    box-sizing: border-box;
}

.step-number {
    font-size: 10px;
    color: #cacaca;
    text-align: center;
    margin-bottom: 5px;
}


.checkbox-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease, border 0.3s ease;
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 120px; /* ✅ nouvelle hauteur responsive */
}



.checkbox-item input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.checkbox-item span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.checkbox-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}
.checkbox-item p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0 5px;
    word-break: break-word; /* ✅ coupe le mot si trop long */
    max-width: 100%; /* ✅ empêche le débordement */
}

.checkbox-item:hover {
    background: #e9e9e9;
}
.checkbox-item input:checked + span {
    background: #007BFF;
    color: #fff;
    border-radius: 5px;
}
.checkbox-item input:checked + span p {
    color: #fff;
}


.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
.hidden {
    display: none;
}
  
  /*--------------------------------------------------------------
     CHAMPS ET INPUTS
  --------------------------------------------------------------*/
  .numeric-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
  }
  .numeric-input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
  }
  .personal-info input {
    width: 100%;
    padding: 15px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
  }
  .personal-info input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
  }
  
  /* Bouton de validation */
  .submit-button {
    width: 100%;
    padding: 15px;
    font-size: 22px;
    border: none;
    border-radius: 5px;
    background: #007BFF;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
  }
  .submit-button:hover {
    background: #0056b3;
  }
  .success-message {
    text-align: center;
    font-size: 20px;
    color: #28a745;
    display: none;
    animation: fadeIn 0.5s ease;
  }
  
  /*--------------------------------------------------------------
     SLIDER DES LOGOS PARTENAIRES
  --------------------------------------------------------------*/
  .partners-slider {
    overflow: hidden;
    margin: 30px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
  }
  .logos {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite;
  }
  .logo-item img{
    flex: 0 0 auto;
    width: 80px;
    height: 40px;
    background: #ccc;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #333;
  }
  
  /*--------------------------------------------------------------
     FOOTER
  --------------------------------------------------------------*/
  footer {
    text-align: center;
    font-size: 12px;
    padding: 10px;
    color: #777;
  }
  
  /*--------------------------------------------------------------
     ANIMATIONS
  --------------------------------------------------------------*/
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }
  
  /*--------------------------------------------------------------
     RESPONSIVITÉ
  --------------------------------------------------------------*/
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      padding: 20px;
      margin-top: 10px;
    }
    .left-section, .right-section {
      max-width: 100%;
      /* margin-bottom: 20px; */
    }
    body::before {
      clip-path: polygon(0 0, 100% 0, 0 60%);
    }
    body::after {
      clip-path: polygon(100% 100%, 100% 40%, 0 100%);
    }
    .key-points {
        grid-template-columns: 1fr;
      }
      .point-icon img {
        width: 35px;
        height: 35px;
      }
      .point-title {
        font-size: 16px;
      }
      .point-desc {
        font-size: 12px;
      }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 10px;
    }
  
    .left-section,
    .right-section {
      padding: 15px;
      max-width: 100%;
      width: 100%;
    }
  
    .headline {
    margin-top: 10px;
      font-size: 36px;
      text-align: left;
    }
  
    .description {
      font-size: 14px;
    }
  
    .form-header h2 {
      font-size: 18px;
    }
  
    .form-header p {
      font-size: 11px;
    }
  
    .form-question {
      font-size: 18px;
    }
  
    .answer-button,
    .submit-button {
      font-size: 14px;
      padding: 14px 8px;
    }
  
    input,
    .numeric-input {
      font-size: 14px;
      padding: 10px;
    }
  
    .point-title {
      font-size: 14px;
    }
  
    .point-desc {
      font-size: 11px;
    }
  
    .point-icon img {
      width: 30px;
      height: 30px;
    }
  
    .top-bar span {
      font-size: 10px;
      padding: 3px;
      display: block;
    }
  }
  

  @media (max-width: 360px) {
    .container {
      padding: 8px;
    }
  
    .left-section,
    .right-section {
      padding: 12px;
    }
  
    .headline {
      font-size: 18px;
    }
  
    .description {
      font-size: 13px;
    }
  
    .form-header h2 {
      font-size: 15px;
    }
  
    .form-header p {
      font-size: 10px;
    }
  
    .form-question {
      font-size: 16px;
    }
  
    .step-number {
      font-size: 12px;
    }
  
    .answer-button,
    .submit-button {
      font-size: 14px;
      padding: 14px 8px;
    }
  
    .numeric-input,
    .personal-info input {
      font-size: 13px;
      padding: 8px;
    }
  
    .point-title {
      font-size: 13px;
    }
  
    .point-desc {
      font-size: 10px;
    }
  
    .point-icon img {
      width: 28px;
      height: 28px;
    }
  
    .checkbox-item p {
      font-size: 12px;
    }
  
    .top-bar span {
      font-size: 9px;
      padding: 2px;
    }
  }
  