
:root {
  --background-color: #f0f0f1;
  --primary-color: #94d4eb;
  --dark-primary-color: #142b53;
  --secondary-color: #f0e278;
  --light-secondary-color: #fff7b8;
  --extra-color: #d02c3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 200%;
  background-color: var(--background-color);
}

/* ============================================
   HEADER
   ============================================ */
header.Connect_subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2%;
  padding: 2%;
}

.header_img {
  width: 18%;
  height: auto;
  margin-right: 0;
}

h1.tittle {
  font-size: 2.2em;
  margin: 0;
  color: #142b53;
}

/* ============================================
   MAIN & LAYOUT
   ============================================ */
main,
section,
article {
  width: 100%;
  padding: 2%;
}

.container {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ============================================
   TITRE & TYPOGRAPHIE
   ============================================ */
h2 {
  font-size: 1.25em;
  margin-top: 3%;
  margin-bottom: 3%;
  color: #333;
}

p {
  font-size: 1em;
  color: var(--dark-primary-color);
}
a {
  font-size: 1em;
  color: #0066cc;
}

/* ============================================
   TOGGLE CONTAINER
   ============================================ */
.toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 5%;
  background-color: var(--secondary-color);
  border-radius: 9999px;
  overflow: hidden;
  padding: 0.5%;
  width: 70%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.toggle-slider {
  position: absolute;
  width: 48%;
  height: 90%;
  background-color: var(--primary-color);
  border-radius: 9999px;
  transition: left 0.3s ease;
  left: 1%;
  top: 5%;
}

.toggle-container.entreprise .toggle-slider {
  left: 51%;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 3%;
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  color: #666;
  transition: color 0.3s ease, transform 0.2s ease;
}

.toggle-option:active {
  transform: scale(0.98);
}

/* ============================================
   FORMULAIRES (SECTIONS)
   ============================================ */
.form-section {
  display: none;
  width: 100%;
}

.form-section.active {
  display: block;
}

form {
  width: 100%;
}

/* ============================================
   GROUPES DE FORMULAIRES
   ============================================ */
.form-group {
  margin-bottom: 3%;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 1%;
  color: #333;
}

/* ============================================
   INPUTS & SÉLECTEURS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  font-size: 1.125em;
  padding: 2% 2.5%;
  background-color: var(--background-color);
  border: none;
  border-bottom: 1px solid var(--dark-primary-color);
  font-family: Arial, sans-serif;
  color: var(--dark-primary-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--dark-primary-color);
  box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
}

select {
  cursor: pointer;
}

/* ============================================
   CHECKBOXES & RADIO BUTTONS
   ============================================ */
input[type="radio"],
input[type="checkbox"] {
  transform: scale(2);
  cursor: pointer;
  margin-right: 2%;
}

.btn_color {
  cursor: pointer;
}

/* ============================================
   CHECKBOX CONTAINER
   ============================================ */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  margin: 3% 0;
  gap: 1.5%;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 1%;
  flex-shrink: 0;
}

.checkbox-container label {
  font-size: 1em;
  margin: 0;
}

.checkbox-container a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ============================================
   BOUTONS
   ============================================ */
button,
.submit,
input[type="submit"] {
  width: 100%;
  min-height: 46px;
  font-size: 1.125em;
  padding: 2.5% 3%;
  margin-top: 2%;
  border: none;
  border-radius: 6px;
  background-color: var(--dark-primary-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover,
.submit:hover,
input[type="submit"]:hover {
  background-color: #0052a3;
}

button:active,
.submit:active,
input[type="submit"]:active {
  background-color: var(--dark-primary-color);
}

.login-link {
  text-align: center;
  margin-top: 4%;
  font-size: 1em;
}

.login-link a {
  color: #0066cc;
  text-decoration: underline;
}


/* ============================================
   VERSION PC
   ============================================ */

@media (min-width: 1024px) {
  body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    background-image: url('../images/backgrounds/wmremove-transformed.png');
    background-size: cover;
    background-position: center;
    background-color: transparent;
  }

  /* ============================================
   HEADER
   ============================================ */

  header.Connect_subscribe {
    background-color: #94d4ebbd;
    border: #f0f0f1 solid 2px;
    border-radius: 12px;
    width: 30%;
    height: 90vh;
    margin: 3% 0 3% 3%;
  }

  h1.tittle::before {
    content: "Bienvenue sur ";
    display: block;
    text-align: center;
    width: 100%;
    height: auto;
    margin-bottom: 15%;
    font-size: 0.75em;
  }

  h1.tittle {
    font-size: 2.25em;
    margin: 0;
    color: #142b53;
  }

  img.header_img {
   display:none;
  }
  /* ============================================
   MAIN & LAYOUT
   ============================================ */
  main {
    overflow-y: auto; 
    height: 90vh;
    background-color: #f0e278b9;
    border: gray solid 2px;
    border-radius: 12px;
    width: 60%;
    margin: 3% 5% 3% 0;
    padding: 0%;
  }

  .container {
    padding: 0%;
    margin: 0;
  }

  /* ============================================
   GROUPES DE FORMULAIRES
   ============================================ */

  .form-group label {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.7em;
    text-align: left;
  }

  form {
    width: 100%;
    margin: 0%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: start;
    gap: 2%;
    width: 100%;
  }

  .form-group {
    margin: 1%;
    width: 48%;
  }

  .form-section.active {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: start;
    gap: 2%;
  }

  /*.form-section.active h2,
  .form-section.active button,
  .form-section.active .checkbox-container,
  .form-section.active .login-link {
    width: 100%;
  }
  
  form h2,
  form button,
  form input[type="hidden"],
  .form-section.active .checkbox-container,
  .form-section.active .login-link {
    width: 100%;
  }*/

  form h2,
  form button,
  form .checkbox-container,
  form > input[type="hidden"] {
    width: 100%;
  }

  /* ============================================
   TITRE & TYPOGRAPHIE
   ============================================ */
  h2 {
    text-align: start;
    font-size: 0.9em;
  }

  a {
    font-size: 0.7em;
    text-align: left;
  }

  p {
    font-size: 0.7em;
    text-align: left;
  }
  
  /* ============================================
    INPUTS & SÉLECTEURS
    ============================================ */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  select,
  textarea {
    font-size: 0.725em;
    padding: 1.5% 2%;
    text-align: left;
    min-height: 30px;
  }

}