/* ==========================================
   CONTACT PAGE - MODERN DESIGN
   ========================================== */

/* Masquer la colonne d'informations et forcer le contenu en pleine largeur */
#contact #left-column {
  display: none !important;
}

#contact #content-wrapper {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

#contact .page-content {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#contact .row {
  margin: 0 !important;
}

/* Titre principal hero */
.contact-hero-section {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 80px 40px 40px 40px;
  background: linear-gradient(135deg, #222248 0%, #2c3e50 100%);
  text-align: center;
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-main-title {
  font-size: 56px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
  animation: fadeInDown 0.8s ease;
}

.contact-main-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Conteneur flex principal pour About + Form */
.contact-main-wrapper {
  display: flex;
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  min-height: 100vh;
}

/* Forcer la section FAQ à sortir du container */
.contact-faq-section {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* ==========================================
   1. SECTION À PROPOS
   ========================================== */

.contact-about-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  width: 50%;
  box-sizing: border-box;
}

.contact-about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 50, 0, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  width: 100%;
}

.about-text {
  position: relative;
  z-index: 1;
}

.about-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primaryllw-color, #222248);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 25px;
  line-height: 1.2;
  margin-top: 0;
}

.about-text>p {
  font-size: 18px;
  line-height: 1.8;
  color: #5a6c7d;
  margin-bottom: 40px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.about-feature:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-feature i.material-icons {
  font-size: 36px;
  color: var(--primaryllw-color, #222248);
  background: rgba(255, 50, 0, 0.1);
  padding: 12px;
  border-radius: 12px;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.about-feature p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.about-image {
  display: none;
}

.about-image-wrapper {
  display: none;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   2. FORMULAIRE DE CONTACT
   ========================================== */

.contact-form-section {
  padding: 80px 40px;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  width: 50%;
  box-sizing: border-box;
}

.contact-form-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 15px;
  margin-top: 0;
}

.contact-form-header p {
  font-size: 16px;
  color: #6c757d;
  margin: 0;
}

.contact-form {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

/* Alert Messages */
.alert-message {
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  animation: slideInDown 0.4s ease;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-message i.material-icons {
  font-size: 24px;
  flex-shrink: 0;
}

.alert-message ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.alert-message li {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Fields */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label i.material-icons {
  font-size: 20px;
  color: var(--primaryllw-color, #222248);
}

.form-group label .optional {
  font-size: 12px;
  font-weight: 400;
  color: #95a5a6;
  text-transform: none;
  letter-spacing: 0;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  font-size: 15px;
  color: #2c3e50;
  height: 9% !important;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primaryllw-color, #222248);
  box-shadow: 0 0 0 4px rgba(255, 50, 0, 0.1);
}

.form-control::placeholder {
  color: #adb5bd;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 45px;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

/* File Upload */
.file-upload-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: #f8f9fa;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 600;
  color: #495057;
}

.file-label i.material-icons {
  font-size: 28px;
  color: var(--primaryllw-color, #222248);
}

.file-label:hover {
  background: #ffffff;
  border-color: var(--primaryllw-color, #222248);
  color: var(--primaryllw-color, #222248);
}

.file-input:focus+.file-label {
  border-color: var(--primaryllw-color, #222248);
  box-shadow: 0 0 0 4px rgba(255, 50, 0, 0.1);
}

/* Form Footer */
.form-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--primaryllw-color);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 50, 0, 0.4);
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-submit i.material-icons {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-submit:hover i.material-icons {
  transform: translateX(5px);
}

/* ==========================================
   3. SECTION COORDONNÉES
   ========================================== */

.contact-info-section {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 80px 40px;
  background: linear-gradient(135deg, #222248 0%, #2c3e50 100%);
  box-sizing: border-box;
}

.contact-info-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact-info-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-info-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
}

.contact-info-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  animation: fadeIn 0.6s ease;
}

.contact-info-card:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-info-card:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-info-card:nth-child(3) {
  animation-delay: 0.3s;
}

.contact-info-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primaryllw-color, #222248);
  box-shadow: 0 20px 60px rgba(255, 50, 0, 0.3);
}

.contact-info-icon {
  width: 80px;
  height: 80px;
  background: var(--primaryllw-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  transition: transform 0.4s ease;
}

.contact-info-card:hover .contact-info-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-info-icon i.material-icons {
  font-size: 40px;
  color: #ffffff;
}

.page-contact .blockreassurance {
  display: none;
}

.contact-info-card h3 {
  font-size: 22px;
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-link {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.contact-info-link:hover {
  color: #ff6b4a;
  transform: scale(1.05);
}

.contact-info-address {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.contact-info-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-style: italic;
}

/* Google Maps */
.contact-map-wrapper {
  margin-top: 80px;
  text-align: center;
}

.contact-map-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.contact-map-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primaryllw-color, #222248);
  border-radius: 2px;
}

.contact-map-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  animation: fadeIn 0.8s ease 0.4s backwards;
}

.contact-map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(255, 50, 0, 0.3);
  border-color: var(--primaryllw-color, #222248);
}

.contact-map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: none;
}

/* ==========================================
   4. SECTION FAQ
   ========================================== */

.contact-faq-section {
  padding: 80px 40px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.faq-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header h2 {
  font-size: 38px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 15px;
}

.faq-header p {
  font-size: 16px;
  color: #6c757d;
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primaryllw-color, #222248);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item:hover .faq-question::before {
  opacity: 0.3;
}

.faq-item.active .faq-question::before {
  opacity: 1;
}

.faq-question span {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  flex: 1;
  padding-right: 20px;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question span {
  color: var(--primaryllw-color, #222248);
}

.faq-question i.material-icons {
  font-size: 28px;
  color: #95a5a6;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-question i.material-icons {
  transform: rotate(180deg);
  color: var(--primaryllw-color, #222248);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 30px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 30px 25px 30px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: #5a6c7d;
  margin: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease 0.1s;
}

.faq-item.active .faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   5. RESPONSIVE DESIGN
   ========================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .contact-main-title {
    font-size: 42px;
  }

  .contact-main-subtitle {
    font-size: 18px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-main-wrapper {
    flex-direction: column;
  }

  .contact-about-section,
  .contact-form-section {
    width: 100%;
    min-height: auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image-wrapper {
    width: 300px;
    height: 300px;
  }

  .about-image-wrapper i.material-icons {
    font-size: 140px;
  }

  .about-text h2 {
    font-size: 36px;
  }

  .contact-about-section,
  .contact-form-section,
  .contact-faq-section {
    padding: 60px 20px;
    min-height: 80vh;
  }

  .about-container,
  .contact-form-container,
  .faq-container {
    padding: 0 15px;
  }

  .contact-form {
    padding: 40px 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .contact-hero-section {
    padding: 60px 20px 30px 20px;
  }

  .contact-main-title {
    font-size: 32px;
  }

  .contact-main-subtitle {
    font-size: 16px;
  }

  .contact-info-section {
    padding: 60px 20px;
  }

  .contact-info-header h2 {
    font-size: 32px;
  }

  .contact-info-card {
    padding: 30px 20px;
  }

  .contact-map-wrapper {
    margin-top: 50px;
  }

  .contact-map-title {
    font-size: 28px;
  }

  .contact-map-container iframe {
    height: 350px;
  }

  .contact-about-section {
    padding: 40px 15px;
    min-height: auto;
  }

  .contact-about-section::before {
    width: 400px;
    height: 400px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text>p {
    font-size: 16px;
  }

  .about-feature {
    padding: 20px;
  }

  .about-feature i.material-icons {
    font-size: 28px;
  }

  .about-feature h4 {
    font-size: 16px;
  }

  .about-image-wrapper {
    width: 250px;
    height: 250px;
  }

  .about-image-wrapper i.material-icons {
    font-size: 100px;
  }

  .contact-form-section,
  .contact-faq-section {
    padding: 40px 15px;
    min-height: auto;
  }

  .about-container,
  .contact-form-container,
  .faq-container {
    padding: 0 10px;
  }

  .contact-form-header h2,
  .faq-header h2 {
    font-size: 28px;
  }

  .contact-form {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .form-control {
    padding: 12px 15px;
    font-size: 14px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 30px;
    font-size: 14px;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question span {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {

  .contact-about-section,
  .contact-form-section,
  .contact-faq-section {
    padding: 30px 10px;
  }

  .about-container,
  .contact-form-container,
  .faq-container {
    padding: 0 5px;
  }

  .about-badge {
    font-size: 11px;
    padding: 6px 16px;
  }

  .about-text h2 {
    font-size: 24px;
  }

  .about-features {
    gap: 15px;
  }

  .about-feature {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }

  .contact-form-header h2,
  .faq-header h2 {
    font-size: 24px;
  }

  .contact-form {
    padding: 25px 15px;
  }

  .form-group label {
    font-size: 13px;
  }

  .btn-submit {
    padding: 14px 25px;
    font-size: 13px;
  }
}

.page-contact .breadcrumb {
  display: none;
}

/* ==========================================
   6. ANIMATIONS
   ========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.contact-form,
.faq-item {
  animation: fadeIn 0.6s ease;
}

.faq-item:nth-child(1) {
  animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
  animation-delay: 0.15s;
}

.faq-item:nth-child(3) {
  animation-delay: 0.2s;
}

.faq-item:nth-child(4) {
  animation-delay: 0.25s;
}

.faq-item:nth-child(5) {
  animation-delay: 0.3s;
}

.faq-item:nth-child(6) {
  animation-delay: 0.35s;
}


.contact-info-section {
  display: none;
}

.contact-faq-section {
  display: none;
}

.page-contact #home-newsletter{
  display: none;
}


.page-contact #footer{
  padding-top: 0;
}


.page-contact #main .page-content, #main .page-footer, #main .page-header{
  margin-bottom: 0;
}