/* =========================================================
   BASE
========================================================= */

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: #050505;
}

body {
  position: relative;

  min-height: 100vh;

  background: transparent !important;

  color: white;

  overflow-x: hidden;
}


/* =========================================================
   ARRIÈRE-PLAN
========================================================= */

.devis-bg {
  position: fixed;

  inset: 0;

  width: 100vw;
  height: 100vh;

  overflow: hidden;

  z-index: 0;

  pointer-events: none;
}

.devis-bg-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1.02);
}


/* =========================================================
   OVERLAY
========================================================= */

.devis-overlay {
  position: fixed;

  inset: 0;

  width: 100vw;
  height: 100vh;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.65) 50%,
      rgba(0, 0, 0, 0.82) 100%
    );

  z-index: 1;

  pointer-events: none;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  z-index: 1000 !important;
}


/* =========================================================
   PAGE
========================================================= */

.devis-page {
  position: relative;

  z-index: 2;

  width: min(1200px, calc(100% - 40px));

  margin: 0 auto;

  padding-top: 155px;
  padding-bottom: 100px;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.devis-intro {
  max-width: 900px;

  margin: 0 auto 70px;

  text-align: center;
}

.eyebrow {
  display: inline-block;

  margin-bottom: 18px;

  color: #D62828;

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

  letter-spacing: 0.22em;

  text-transform: uppercase;
}

.devis-intro h1 {
  margin: 0;

  font-size: clamp(2.7rem, 5vw, 5rem);

  line-height: 1.02;

  letter-spacing: -0.045em;
}

.devis-intro h1 span {
  display: block;

  color: #D62828;
}

.devis-intro p {
  max-width: 720px;

  margin: 28px auto 0;

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

  font-size: 1.05rem;

  line-height: 1.7;
}


/* =========================================================
   CONTAINER
========================================================= */

.devis-container {
  display: grid;

  grid-template-columns: 0.75fr 1.5fr;

  gap: 25px;

  align-items: start;
}


/* =========================================================
   PANNEAU INFORMATIONS
========================================================= */

.devis-info {
  position: sticky;

  top: 120px;

  padding: 38px;

  border-radius: 24px;

  background: rgba(15, 15, 15, 0.60);

  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35);
}

.section-number {
  display: block;

  margin-bottom: 12px;

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

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

  letter-spacing: 0.2em;
}

.devis-info h2 {
  margin: 0;

  font-size: 2rem;

  letter-spacing: -0.03em;
}

.devis-info > p {
  margin: 18px 0 0;

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

  line-height: 1.65;
}


/* =========================================================
   LISTE INFO
========================================================= */

.info-list {
  display: flex;

  flex-direction: column;

  gap: 24px;

  margin-top: 40px;
}

.info-item {
  display: flex;

  gap: 15px;

  align-items: flex-start;
}

.info-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  background: rgba(214, 40, 40, 0.14);

  border: 1px solid rgba(214, 40, 40, 0.4);

  color: #D62828;

  font-weight: 700;
}

.info-item strong {
  display: block;

  margin-bottom: 5px;

  font-size: 0.95rem;
}

.info-item span {
  display: block;

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

  font-size: 0.85rem;

  line-height: 1.5;
}


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

.devis-form-card {
  padding: 42px;

  border-radius: 24px;

  background: rgba(15, 15, 15, 0.64);

  border: 1px solid rgba(255, 255, 255, 0.13);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.38);
}

.devis-form-card h2 {
  margin: 0;

  font-size: 2.2rem;

  letter-spacing: -0.03em;
}

.form-intro {
  margin: 15px 0 35px;

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

  line-height: 1.6;
}


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

.devis-form {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 22px;
}

.form-group {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  color: rgba(255, 255, 255, 0.75);

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


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  padding: 15px 16px;

  border: 1px solid rgba(255, 255, 255, 0.11);

  border-radius: 12px;

  outline: none;

  background: rgba(0, 0, 0, 0.35);

  color: white;

  font-family: inherit;

  font-size: 0.95rem;

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(214, 40, 40, 0.8);

  background: rgba(0, 0, 0, 0.48);

  box-shadow:
    0 0 0 3px rgba(214, 40, 40, 0.10);
}

.form-group textarea {
  resize: vertical;

  min-height: 150px;
}


/* =========================================================
   SELECT
========================================================= */

.form-group select {
  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      rgba(255,255,255,.6) 50%
    ),
    linear-gradient(
      135deg,
      rgba(255,255,255,.6) 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;
}

.form-group select option {
  background: #111;

  color: white;
}


/* =========================================================
   PARTICULIER / PROFESSIONNEL
========================================================= */

.client-type {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;
}

.client-option {
  position: relative;

  cursor: pointer;
}

.client-option input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.client-option span {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 0 20px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.11);

  background: rgba(0, 0, 0, 0.30);

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

  transition: all 0.2s ease;
}

