.contact-hero {
  display: flex;
  height: 230px;
  background-color: var(--third-color);
}

/* 2. Le bloc texte à gauche (prend 50%) */
.contact-hero-content {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.contact-hero-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-hero-separator {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 15px 0 25px 0;
  flex-shrink: 0;
}

.contact-description p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #444;
}

/* 3. L'image à droite (prend 50%) */
.contact-hero-image {
  width: 50%;
  height: 100%;
}

.contact-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;

  /* On change 'to right' par 'to left' pour inverser le sens du fondu */
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.contact-options-section {
  padding: 2rem 1rem;
  background-color: var(--secondary-color); /*  #faf8f3 */
}

/* Le conteneur en grille */
.contact-options-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
  gap: 25px; /* Le petit gap demandé */
}

/* Style global de la boîte de contact */
.contact-box {
  background-color: var(--third-color);
  padding: 3rem 2.5rem;
  border-radius: 6px;
}

.contact-box h3 {
  text-transform: uppercase;
  font-family: "montserrat", sans-serif;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Organisation des champs du formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* Espace harmonieux entre chaque champ */
}

/* Groupes de champs (Label + Input) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: #444;
  font-weight: 500;
}

/* Style commun pour les inputs, select et textarea */
.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid #d6cfc7; /* Une bordure très discrète couleur lin/beige foncé */
  border-radius: 6px;
  background-color: #ffffff;
  color: #333333;
  transition: border-color 0.3s ease;
}

/* Effet au clic / focus sur les champs */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(
    --secondary-color
  ); /* Utilise ta couleur secondaire au focus */
}

.contact-form button[type="submit"] {
  border: none; /* Supprime la bordure grise par défaut du navigateur */
  outline: none; /* Supprime le contour bleu au clic */
  cursor: pointer; /* Transforme le curseur en petite main */
  appearance: none; /* Supprime les styles natifs du système d'exploitation */
  -webkit-appearance: none;
}
/* Style de la checkbox */
.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-group-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--secondary-color); /* Colore la checkbox si supportée */
}

.form-group-checkbox label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: #555555;
  line-height: 1.4;
  cursor: pointer;
}

/* Adaptation du bouton "Envoyer" pour qu'il s'intègre bien dans le formulaire */
.contact-form .btn-primary {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
}

/* Style global de la boîte support */
.support-box {
  background-color: var(--third-color);
  padding: 3rem 2.5rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Espace entre le grand titre et la liste */
}

/* Titre principal h3 */
.support-box .support-title {
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
  font-family: "montserrat", sans-serif;
  margin-bottom: 1.25rem;
}

/* Conteneur de la liste verticale */
.support-list {
  display: flex;
  flex-direction: column;
}

/* Style de chaque sous-partie (Flexbox pour icône à gauche / texte à droite) */
.support-item {
  display: flex;
  align-items: center; /* Centre verticalement l'icône par rapport au texte */
  gap: 1.25rem; /* Espace entre l'icône et le texte */
  padding: 1.25rem 0; /* Espace haut et bas pour laisser respirer */
  border-bottom: 1px solid #d6cfc7; /* Le trait horizontal de séparation */
}

/* On enlève la bordure sur le tout dernier élément pour faire propre */
.support-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.support-item:first-child {
  padding-top: 0;
}

/* Forcer la taille de l'icône SVG à 50px */
.support-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0; /* Empêche l'icône de se déformer */
}

/* Style du bloc titre + sous-titre de droite */
.support-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.support-text p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: #555555;
  line-height: 1.4;
}

/* Style global de la boîte rdv */
.rdv-box {
  background-color: var(--third-color);
  padding: 2rem 2.5rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Espace harmonieux entre les grandes sections empilées */
}

/* Partie 1 : Titre */
.rdv-title {
  font-family: "montserrat", sans-serif;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Partie 2 : Texte d'introduction */
.rdv-description {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.5;
}

.rdv-action .btn--secondary {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 20px;
  text-align: center;
  width: 100%; /* S'étale joliment dans la boîte */
}

/* Séparation visuelle subtile avant les 3 éléments d'icônes */
.rdv-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid #d6cfc7;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

/* Parties 4, 5 et 6 : Agencement (icône à gauche / texte à droite) */
.rdv-feature-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1rem;
}

/* Forcer la taille de l'icône à 50px */
.rdv-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

/* Texte interne de chaque élément (titre + sous-titre) */
.rdv-feature-text h4 {
  font-family: "montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.rdv-feature-text p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: #555555;
  line-height: 1.3;
}

