/* =========================================
   STYLE CONTACT - VERSION ULTIMATE UX
   ========================================= */

/* --- 0. VARIABLES & CONFIG --- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800;900&family=Open+Sans:wght@400;600&display=swap");

:root {
  --it-orange: #f36f2b;
  --it-blue: #007cc2;
  --it-dark: #002b45;
  --it-grey-light: #f4f7f9;
  --it-yellow-hero-start: #ffb347;
  --it-yellow-hero-end: #ffcc33;
  --it-green-success: #10b981;
}

/* RESET GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff;
  font-family: "Open Sans", sans-serif;
  color: #444;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.main-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.bg-light {
  background-color: var(--it-grey-light);
}
.bg-white {
  background-color: #fff;
}

/* =========================================
   NOUVEAU : SECTION ISOLÉE POUR LE CV
   ========================================= */
.cv-isolated-section {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05); /* Ombre douce pour le détacher */
  margin-bottom: 40px; /* Espace avant les inputs */
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.cv-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--it-dark);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cv-section-title i {
  color: var(--it-orange);
  margin-right: 10px;
}

/* =========================================
   ZONE UPLOAD CV - "DREAM UX"
   ========================================= */
.upload-container {
  width: 100%;
  max-width: 800px; /* On limite la largeur pour que ça reste élégant */
  margin: 0 auto; /* Centré */
  position: relative;
}

/* Le Container Cliquable */
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fbff; /* Fond légèrement bleuté */
  border: 2px dashed #cbd5e1;
  border-radius: 15px;
  padding: 50px 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Effet Hover : Lévitation */
.upload-label:hover {
  border-color: var(--it-blue);
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(0, 124, 194, 0.2);
}

/* L'icône (Nuage) */
.upload-icon {
  font-size: 4.5rem;
  color: #94a3b8;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.upload-label:hover .upload-icon {
  color: var(--it-blue);
  transform: scale(1.1) rotate(-5deg);
}

/* Typographie */
.upload-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--it-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.upload-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}

.upload-subtitle strong {
  color: var(--it-blue);
  text-decoration: underline;
}

/* --- ÉTAT DE SUCCÈS --- */
.upload-label.file-selected {
  border-style: solid;
  border-color: var(--it-green-success);
  background-color: #ecfdf5;
}

.upload-label.file-selected .upload-icon {
  color: var(--it-green-success);
  transform: scale(1);
}

.file-success-msg {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--it-green-success);
  display: none;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#cv_file {
  display: none;
}

/* =========================================
   1. HERO BANNER
   ========================================= */
.contact-hero {
  background: url("../img/image.png") center/cover no-repeat;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
}
.relative-container {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-hero-icons {
  position: absolute;
  top: -50px;
  right: 0;
  display: flex;
  gap: 15px;
  z-index: 10;
}
.icon-bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.icon-bubble:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.contact-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}
.hero-txt {
  flex: 1;
  min-width: 300px;
  padding-bottom: 60px;
  z-index: 2;
}
.hero-txt h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--it-dark);
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-txt p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--it-dark);
  margin-bottom: 35px;
  line-height: 1.5;
}

.btn-blue-pill {
  background-color: var(--it-blue);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}
.btn-blue-pill:hover {
  background-color: var(--it-dark);
  transform: translateY(-3px);
}

.hero-img-hand {
  display: none !important;
}

/* =========================================
   2. INTRO
   ========================================= */
.contact-intro-section {
  padding: 80px 0;
}
.split-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
}
.col-image {
  flex: 1;
  min-width: 300px;
}
.col-image img.rounded-shadow-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.col-text {
  flex: 1;
  min-width: 300px;
}
.orange-title {
  color: var(--it-orange);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.intro-bold {
  font-weight: 700;
  color: var(--it-dark);
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.col-text p {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.7;
}
.intro-instruction {
  font-weight: 700;
  color: var(--it-blue);
  margin-top: 25px;
  border-left: 4px solid var(--it-blue);
  padding-left: 15px;
}

/* =========================================
   3. FORMULAIRES GENERAUX
   ========================================= */
.form-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.form-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 20px;
}
.form-titles {
  flex: 1;
  min-width: 300px;
}
.orange-subtitle {
  color: var(--it-orange);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.small-desc {
  font-size: 0.95rem;
  color: #666;
  margin-top: 10px;
  max-width: 800px;
  line-height: 1.5;
}
.form-icon {
  font-size: 3.5rem;
  color: var(--it-blue);
  opacity: 0.2;
  transition: opacity 0.3s;
}
.form-section:hover .form-icon {
  opacity: 1;
}

.clean-form {
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}
.form-grid input {
  width: 100%;
  padding: 15px 25px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: "Open Sans", sans-serif;
  outline: none;
  transition: all 0.3s;
  background-color: white;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.02);
}
.form-grid input:focus {
  border-color: var(--it-blue);
  box-shadow: 0 0 0 4px rgba(0, 124, 194, 0.1);
}

.btn-blue-block {
  width: 100%;
  max-width: 400px;
  background-color: var(--it-blue);
  color: white;
  padding: 18px;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 124, 194, 0.2);
  display: block;
}
.btn-blue-block:hover {
  background-color: var(--it-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 124, 194, 0.3);
}
.form-btn-wrapper {
  display: flex;
  justify-content: flex-start;
}

/* =========================================
   4. CONTACT GENERAL & FOOTER
   ========================================= */
.general-contact-section {
  padding: 80px 0;
  background: #fff;
}
.rounded-img-contact {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.contact-details {
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-item {
  margin-bottom: 30px;
}
.contact-item .label {
  font-size: 0.9rem;
  color: var(--it-blue);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.contact-item .val {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-item .val i {
  color: var(--it-orange);
}

.social-icons-row {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}
.social-icons-row a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--it-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.social-icons-row a:hover {
  transform: translateY(-3px);
  background-color: var(--it-orange);
}

.bottom-orange-banner {
  background-color: var(--it-orange);
  padding: 60px 0;
  color: white;
  margin-top: 0;
}
.banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}
.banner-logo .logo-white-bg {
  background: white;
  padding: 20px;
  border-radius: 15px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.banner-logo img {
  width: 100%;
}
.banner-text {
  flex: 1;
  min-width: 300px;
}
.banner-text h2 {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.2;
}
.banner-text p {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}
.small-tag {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.9;
  display: inline-block;
  margin-top: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .contact-details {
    padding-left: 0;
    margin-top: 40px;
  }
}
@media (max-width: 900px) {
  .contact-hero {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: 60px;
    text-align: center;
  }
  .hero-txt h1 {
    font-size: 2rem;
  }
  .contact-hero-row {
    flex-direction: column;
  }
  .hero-img-hand {
    display: none;
  }
  .top-hero-icons {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    margin-bottom: 30px;
  }
  .split-row {
    flex-direction: column;
  }
  .col-image,
  .col-text {
    width: 100%;
    min-width: 100%;
  }
  .form-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .form-icon {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .form-btn-wrapper {
    justify-content: center;
  }
  .btn-blue-block {
    max-width: 100%;
  }
  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  /* Sur mobile, on réduit un peu le padding de la section CV */
  .cv-isolated-section {
    padding: 25px;
  }
  .upload-label {
    padding: 30px 15px;
  }
}
