@import url("theme-variables.css");

body {
   margin: 0;
   overflow-x: hidden;
   background: var(--cbf-fond-contact);
   background-attachment: fixed;
}

/* Nav Bar*/

.fond_header { width: 100%; }

.position_header {
   height: 150px;
   display: flex;
   align-items: center;
   padding: 0 40px;
   z-index: 1;
}

.box_tete {
   position: fixed;
   bottom: 200;
   left: 0;
   right: 0;
   height: 150px;
   background-color: transparent;
   display: flex;
   align-items: center;
   padding: 0 40px;
   z-index: 10;
   transition: background 0.4s ease, box-shadow 0.4s ease;
   /* Liseré doré en bas — signature visuelle */
   border-bottom: 1px solid transparent;
}

.box_tete.header-scrolled {
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   background: rgba(11,11,15,0.85);
   border-bottom-color: var(--cbf-violet-sombre);
   box-shadow: 0 2px 32px rgba(0,0,0,0.55);
}

.position_logo { position: absolute; z-index: 1; }
.image_logo    { height: 80px; }

.center_header {
   display: flex;
   justify-content: center;
   margin: auto;
   align-items: center;
   gap: 40px;
}

.texte_head {
   text-decoration: none;
   font-size: 22px;
   font-family: "Baloo 2", sans-serif;
   font-weight: 700;
   color: var(--cbf-texte-nav);
   position: relative;
   display: inline-block;
   padding-bottom: 6px;
   letter-spacing: 0.03em;
   transition: color 0.3s ease;
}
.texte_head:hover { color: var(--cbf-violet-vif); }

.texte_head::after {
   content: "";
   position: absolute;
   left: 0; bottom: 0;
   width: 100%; height: 2px;
   background: linear-gradient(90deg, var(--cbf-turcoise), var(--cbf-violet-vif));
   transform: scaleX(0);
   transform-origin: left;
   transition: transform 0.45s ease;
   border-radius: 1px;
}
.texte_head:hover::after,
.texte_head:focus-visible::after,
.texte_head.page_actuel::after { transform: scaleX(1); }
.texte_head.page_actuel { color: var(--cbf-turcoise); }

.menu-hamburger {
   display: none;
   position: absolute;
   right: 35px;
   width: 80px;
}

/* Fond */

.fond_contact {
   background:
      linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(11,11,15,0.50) 100%), center/cover;
   height: 1100px;
   width: 100%;
   display: flex;
   text-align: center;
   align-items: center;
   justify-content: center;
}

.fond_header_form {
   height: 900px;
   width: 100%;
}

.disposition_fond {
   margin-top: 30px;
   margin-bottom: 30px;
   display: flex;
   justify-content: center;
}


.fond_formulaire {
   position: relative;
   overflow: hidden;
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   background: rgba(15,15,22,0.72);
   border: 1px solid var(--cbf-glass-border);
   /* Liseré gauche sarcelle — signature */
   box-shadow:
      inset 2px 0 0 var(--cbf-turcoise),
      inset 0 2px 4px var(--cbf-glass-inset-light),
      inset 0 -2px 4px var(--cbf-glass-inset-dark),
      0 20px 60px rgba(0,0,0,0.60);
   font-weight: 700;
   font-family: "Baloo 2", sans-serif;
   color: var(--cbf-blanc);
   width: 900px;
   height: 740px;
   border-radius: 40px;
   padding: 15px 30px;
}

.fond_formulaire::before {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: inherit;
   pointer-events: none;
   background: linear-gradient(
      160deg,
      rgba(47,211,195,0.07) 0%,
      transparent 35%,
      rgba(0,0,0,0.20) 100%
   );
}

.position_titre_form {
   margin-top: 45px;
   display: flex;
   text-align: center;
   align-items: center;
   justify-content: center;
}

