@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================
   PAGE
========================= */

.contact-page {
  min-height: calc(100vh - 72px);

  padding: 110px 20px 70px;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow-x: hidden;

  font-family: 'Cairo', Calibri, Tahoma, Arial, sans-serif;

  background:
    radial-gradient(
      circle at top right,
      rgba(244, 197, 66, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 255, 255, 0.05),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #041423,
      #0b2f52 55%,
      #08213a
    );
}

.contact-page,
.contact-card,
.contact-header,
.contact-form,
.contact-alert,
.contact-form input,
.contact-form textarea,
.contact-form button,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-family: 'Cairo', Calibri, Tahoma, Arial, sans-serif !important;
}

/* Texte en gras dans les champs */
.contact-form input,
.contact-form textarea {
  font-weight: 700;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-weight: 700;
}

/* Email : placeholder arabe à droite, mais texte saisi en LTR */
.contact-form input[name="email"] {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

.contact-form input[name="email"]:not(:placeholder-shown) {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

/* Téléphone : à droite */
.contact-form input[name="phone"] {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}

.contact-form input[name="phone"]::placeholder {
  direction: rtl;
  text-align: right;
}

/* Message en arabe à droite */
.contact-form textarea {
  direction: rtl;
  text-align: right;
}

/* Bouton plus gras */
.contact-btn {
  font-weight: 900;
}

/* Ne pas casser les icônes FontAwesome */
.contact-page .fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
/* =========================
   CARD
========================= */

.contact-card {
  width: 100%;
  max-width: 560px;

  position: relative;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.98);

  border-radius: 28px;

  padding: 38px 32px;

  border-top: 6px solid #f4c542;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* motif décoratif */
.contact-card::before {
  content: "۞";

  position: absolute;

  left: -2px;
  bottom: -18px;

  font-size: 180px;

  color: rgba(244, 197, 66, 0.08);

  line-height: 1;

  pointer-events: none;
}

/* =========================
   HEADER
========================= */

.contact-header {
  text-align: center;
  margin-bottom: 30px;

  position: relative;
  z-index: 2;
}

.contact-icon {
  width: 72px;
  height: 72px;

  margin: 0 auto 16px;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #f4c542,
    #ffda63
  );

  color: #071c33;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;

  box-shadow: 0 10px 20px rgba(244, 197, 66, 0.28);
}

.contact-header h1 {
  color: #071c33;

  font-size: 2rem;
  font-weight: 900;

  margin-bottom: 8px;
}

.contact-header p {
  color: #667085;

  font-size: 0.95rem;
  font-weight: 500;

  line-height: 1.7;
}

/* =========================
   ALERTS
========================= */

.contact-alert {
  margin: 18px 0;
  padding: 14px 18px;

  border-radius: 14px;

  font-weight: 700;
  line-height: 1.7;
  text-align: center;

  position: relative;
  z-index: 2;
}

.contact-success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.contact-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* =========================
   FORM
========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;

  position: relative;
  z-index: 2;
}

/* =========================
   INPUTS
========================= */

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;

  right: 16px;
  top: 50%;

  transform: translateY(-50%);

  color: #f4c542;

  font-size: 17px;
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;

  border: 1px solid #d8dde6;

  border-radius: 16px;

  padding: 14px 48px 14px 16px;

  font-size: 0.95rem;
  font-weight: 500;

  outline: none;

  transition: 0.25s;

  color: #071c33;

  background: #fcfcfd;

  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #667085;
  opacity: 1;
  font-weight: 500;
}

.input-wrap textarea {
  min-height: 130px;
  resize: vertical;
}

.textarea-wrap i {
  top: 22px;
  transform: none;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: #f4c542;

  background: #ffffff;

  box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.16);
}

/* =========================
   BUTTON
========================= */

.contact-btn {
  margin-top: 8px;

  border: none;

  border-radius: 18px;

  padding: 15px 22px;

  background: linear-gradient(
    135deg,
    #f4c542,
    #ffda63
  );

  color: #071c33;

  font-size: 1rem;
  font-weight: 800;

  letter-spacing: 0.3px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  transition: 0.25s;

  box-shadow: 0 10px 20px rgba(244, 197, 66, 0.28);
}

.contact-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 14px 30px rgba(244, 197, 66, 0.35);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .contact-page {
    display: block;

    padding: 95px 14px 45px;
  }

  .contact-card {
    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    padding: 26px 18px;

    border-radius: 22px;
  }

  .contact-header h1 {
    font-size: 1.6rem;
  }

  .contact-header p {
    font-size: 0.9rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;

    font-size: 24px;
  }

  .input-wrap input,
  .input-wrap textarea {
    width: 100%;
    max-width: 100%;

    font-size: 0.9rem;
  }

  .contact-btn {
    width: 100%;
  }

  .contact-card::before {
    font-size: 130px;

    left: -5px;
    bottom: -20px;
  }
}