/*
Theme Name: Cortexa
Template: hello-elementor
Version: 1.0.0
Text Domain: Cortexa
*/

.elementor-counter-title{
	text-align:center;
}

/* CTF7 *//* --- Wrapper formulaire --- */
.contact-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #212529;
}

/* --- Grille 2 colonnes --- */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cf7-full {
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .cf7-row {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 1.5rem;
  }
}

/* --- Labels --- */
.wpcf7 label,
.wpcf7 .cf7-label-block {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.req {
  color: #dc3545;
}

/* --- Inputs, select, textarea --- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  display: block;
  width: 100%;
  padding: 0.4rem 0.75rem;
  height: 42px;
  font-size: 0.9375rem;
  color: #212529;
  background: #ffffff;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  margin-top:8px;
}

.wpcf7-list-item-label, .cf7-acceptance p{
    font-size: 16px;
    line-height: 1.6;
    color: #0f172a;
}

.cf7-acceptance p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
}

.wpcf7 textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.wpcf7 textarea::placeholder {
  color: #adb5bd;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  background: #ffffff;
}

/* Flèche select */
.wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23495057' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-color: #ffffff;
  padding-right: 2.25rem;
  cursor: pointer;
}

/* Première option select grisée (placeholder) */
.wpcf7 select option:first-child {
  color: #adb5bd;
}

/* --- Radio buttons en ligne --- */
.cf7-radio-group .wpcf7-form-control {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cf7-radio-group .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.cf7-radio-group .wpcf7-list-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #0d6efd;
  cursor: pointer;
  flex-shrink: 0;
}

.cf7-radio-group .wpcf7-list-item label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  color: #212529;
}

/* --- Case RGPD --- */
.cf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
}

.cf7-acceptance .wpcf7-list-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #0d6efd;
  flex-shrink: 0;
  cursor: pointer;
}

.cf7-acceptance .wpcf7-list-item label {
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.cf7-acceptance a {
  color: #0d6efd;
  text-decoration: underline;
}

/* --- Bouton submit --- */
.cf7-submit-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.cf7-submit-wrap::before {
  content: "";
  position: absolute;
  left: 2.1rem;
  top: -8px;
  bottom: 0;
  margin: auto;
  width: 1.1rem;
  height: 1.1rem;
  background: url("/cortexa/wp-content/uploads/2026/04/send.svg") no-repeat center / contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 1;
}

.wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 1rem 2.125rem 1rem 4.2rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 27px;
  color: #ffffff;
  background: #00323F;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}

.wpcf7 input[type="submit"]:hover {
  background: #004d5c;
  transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

/* --- Spinner --- */
.wpcf7 .wpcf7-spinner {
  margin-left: 0.75rem;
  vertical-align: middle;
}

/* --- Erreurs de validation --- */
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

.wpcf7 .wpcf7-not-valid {
  border-color: #dc3545 !important;
}

/* --- Messages de réponse --- */
.wpcf7 .wpcf7-response-output {
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border: none;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background: #d1e7dd;
  color: #0f5132;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-aborted,
.wpcf7 .wpcf7-validation-errors {
  background: #f8d7da;
  color: #842029;
}

/* --- Boutons menu navigation --- */
.menu-btn-connexion .hfe-menu-item,
.menu-btn-creer-compte .hfe-menu-item {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px;
  font-size: 0.9375rem !important;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.menu-btn-connexion .hfe-menu-item:hover,
.menu-btn-creer-compte .hfe-menu-item:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* Connexion */
.menu-btn-connexion .hfe-has-submenu-container {
  display: inline-flex;
}

.menu-btn-connexion .hfe-menu-item {
  background: #00323F;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.menu-btn-connexion .hfe-menu-item::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: url("/cortexa/wp-content/uploads/2026/04/box-arrow-in-right.svg") no-repeat center / contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* Créer un compte */
.menu-btn-creer-compte .hfe-menu-item {
  background: #00C896;
}

.menu-btn-creer-compte .hfe-menu-item::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: url("/cortexa/wp-content/uploads/2026/04/plus-circle.svg") no-repeat center / contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
