.ec-form-shell{--ec-green:#2a5324;--ec-border:#d7ddd5;max-width:920px;margin:2rem auto;padding:clamp(1rem,3vw,2.25rem);background:#fff;border:1px solid var(--ec-border);border-radius:8px;box-shadow:0 12px 35px rgba(0,0,0,.08);color:#212121}.ec-progress{height:8px;background:#e8ece7;border-radius:99px;overflow:hidden}.ec-progress span{display:block;width:0;height:100%;background:var(--ec-green);transition:width .25s ease}.ec-step-label{font-size:.875rem;color:#687068;margin:10px 0 24px}.ec-page[hidden],.ec-field[hidden],[hidden]{display:none!important}.ec-field{margin:0 0 1.25rem}.ec-label{display:block;font-weight:700;margin-bottom:.45rem}.ec-label span{color:#a21b1b}.ec-description{font-size:.92rem;color:#5c625d;margin:.25rem 0 .6rem}.ec-field input:not([type=checkbox]):not([type=radio]):not([type=range]),.ec-field select,.ec-field textarea{display:block;width:100%;min-height:46px;padding:.65rem .75rem;border:1px solid #8a918b;border-radius:5px;background:#fff;color:#212121;box-sizing:border-box}.ec-field textarea{min-height:130px;resize:vertical}.ec-field input:focus,.ec-field select:focus,.ec-field textarea:focus{outline:3px solid rgba(42,83,36,.18);border-color:var(--ec-green)}.ec-choices{display:grid;gap:.55rem}.ec-choice{display:flex;align-items:flex-start;gap:.55rem}.ec-choice input{margin-top:.22rem}.ec-richtext{line-height:1.55}.ec-richtext h3{color:var(--ec-green)}.ec-form-image{display:block;max-width:100%;height:auto;margin:1rem auto}.ec-range{display:flex;align-items:center;gap:1rem}.ec-range input{flex:1}.ec-range output{min-width:3.5rem;font-weight:700}.ec-dropzone{display:flex;min-height:150px;border:2px dashed #91aa99;border-radius:10px;background:#f7fbf8;align-items:center;justify-content:center;flex-direction:column;gap:.35rem;padding:1.25rem;text-align:center;cursor:pointer;transition:.2s}.ec-dropzone:hover,.ec-dropzone.is-dragging{border-color:var(--ec-green);background:#edf7ef}.ec-dropzone input[type=file]{position:absolute;width:1px!important;height:1px;min-height:0!important;padding:0!important;opacity:0}.ec-dropzone-icon{font-size:2rem;color:var(--ec-green)}.ec-dropzone small{color:#65726a}.ec-file-list{display:block;margin-top:.55rem;font-size:.85rem;color:#35483a}.ec-file-list span{display:block}.ec-actions{display:flex;justify-content:space-between;gap:1rem;margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--ec-border)}.ec-button{appearance:none;border:0;border-radius:5px;padding:.8rem 1.3rem;font-weight:700;cursor:pointer;background:var(--ec-green);color:#fff}.ec-button:hover{filter:brightness(.92)}.ec-button:disabled{opacity:.65;cursor:wait}.ec-back{background:#667066}.ec-next,.ec-submit{margin-left:auto}.ec-success{text-align:center}.ec-success h1{color:var(--ec-green)}@media(max-width:600px){.ec-form-shell{margin:0;border-radius:0}.ec-actions{position:sticky;bottom:0;background:#fff;padding-bottom:.5rem}}
.ec-phone{display:grid!important;grid-template-columns:42px minmax(72px,90px) minmax(0,1fr)!important;align-items:center!important;border:1px solid #8a918b!important;border-radius:5px!important;background:#fff!important;overflow:hidden!important}.ec-phone .ec-phone-flag{display:block!important;width:26px!important;height:18px!important;min-width:26px!important;max-width:26px!important;min-height:18px!important;max-height:18px!important;margin:0 0 0 12px!important;padding:0!important;object-fit:cover!important;box-shadow:0 0 0 1px rgba(0,0,0,.12)!important}.ec-field .ec-phone select,.ec-field .ec-phone input:not([type=hidden]){display:block!important;width:100%!important;min-width:0!important;min-height:54px!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-sizing:border-box!important}.ec-field .ec-phone select{padding:.65rem .25rem!important;font-weight:700!important;color:#212121!important}.ec-field .ec-phone select option{color:#212121!important}.ec-field .ec-phone input:not([type=hidden]){padding-left:1.15rem!important;border-left:1px solid #d8ddd9!important}.ec-phone:focus-within{outline:3px solid rgba(42,83,36,.18)!important;border-color:var(--ec-green)!important}@media(max-width:420px){.ec-phone{grid-template-columns:40px 74px minmax(0,1fr)!important}}
.ec-form-alert{margin:0 0 1.25rem;padding:1rem 1.1rem;border:1px solid #c62828;border-left-width:5px;border-radius:6px;background:#fff1f1;color:#8b1010;font-weight:600;line-height:1.45}
.ec-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}








/*
 * CAROMAX — Nouveau formulaire, accueil et contactez-nous.
 * IMPORTANT : le formulaire est dans une iframe.
 * Ce CSS doit être chargé dans l’iframe, après :
 * /media/com_soumissions/css/form.css
 * Le coller uniquement dans le template parent ne modifiera pas les champs.
 */

.ec-form-shell {
  --ec-green: #003362;
  --cm-blue: #003362;
  --cm-ink: #17324d;
  --cm-border: #dbe3ec;

  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(22px, 4vw, 38px);
  box-sizing: border-box;
  border: 1px solid #e2e8ef;
  border-top: 4px solid var(--cm-blue);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f7faff);
  box-shadow: 0 12px 32px rgb(0 51 98 / 7%);
  color: var(--cm-ink);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.ec-form-shell *,
.ec-form-shell *::before,
.ec-form-shell *::after {
  box-sizing: border-box;
}

.ec-form-shell form {
  margin: 0;
}

.ec-form-shell .ec-page:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.ec-form-shell .ec-field {
  min-width: 0;
  margin: 0;
}

.ec-form-shell .ec-field-textarea,
.ec-form-shell .ec-field-upload,
.ec-form-shell .ec-actions {
  grid-column: 1 / -1;
}

.ec-form-shell .ec-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: var(--cm-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ec-form-shell .ec-label > span {
  color: #bc3848;
}

/* Icônes indépendantes de Font Awesome. */

.ec-form-shell .ec-field[data-field="1"] {
  --cm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003362' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E");
}

.ec-form-shell .ec-field[data-field="2"] {
  --cm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003362' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.ec-form-shell .ec-field[data-field="3"] {
  --cm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003362' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 3v6c0 5-8 9-8 9s-8-4-8-9V6z'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
}

.ec-form-shell .ec-field[data-field="4"] {
  --cm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003362' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 2-5h10l2 5M4 10h16v8H4zM6 18v3m12-3v3M7 14h1m8 0h1'/%3E%3C/svg%3E");
}

.ec-form-shell .ec-field[data-field="5"] {
  --cm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003362' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 14a3 3 0 0 1-3 3H9l-6 4V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3zM7 8h10M7 12h7'/%3E%3C/svg%3E");
}

.ec-form-shell .ec-field > input:is([type="text"], [type="email"]),
.ec-form-shell .ec-field > textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 16px 16px 16px 49px;
  border: 1px solid var(--cm-border);
  border-radius: 11px;
  background-color: #fff;
  background-image: var(--cm-icon);
  background-repeat: no-repeat;
  background-position: 17px 18px;
  background-size: 20px 20px;
  box-shadow: 0 2px 4px rgb(0 51 98 / 2%);
  color: var(--cm-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.ec-form-shell .ec-field > textarea {
  min-height: 160px;
  resize: vertical;
}

.ec-form-shell .ec-field > input::placeholder,
.ec-form-shell .ec-field > textarea::placeholder {
  color: #7c8a99;
  font: inherit;
  opacity: 1;
}

.ec-form-shell .ec-field > input:hover,
.ec-form-shell .ec-field > textarea:hover {
  border-color: #a6b9cc;
}

.ec-form-shell .ec-field > input:focus,
.ec-form-shell .ec-field > textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--cm-blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(0 51 98 / 10%);
}

.ec-form-shell .ec-field:focus-within > .ec-label {
  color: var(--cm-blue);
}

.ec-form-shell .ec-field > :is(input, textarea)[aria-invalid="true"] {
  border-color: #bc3848;
  box-shadow: 0 0 0 3px rgb(188 56 72 / 10%);
}

/* Zone de dépôt des photos. */

.ec-form-shell .ec-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 165px;
  margin: 0;
  padding: 24px 18px;
  overflow: hidden;
  border: 1.5px dashed #9db5ce;
  border-radius: 13px;
  background: linear-gradient(135deg, #f4f8fd, #edf4fb);
  color: var(--cm-blue);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.ec-form-shell .ec-dropzone:hover,
.ec-form-shell .ec-dropzone:focus-within {
  border-color: var(--cm-blue);
  background: #eaf2fb;
  box-shadow: 0 0 0 4px rgb(0 51 98 / 7%);
}

.ec-form-shell .ec-dropzone-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 5px;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: #fff;
  color: var(--cm-blue);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 29px;
  line-height: 1;
}

.ec-form-shell .ec-dropzone strong {
  color: var(--cm-blue);
  font-size: 14px;
  font-weight: 700;
}

.ec-form-shell .ec-dropzone small {
  color: #61758b;
  font-size: 12px;
}

.ec-form-shell .ec-file-list {
  max-width: 100%;
  color: var(--cm-ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ec-form-shell .ec-file-list:empty {
  display: none;
}

/* Bouton d’envoi. */

.ec-form-shell .ec-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 2px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #e2e8f0;
}

.ec-form-shell .ec-button.ec-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 190px;
  min-height: 56px;
  margin: 0;
  padding: 15px 28px;
  border: 1px solid var(--cm-blue);
  border-radius: 10px;
  background: linear-gradient(135deg, #06477f, #003362);
  box-shadow: 0 6px 15px rgb(0 51 98 / 16%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.ec-form-shell .ec-submit::after {
  content: "→";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.ec-form-shell .ec-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #00284d;
  box-shadow: 0 9px 20px rgb(0 51 98 / 22%);
}

.ec-form-shell .ec-submit:hover:not(:disabled)::after {
  transform: translateX(4px);
}

.ec-form-shell .ec-submit:focus-visible {
  outline: 3px solid #779dc3;
  outline-offset: 4px;
}

.ec-form-shell .ec-submit:disabled {
  opacity: 0.6;
  box-shadow: none;
  cursor: wait;
}

@media (max-width: 600px) {
  .ec-form-shell {
    padding: 23px 18px;
    border-radius: 15px;
  }

  .ec-form-shell .ec-page:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ec-form-shell .ec-field > input:is([type="text"], [type="email"]),
  .ec-form-shell .ec-field > textarea {
    font-size: 16px;
  }

  .ec-form-shell .ec-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-form-shell *,
  .ec-form-shell *::after {
    transition: none !important;
  }
}