.titre_b1 {
   font-size: 40px;
   font-weight: 700;
   font-family: "Baloo 2", sans-serif;
   background: linear-gradient(135deg, var(--cbf-or-vif) 0%, var(--cbf-turcoise) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   letter-spacing: 0.02em;
}

/* FORMULAIRE */

.container_form {
   margin-top: 50px;
   display: flex;
   align-items: center;
   text-align: center;
   justify-content: space-around;
   position: relative;
}

.container_form > div:first-child {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.form-value .inputbox,
.form-value .inputbox_1 { margin: 5px 0; width: 100%; max-width: 380px; }

.inputbox input,
.inputbox_1 textarea {
   display: block;
   width: 100%;
   box-sizing: border-box;
   font-weight: 600;
   font-family: "Baloo 2", sans-serif;
   font-size: 22px;
   background: transparent;
   border: none;
   border-bottom: 1.5px solid var(--cbf-violet-sombre);
   padding: 6px 4px;
   margin-bottom: 10px;
   color: var(--cbf-creme);
   outline: none;
   transition: border-color 0.3s ease;
}
.inputbox input:focus,
.inputbox_1 textarea:focus { border-bottom-color: var(--cbf-turcoise); }
.inputbox input::placeholder,
.inputbox_1 textarea::placeholder { color: rgba(47,211,195,0.40); }

.inputbox select {
   display: block;
   width: 100%;
   box-sizing: border-box;
   font-weight: 600;
   font-family: "Baloo 2", sans-serif;
   font-size: 22px;
   appearance: none;
   -webkit-appearance: none;
   cursor: pointer;
   padding: 10px 40px 10px 14px;
   margin-bottom: 10px;
   color: var(--cbf-or-vif);
   background-color: var(--cbf-glass-bg-strong);
   border: 1.5px solid var(--cbf-glass-border);
   border-radius: 12px;
   outline: none;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232FD3C3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 14px center;
   background-size: 14px;
   transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.inputbox select:hover {
   border-color: var(--cbf-violet-sombre);
   background-color: var(--cbf-glass-hover);
}
.inputbox select:focus {
   border-color: var(--cbf-turcoise);
   background-color: rgba(15, 15, 22, 0.88);
   box-shadow: 0 0 0 3px var(--cbf-or-glow);
}
.inputbox select:required:invalid { color: rgba(47,211,195,0.45); }
.inputbox select option {
   color: var(--cbf-creme);
   background: var(--cbf-gris-fonce);
   padding: 10px;
}
.inputbox select option:checked {
   color: var(--cbf-or-vif);
   background: var(--cbf-or-pale);
}

.inputbox_1 textarea {
   min-height: 80px;
   resize: vertical;
   padding-bottom: 20px;
}

/* Bouton envoyer */
button {
   margin-top: 14px;
   cursor: pointer;
   border: 1.5px solid var(--cbf-turcoise);
   background: transparent;
   font-size: 20px;
   padding: 14px 30px;
   border-radius: 50px;
   font-weight: 700;
   font-family: "Baloo 2", sans-serif;
   color: var(--cbf-turcoise);
   text-decoration: none;
   letter-spacing: 0.04em;
   transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.transition_button { transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease; }
.transition_button:hover {
   background: var(--cbf-turcoise);
   color: var(--cbf-noir);
   box-shadow: 0 0 20px var(--cbf-or-glow-fort);
}

/* INFOS DE CONTACT */

.disposition_information {
   gap: 50px;
   display: flex;
   align-items: center;
   flex-direction: column;
   position: relative;
}

.disposition_texte_img {
   display: flex;
   flex-direction: column;
   text-align: center;
   align-items: center;
}

.texte_information {
   text-decoration: none;
   font-size: 20px;
   font-weight: 700;
   font-family: "Baloo 2", sans-serif;
   color: var(--cbf-violet-vif);
   transition: color 0.3s ease;
}
.texte_information:hover { color: var(--cbf-turcoise); }

/* Icônes teintées sarcelle */
.image_information {
   width: 60px;
   filter: sepia(1) saturate(6) hue-rotate(140deg) brightness(0.95);
}

/* FOOTER */

.footer {
   display: flex;
   flex-direction: row;
   justify-content: space-around;
   align-items: center;
   height: 150px;
   background: var(--cbf-footer-bg);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-top: 1px solid var(--cbf-violet-sombre);
   box-shadow: 0 -4px 30px rgba(0,0,0,0.45);
}

.texte_footer {
   font-weight: 700;
   font-size: 22px;
   font-family: "Baloo 2", sans-serif;
   text-decoration: none;
   color: var(--cbf-turcoise);
   letter-spacing: 0.02em;
   transition: color 0.3s ease;
}
.texte_footer:hover { color: var(--cbf-violet-vif); }

/* RESPONSIVE */

@media (max-width: 1060px) and (min-width: 870px) {
   .texte_footer { font-size: 20px; }
   .fond_formulaire  { width: 750px; }
}

@media screen and (max-width: 870px) {
   .center_header {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100vh;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: var(--cbf-menu-mobile-bg);
      backdrop-filter: blur(15px);
      margin-left: -100%;
      transition: all 0.5s ease;
      z-index: 1;
      gap: 25px;
   }
   .fond_contact {
   background:
      linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(11,11,15,0.50) 100%), center/cover;
   height: 1300px;
   width: 100%;
   display: flex;
   text-align: center;
   align-items: center;
   justify-content: center;
   }
   .mobile-menu    { margin-left: 0; }
   .texte_head     { font-size: 1.4em; }
   .menu-hamburger { display: block; z-index: 3; }
   .image_logo     { margin-left: 30%; height: 80px; }
   .droite         { margin-right: 30%; }
   .box_tete       { justify-content: space-between; padding: 0; }

   .fond_header_form { height: 1100px; }
   .fond_formulaire  { height: 1000px; width: 350px;}
   .container_form {
      flex-direction: column;
      justify-content: center;
   }
   .titre_b1 { font-size: 35px; }
   button    { margin-top: 20px; }
   .texte_information   { font-size: 18px; }
   .disposition_information { margin-top: 25px; }
}

@media screen and (max-width: 970px) {
   .footer       { flex-direction: column; height: 200px; }
   .texte_footer { font-size: 20px; }
}