.client-option input:checked + span {
  border-color: #D62828;

  background: rgba(214, 40, 40, 0.14);

  color: white;

  box-shadow:
    0 0 0 1px rgba(214, 40, 40, 0.15);
}


/* =========================================================
   CHAMPS PROFESSIONNELS
========================================================= */

.professionnel-field {
  display: none;
}

.professionnel-field.visible {
  display: flex;
}


/* =========================================================
   FICHIER
========================================================= */

.file-zone {
  position: relative;

  display: flex;

  align-items: center;

  gap: 16px;

  min-height: 90px;

  padding: 20px;

  border-radius: 14px;

  border: 1px dashed rgba(255, 255, 255, 0.20);

  background: rgba(0, 0, 0, 0.22);

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.file-zone:hover {
  border-color: rgba(214, 40, 40, 0.65);

  background: rgba(214, 40, 40, 0.06);
}

.file-zone input {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;

  cursor: pointer;
}

.file-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  background: rgba(214, 40, 40, 0.14);

  color: #D62828;

  font-size: 1.5rem;
}

.file-zone strong {
  display: block;

  margin-bottom: 5px;
}

.file-zone small {
  color: rgba(255, 255, 255, 0.45);
}


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

.consent-group {
  margin-top: 5px;
}

.consent {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;

  margin-top: 2px;

  accent-color: #D62828;
}

.consent span {
  color: rgba(255, 255, 255, 0.55);

  font-size: 0.8rem;

  line-height: 1.5;
}


/* =========================================================
   BOUTON
========================================================= */

.form-submit {
  margin-top: 10px;
}

.submit-button {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  width: 100%;

  padding: 17px 22px;

  border: none;

  border-radius: 12px;

  background: #D62828;

  color: white;

  font-family: inherit;

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

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.submit-button span {
  font-size: 1.3rem;
}

.submit-button:hover {
  background: #b91f1f;

  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(214, 40, 40, 0.20);
}


/* =========================================================
   BAS DE PAGE
========================================================= */

.devis-bottom {
  padding: 110px 20px 30px;

  text-align: center;
}

.devis-bottom h2 {
  margin: 0;

  font-size: clamp(2.3rem, 5vw, 4rem);

  letter-spacing: -0.04em;

  line-height: 1.08;
}

.devis-bottom h2 span {
  color: #D62828;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 950px) {

  .devis-container {
    grid-template-columns: 1fr;
  }

  .devis-info {
    position: relative;

    top: auto;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .devis-page {
    width: calc(100% - 20px);

    padding-top: 110px;
    padding-bottom: 60px;
  }

  .devis-intro {
    margin-bottom: 45px;
  }

  .devis-intro h1 {
    font-size: 2.5rem;
  }

  .devis-intro p {
    font-size: 0.95rem;
  }

  .devis-info {
    padding: 28px 22px;
  }

  .devis-form-card {
    padding: 28px 18px;
  }

  .devis-form {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: auto;
  }

  .client-type {
    grid-template-columns: 1fr;
  }

  .devis-bottom {
    padding-top: 70px;
  }

  }
/* =========================================================
   ACCÈS DEVIS KIT SSIAP
   Même style que le reste de la page
========================================================= */

.devis-kit-cta {
  position: relative;

  width: 100%;

  margin-top: 30px;
  padding: 36px;

  background: rgba(15, 15, 15, 0.58);

  border: 1px solid rgba(255, 255, 255, 0.13);

  border-radius: 24px;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  overflow: hidden;
}


/* Petite lueur rouge */

.devis-kit-cta::before {
  content: "";

  position: absolute;

  width: 250px;
  height: 250px;

  top: -160px;
  right: -100px;

  background: rgba(214, 40, 40, 0.18);

  border-radius: 50%;

  filter: blur(50px);

  pointer-events: none;
}


/* Petit titre rouge */

.devis-kit-label {
  display: block;

  position: relative;

  margin-bottom: 12px;

  color: #D62828;

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

  letter-spacing: 0.16em;

  text-transform: uppercase;
}


/* Titre */

.devis-kit-cta h2 {
  position: relative;

  margin: 0 0 12px;

  color: #ffffff;

  font-size: clamp(1.6rem, 3vw, 2.2rem);

  font-weight: 600;

  letter-spacing: -0.02em;

  line-height: 1.3;
}


/* Texte */

.devis-kit-cta p {
  position: relative;

  max-width: 700px;

  margin: 0 0 25px;

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

  font-size: 1rem;

  line-height: 1.6;
}


/* Bouton */

.devis-kit-cta button {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 14px 28px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);

  color: #ffffff;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;

  cursor: pointer;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}


.devis-kit-cta button:hover {
  background: #D62828;

  border-color: #D62828;

  transform: translateY(-2px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .devis-kit-cta {
    margin-top: 20px;

    padding: 28px 22px;

    border-radius: 20px;
  }


  .devis-kit-cta h2 {
    font-size: 1.7rem;
  }


  .devis-kit-cta button {
    width: 100%;
  }

}

