/* ==========================================================================
   Contact page - design refresh
   Palette : bleu #0749a7 - jaune #ffc000 - vert #26ae61 - encre #1c2733
   ========================================================================== */

:root {
  --ct-blue: #0749a7;
  --ct-blue-dark: #043278;
  --ct-yellow: #ffc000;
  --ct-green: #26ae61;
  --ct-ink: #1c2733;
  --ct-body: #6b7a8d;
  --ct-line: #e6ebf2;
  --ct-soft: #f4f7fb;
  --ct-radius: 16px;
  --ct-shadow: 0 18px 45px rgba(7, 73, 167, 0.08);
  --ct-shadow-lg: 0 28px 65px rgba(7, 73, 167, 0.14);
}

.contact-page {
  background: var(--ct-soft);
  position: relative;
  overflow: hidden;
  padding-top: 20px;
  padding-bottom: 120px;
}

.contact-page::before,
.contact-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.contact-page::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 192, 0, 0.18), rgba(255, 192, 0, 0));
}

.contact-page::after {
  width: 480px;
  height: 480px;
  bottom: -220px;
  left: -180px;
  background: radial-gradient(circle, rgba(38, 174, 97, 0.14), rgba(38, 174, 97, 0));
}

.contact-page > .container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------- section heading */
.ct-heading {
  max-width: 640px;
  margin: 0 auto 55px;
  text-align: center;
}

.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ct-blue);
  background: rgba(7, 73, 167, 0.08);
  padding: 8px 18px;
  border-radius: 40px;
  margin-bottom: 18px;
}

.ct-eyebrow i {
  color: var(--ct-yellow);
}

.ct-heading h2 {
  font-size: 40px;
  line-height: 1.2;
  color: var(--ct-ink);
  margin-bottom: 16px;
}

.ct-heading h2 span {
  color: var(--ct-blue);
  position: relative;
  z-index: 1;
}

.ct-heading h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(255, 192, 0, 0.45);
  z-index: -1;
}

.ct-heading p {
  color: var(--ct-body);
  margin-bottom: 0;
  font-size: 16px;
}

/* ------------------------------------------------------------- quick cards */
.ct-cards {
  margin-bottom: 60px;
}

.ct-card {
  position: relative;
  height: 100%;
  background: #ffffff;
  border-radius: var(--ct-radius);
  padding: 40px 30px 34px;
  text-align: center;
  box-shadow: var(--ct-shadow);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ct-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ct-blue), var(--ct-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ct-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ct-shadow-lg);
}

.ct-card:hover::before {
  transform: scaleX(1);
}

.ct-card__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ct-blue), var(--ct-blue-dark));
  box-shadow: 0 12px 26px rgba(7, 73, 167, 0.28);
  transition: transform 0.35s ease;
}

.ct-card--green .ct-card__icon {
  background: linear-gradient(135deg, var(--ct-green), #17864a);
  box-shadow: 0 12px 26px rgba(38, 174, 97, 0.3);
}

.ct-card--yellow .ct-card__icon {
  background: linear-gradient(135deg, var(--ct-yellow), #e0a300);
  box-shadow: 0 12px 26px rgba(255, 192, 0, 0.35);
}

.ct-card:hover .ct-card__icon {
  transform: translateY(-4px) rotate(-6deg);
}

.ct-card h4 {
  font-size: 19px;
  color: var(--ct-ink);
  margin-bottom: 12px;
}

.ct-card p,
.ct-card a {
  color: var(--ct-body);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
  display: block;
  word-break: break-word;
}

.ct-card a:hover {
  color: var(--ct-blue);
}

.ct-card small {
  display: block;
  font-size: 13px;
  color: #9aa7b6;
  margin-top: 10px;
}

/* -------------------------------------------------------------- side panel */
.ct-aside {
  position: relative;
  height: 100%;
  border-radius: var(--ct-radius);
  padding: 45px 38px;
  color: #ffffff;
  background: linear-gradient(150deg, var(--ct-blue) 0%, var(--ct-blue-dark) 100%);
  box-shadow: var(--ct-shadow-lg);
  overflow: hidden;
}

.ct-aside::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.05);
  top: -110px;
  right: -100px;
}

.ct-aside::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 192, 0, 0.12);
  bottom: -80px;
  left: -60px;
}

.ct-aside > * {
  position: relative;
  z-index: 1;
}

.ct-aside h3 {
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 14px;
}

.ct-aside > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.ct-aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.ct-aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ct-aside-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ct-aside-list .ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ct-yellow);
  font-size: 17px;
}

.ct-aside-list h5 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 700;
}

.ct-aside-list p,
.ct-aside-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 0;
}

.ct-aside-list a:hover {
  color: var(--ct-yellow);
}

.ct-aside-list small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.ct-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ct-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 50px;
  box-shadow: 0 14px 28px rgba(38, 174, 97, 0.32);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.ct-wa:hover {
  color: #ffffff;
  background: #1f9a54;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(38, 174, 97, 0.42);
}

.ct-social {
  display: flex;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ct-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 15px;
  transition: all 0.3s ease;
}

