@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/TT Firs Neue Trial Var Roman.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Gilroy", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
       LAYOUT 50/50
    ══════════════════════════════════════════ */
.main-row {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
       PANNEAU GAUCHE
    ══════════════════════════════════════════ */
.left-section {
  width: 50%;
  background-color: #00a883;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 100vh;
}

/* Symbole TGCC — à cheval entre les 2 panneaux */
.left-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 280px;
  height: 339px;
  background: url("../images/Symbole.svg") no-repeat center center;
  background-size: cover;
  margin: auto;
  transform: translateX(50%);
  z-index: 99999999;
}

/* Logo TGCC — GROS */
.logo img {
  max-width: 400px;
  width: 100%;
}

/* Contenu principal */
.content {
  color: #fff;
}

.content h1 {
  display: inline-block;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  text-transform: uppercase;
  font-size: 45px;
  font-weight: 700;
  padding: 5px 0;
  font-family: "TT Firs Neue", "Gilroy", sans-serif;
  margin-bottom: 30px;
  line-height: 1.15;
}

.content p {
  font-size: 24px;
  font-family: "Gilroy", sans-serif;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 50px;
  color: #fff;
}

.content p strong {
  font-weight: 700;
  font-size: 40px;
  font-family: "Gilroy", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.content .mt-4 {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 400px;
}

/* Footer — badge 10 ans + tel */
.footer-left {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.footer-left a {
  text-decoration: none;
  margin-right: 10px;
}

.footer-left img {
  max-width: 70px;
}

.footer-left .trust-text {
  margin: 0;
  color: #1846b9;
  font-weight: 700;
  line-height: 18px;
  font-family: "TT Firs Neue", sans-serif;
  font-size: 13px;
}

.footer-left .phone-cta {
  margin-left: auto;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  font-family: "Gilroy", sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}

.footer-left .phone-cta:hover {
  opacity: 1;
}

.footer-left .phone-cta svg {
  width: 20px;
  height: 20px;
}

/* ══════════════════════════════════════════
       PANNEAU DROIT — image + form
    ══════════════════════════════════════════ */
.right-section {
  width: 50%;
  background: url("../images/hero.jpg") no-repeat 70% center;
  background-size: cover;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Formulaire */
.form-container {
  position: relative;
  z-index: 2;
  margin-right: 70px;
  background-color: #00a883bf;
  backdrop-filter: blur(4px);
  padding: 24px 22px;
  border-radius: 10px;
  max-width: 290px;
  width: 100%;
}

.form-container h5 {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 35px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.15;
}

.form-ligne {
  margin-bottom: 15px;
}

.form-ligne input {
  width: 100%;
  height: 40px;
  background-color: #fff;
  font-size: 16px;
  color: #211f1f;
  outline: none;
  border: 0;
  padding-left: 15px;
  border-radius: 7px;
  box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.15) inset;
  font-family: "Gilroy", sans-serif;
}

.form-ligne input::placeholder {
  color: #666;
}

.form-checkbox {
  color: #fff;
  margin-top: 8px;
}

.form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
}

.form-checkbox label span {
  flex: 1;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox a {
  color: #fff;
  text-decoration: underline;
}

.form-submit-wrap {
  text-align: center;
  margin: 28px auto 20px;
}

.form-submit-btn {
  background-color: #1846b9;
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 18px;
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.form-submit-btn:hover {
  background-color: #0f3a9e;
}

.form-ligne input.error {
  border: 1px solid #ff4d4f;
}
.form-checkbox label.error,
.form-ligne label.error {
  color: #ec0003;
  font-size: 13px;
}

.form-checkbox {
  position: relative;
}
.form-checkbox label.error {
  position: absolute;
  bottom: -20px;
  font-size: 11px;
}

.alert-success p{
    color: #fff;
}
/* ══════════════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════════════ */
@media screen and (max-width: 991px) {
  .main-row {
    flex-direction: column;
  }

  .left-section {
    width: 100%;
    min-height: auto;
    padding: 40px 15px 200px 15px;
  }

  .left-section::after {
    content: "";
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 280px;
    height: 339px;
    background: url("../images/Symbole.svg") no-repeat center center;
    background-size: cover;
    transform: translateY(50%);
    z-index: 99999999;
    margin-left: auto;
    margin-right: auto;
  }

  .logo img {
    max-height: 100px;
  }

  .content h1 {
    font-size: 31px;
  }

  .content p {
    font-size: 28px;
    line-height: 38px;
  }

  .right-section {
    width: 100%;
    align-items: center;
    justify-content: center;
    padding-top: 200px;
  }

  .form-container {
    margin-right: 0;
    max-width: 370px;
  }

  .form-ligne input {
    height: 50px;
  }

  .form-ligne {
    margin-bottom: 20px;
  }

  .footer-left {
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 100000000;
    padding-bottom: 10px;
  }

  .footer-left img {
    max-width: 70px;
  }
}
