/* =========================================
   RÉINITIALISATION
========================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;

  background: #ffffff;

  font-family:
    'Montserrat',
    Arial,
    sans-serif;
}


/* =========================================
   BANNIÈRE DE DÉMONSTRATION
========================================= */

.demo-banner {
  width: 100%;

  padding:
    10px 15px;

  background: #f2c500;
  color: #111111;

  font-family:
    'Montserrat',
    Arial,
    sans-serif;

  font-size: 0.9rem;
  font-weight: 700;

  text-align: center;
}


/* =========================================
   EN-TÊTE
========================================= */

.header-bar {
  padding:
    10px 0 8px 15px;

  background: #1f7a4c;
  color: #ffffff;

  font-size: 1.5em;
  font-weight: 700;

  letter-spacing: 0.5px;

  text-align: left;
}


/* =========================================
   SECTION CONTACT
========================================= */

.contact-section {
  max-width: none;

  min-height:
    calc(
      100vh -
      51px
    );

  margin:
    0 auto;

  padding:
    70px 20px 90px;

  background:
    linear-gradient(
      180deg,
      #f7fbf8 0%,
      #ffffff 45%,
      #eef6f1 100%
    );

  color: #0b241d;

  text-align: center;
}

.contact-section h1 {
  max-width: 1000px;

  margin:
    0 auto 18px;

  color: #0b241d;

  font-size: 2.2em;
  font-weight: 400;
  line-height: 1.3;
}

.contact-section h1:first-child {
  color: #1f7a4c;
}


/* =========================================
   FORMULAIRE
========================================= */

.contact-form {
  width:
    min(
      900px,
      92%
    );

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 15px;

  margin:
    38px auto 0;

  padding: 38px;

  border:
    1px solid
    rgba(31, 122, 76, 0.18);

  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 22px 55px
    rgba(11, 36, 29, 0.10);
}

.contact-form textarea {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 120px;

  padding:
    14px 16px;

  border:
    1px solid
    #cfded5;

  border-radius: 8px;

  background: #f8fbf9;
  color: #0b241d;

  font-family:
    'Montserrat',
    Arial,
    sans-serif;

  font-size: 1.05em;

  resize: vertical;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  width: 100%;
  min-width: 0;
  max-width: none;

  padding:
    13px 16px;

  border:
    1px solid
    #cfded5;

  border-radius: 8px;

  background: #f8fbf9;
  color: #0b241d;

  font-family:
    'Montserrat',
    Arial,
    sans-serif;

  font-size: 1.05em;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact-form textarea:focus,
.contact-form input:focus {
  outline: none;

  border-color: #1f7a4c;

  background: #ffffff;

  box-shadow:
    0 0 0 4px
    rgba(31, 122, 76, 0.10);
}

.contact-form textarea::placeholder,
.contact-form input::placeholder {
  color: #7b8983;
}


/* =========================================
   CONSENTEMENT RGPD
========================================= */

.checkbox-row {
  width: 100%;

  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin:
    4px auto 0;

  text-align: left;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;

  accent-color: #1f7a4c;
}

.checkbox-row label {
  color: #42514b;

  font-size: 0.95em;
  font-weight: 400;
  line-height: 1.5;
}


/* =========================================
   BOUTON DU FORMULAIRE
========================================= */

.contact-form button {
  position: relative;

  margin-top: 12px;

  padding:
    13px 44px;

  overflow: hidden;

  border: none;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #0b241d 0%,
      #1f7a4c 100%
    );

  color: #ffffff;

  font-family:
    'Montserrat',
    Arial,
    sans-serif;

  font-size: 1.1em;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 12px 28px
    rgba(11, 36, 29, 0.18);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form button::before {
  content: "";

  position: absolute;

  top: 0;
  left: -130%;

  width: 60%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.28),
      transparent
    );

  transform:
    skewX(-22deg);

  transition:
    left 0.7s ease;
}

.contact-form button:hover {
  transform:
    translateY(-3px);

  box-shadow:
    0 18px 36px
    rgba(11, 36, 29, 0.24);
}

.contact-form button:hover::before {
  left: 145%;
}

.contact-form button:active {
  transform:
    translateY(-1px);
}


/* =========================================
   BOUTON DÉSACTIVÉ
========================================= */

.contact-form button:disabled {
  opacity: 0.65;

  cursor: not-allowed;

  transform: none;
}

.contact-form button:disabled:hover {
  transform: none;

  box-shadow:
    0 12px 28px
    rgba(11, 36, 29, 0.18);
}

.contact-form button:disabled:hover::before {
  left: -130%;
}


/* =========================================
   FOOTER
========================================= */

.footer-section {
  padding-top: 75px;

  background:
    linear-gradient(
      90deg,
      #06110d 0%,
      #0b241d 25%,
      #12352a 50%,
      #0b241d 75%,
      #06110d 100%
    );

  color: #ffffff;
}

.footer-container {
  width:
    min(
      1400px,
      92%
    );

  display: grid;

  grid-template-columns:
    1.2fr 1fr 1fr 0.9fr;

  gap: 80px;

  margin:
    0 auto;

  padding-bottom: 60px;
}

.footer-column {
  display: flex;

  flex-direction: column;

  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 16px;

  font-size: 3rem;
  font-weight: 700;
}

.footer-identity p {
  margin:
    0 0 32px;
}

.footer-identity address {
  font-style: normal;
  line-height: 1.65;
}

.footer-column h3 {
  margin:
    0 0 28px;

  font-size: 1.1rem;
  font-weight: 600;
}

.footer-column a {
  margin-bottom: 9px;

  color:
    rgba(255, 255, 255, 0.73);

  text-decoration: none;

  font-size: 0.92rem;
  line-height: 1.6;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer-column a:hover {
  color: #9cc3ad;

  transform:
    translateX(4px);
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding:
    12px 18px;

  background: #e9e9e9;
  color: #1a1a1a;

  font-size: 0.88rem;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

  .footer-container {
    grid-template-columns:
      repeat(2, 1fr);

    row-gap: 50px;
  }

}


@media (max-width: 700px) {

  .demo-banner {
    padding:
      9px 12px;

    font-size: 0.78rem;
    line-height: 1.4;
  }

  .contact-section {
    padding:
      50px 16px 70px;
  }

  .contact-section h1 {
    font-size: 1.65em;
  }

  .contact-form {
    width: 100%;

    padding:
      24px 18px;
  }

  .footer-container {
    width: 90%;

    grid-template-columns:
      1fr;

    gap: 45px;

    padding:
      0 0 45px;
  }

  .footer-logo {
    font-size: 2.4rem;
  }

  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;
  }

}