.ct-social a:hover {
  background: var(--ct-yellow);
  color: var(--ct-ink);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------------- form */
.ct-form-card {
  height: 100%;
  background: #ffffff;
  border-radius: var(--ct-radius);
  padding: 45px 45px 40px;
  box-shadow: var(--ct-shadow);
}

.ct-form-card h3 {
  font-size: 26px;
  color: var(--ct-ink);
  margin-bottom: 8px;
}

.ct-form-card > p {
  color: var(--ct-body);
  font-size: 15px;
  margin-bottom: 30px;
}

.ct-field {
  position: relative;
  margin-bottom: 22px;
}

.ct-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ct-ink);
  margin-bottom: 9px;
}

.ct-field label span {
  color: #e04141;
}

.ct-field input,
.ct-field textarea {
  width: 100%;
  background: #fbfcfe;
  border: 1.5px solid var(--ct-line);
  border-radius: 12px;
  height: 58px;
  padding: 0 20px 0 50px;
  font-size: 15px;
  color: var(--ct-ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.ct-field textarea {
  height: 165px;
  padding: 18px 20px 18px 50px;
  line-height: 1.7;
  resize: none;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: #9aa7b6;
  font-weight: 400;
}

.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--ct-blue);
  box-shadow: 0 0 0 4px rgba(7, 73, 167, 0.1);
}

.ct-field .ct-ico {
  position: absolute;
  left: 20px;
  bottom: 21px;
  font-size: 15px;
  color: #9aa7b6;
  transition: color 0.3s ease;
  pointer-events: none;
}

.ct-field--area .ct-ico {
  bottom: auto;
  top: 52px;
}

.ct-field input:focus ~ .ct-ico,
.ct-field textarea:focus ~ .ct-ico {
  color: var(--ct-blue);
}

/* number input : masquer les fleches */
.ct-field input[type="number"]::-webkit-outer-spin-button,
.ct-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ct-field input[type="number"] {
  -moz-appearance: textfield;
}

.ct-submit {
  width: 100%;
  border: 0;
  height: 60px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(120deg, var(--ct-blue), var(--ct-blue-dark));
  box-shadow: 0 16px 30px rgba(7, 73, 167, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.ct-submit:hover {
  background: linear-gradient(120deg, var(--ct-yellow), #e0a300);
  /* Le blanc sur jaune est illisible : on passe le libelle en encre foncee. */
  color: var(--ct-ink);
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(255, 192, 0, 0.38);
}

.ct-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.ct-submit i {
  transition: transform 0.3s ease;
}

.ct-submit:hover i {
  transform: translateX(5px);
}

/* reponse formulaire */
#response:empty {
  display: none;
}

.ct-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 25px;
}

.ct-alert i {
  font-size: 18px;
}

.ct-alert--ok {
  background: rgba(38, 174, 97, 0.1);
  border-left: 4px solid var(--ct-green);
  color: #17864a;
}

.ct-alert--ko {
  background: rgba(224, 65, 65, 0.09);
  border-left: 4px solid #e04141;
  color: #c02f2f;
}

/* -------------------------------------------------------------------- map */
.ct-map {
  position: relative;
  margin-top: 70px;
  border-radius: var(--ct-radius);
  overflow: hidden;
  box-shadow: var(--ct-shadow-lg);
  border: 8px solid #ffffff;
}

.ct-map iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

.ct-map__badge {
  position: absolute;
  left: 30px;
  bottom: 30px;
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 14px 32px rgba(28, 39, 51, 0.16);
  border-left: 4px solid var(--ct-yellow);
  max-width: 300px;
}

.ct-map__badge h5 {
  font-size: 15px;
  color: var(--ct-ink);
  margin-bottom: 6px;
}

.ct-map__badge p {
  font-size: 13.5px;
  color: var(--ct-body);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ------------------------------------------------------------ responsive */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .ct-aside,
  .ct-form-card {
    padding: 38px 30px;
  }
}

@media only screen and (max-width: 991px) {
  .contact-page {
    padding-top: 30px;
    padding-bottom: 90px;
  }
  .ct-heading h2 {
    font-size: 32px;
  }
  .ct-aside {
    margin-bottom: 30px;
  }
  .ct-form-card {
    padding: 38px 32px;
  }
}

@media only screen and (max-width: 767px) {
  .contact-page {
    padding-top: 25px;
    padding-bottom: 70px;
  }
  .ct-heading {
    margin-bottom: 40px;
  }
  .ct-heading h2 {
    font-size: 26px;
  }
  .ct-cards {
    margin-bottom: 40px;
  }
  .ct-card {
    padding: 32px 22px 28px;
  }
  .ct-aside,
  .ct-form-card {
    padding: 32px 22px;
  }
  .ct-form-card h3,
  .ct-aside h3 {
    font-size: 22px;
  }
  .ct-map {
    margin-top: 45px;
    border-width: 5px;
  }
  .ct-map iframe {
    height: 340px;
  }
  .ct-map__badge {
    position: static;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Compteur de mots du champ message (limite : 200 mots) */
.ct-counter {
  margin: 8px 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ct-body);
  text-align: right;
  transition: color 0.2s ease;
}

.ct-counter span {
  font-weight: 700;
}

.ct-counter.is-near {
  color: #b8860b;
}

.ct-counter.is-over {
  color: #d0353a;
}