.contact-social-section {
  background-color: var(
    --secondary-color
  ); /* Le fond global de la section devient bleu */
  padding-bottom: 2rem;
  margin-top: -1px;
}

/* Le conteneur se transforme en rectangle beige au centre */
/* Le conteneur se transforme en rectangle beige plus compact */
.contact-social-section .container {
  background-color: var(--third-color);
  padding: 1.5rem 1.5rem; /* 👈 On réduit l'espace en haut/bas et sur les côtés */
  max-width: 1160px; /* 👈 Ajuste cette valeur si tu veux qu'il soit plus étroit (ex: 950px ou 1000px) */

  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.contact-social-item {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 0 1.5rem;
  position: relative;
}

/* Séparateur vertical entre les blocs (sauf le dernier) */
.contact-social-item:not(:last-child):after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Centre parfaitement la barre verticalement */
  right: 0;
  height: 60px; /* Hauteur fixe pour une taille homogène */
  width: 2px;
  background-color: var(--primary-color);
  opacity: 0.6;
}

/* Taille uniforme pour tous tes fichiers SVG */
.contact-social-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-social-item:hover .contact-social-icon {
  transform: scale(1.08); /* Petit effet de zoom au survol */
}

/* Le texte sur deux lignes */
.contact-social-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

/* Style du premier mot (titre) */
.contact-social-word-1,
.feature-word-1 {
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary-color);
}

/* Style du deuxième mot (valeur/lien) */
.contact-social-word-2,
.feature-word-2 {
  font-size: 0.75rem;
  font-family: "Montserrat", sans-serif;
  color: #444;
}

/* ========================================== */
/* RESPONSIVE TABLETTE (iPad Mini)            */
/* ========================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  /* 1. Hero passe en colonne */
  .contact-hero {
    flex-direction: column;
    height: auto;
  }

  .contact-hero-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    align-items: center;
  }

  .contact-hero-separator {
    margin: 15px auto 25px auto;
  }

  .contact-hero-image {
    width: 100%;
    height: 350px;
  }

  .contact-hero-image img {
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 40%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 40%
    );
  }

  /* 2. Options de contact : passe sur 2 colonnes (la 3ème s'étale en dessous) */
  .contact-options-section .container {
    grid-template-columns: 1fr;
    max-width: 650px; /* Contrôle la largeur idéale pour que les boîtes respirent */
    margin: 0 auto;
    gap: 25px;
  }

  /* Annule le "span 2" puisqu'on est passé sur une seule colonne */
  .contact-options-section .container .rdv-box {
    grid-column: auto;
    max-width: none;
    margin: 0;
    width: 100%;
  }

  /* 3. Section réseaux sociaux en grille 2x2 sur tablette */
  .contact-social-section .container {
    max-width: 900px;
    padding: 2rem;
  }

  .contact-social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Supprime les séparateurs verticaux superflus sur tablette */
  .contact-social-item:not(:last-child):after {
    display: none;
  }
}

/* ========================================== */
/* RESPONSIVE MOBILE (< 768px)                */
/* ========================================== */

@media (max-width: 768px) {
  /* 1. Hero Mobile */
  .contact-hero {
    flex-direction: column;
    height: auto;
  }

  .contact-hero-content {
    width: 100%;
    padding: 2.5rem 1rem;
    text-align: center;
    align-items: center;
  }

  .contact-hero-separator {
    margin: 15px auto 25px auto;
  }

  .contact-hero-image {
    width: 100%;
    height: 200px;
  }

  .contact-hero-image img {
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 40%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 40%
    );
  }

  /* 2. Options de contact : correction pour petits mobiles */
  .contact-options-section {
    padding: 1.5rem 1rem; /* Réduit les marges extérieures pour laisser de la place */
  }

  .contact-options-section .container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
  }

  /* Allège les paddings internes des boîtes pour éviter qu'elles n'explosent l'écran */
  .contact-box,
  .support-box,
  .rdv-box {
    padding: 1.5rem 1rem;
  }

  /* Sécurité pour que les inputs et textareas ne dépassent jamais */
  .contact-form input[type="text"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
  }

  /* 3. Section réseaux sociaux en colonne unique sur mobile */
  .contact-social-section {
    padding: 0 0.5rem 2rem 0.5rem;
  }

  .contact-social-section .container {
    padding: 1.5rem 1rem;
  }

  .contact-social-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-social-item {
    justify-content: flex-start;
    padding: 0.5rem 0;
  }

  .contact-social-item:not(:last-child):after {
    display: none;
  }
}
