/* =========================================================
   PAGE ACCUEIL - 123 Services à Domicile
   Fichier : /CSS/index-style.css
   ========================================================= */

/* ---------------------------------------------------------
   Grilles / liens département existants
   --------------------------------------------------------- */

.dept-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap:10px;
  margin-top:12px;
}

.dept-chip{
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:10px;
  text-decoration:none;
  background:#fff;
}

.dept-chip:hover{
  border-color: rgba(0,0,0,0.16);
}

.dept-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.dept-link{
  padding:6px 10px;
  border-radius:10px;
  background:#fff;
  border:1px solid #eee;
  text-decoration:none;
}

/* ---------------------------------------------------------
   Tags départements
   --------------------------------------------------------- */

.dept-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.dept-tag {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: stretch;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.dept-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.dept-code {
  background: #61ce70;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-name {
  background: #ffffff;
  color: #1b1b1b;
  font-size: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .dept-tag {
    grid-template-columns: 60px 1fr;
  }
}

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------
   Bouton fiche
   --------------------------------------------------------- */

.btn-compte.btn-fiche{
  background: #61ce70;
  border: 1px solid #61ce70;
  color: #fff !important;
}

.btn-compte.btn-fiche:hover{
  filter: brightness(0.95);
}

/* ---------------------------------------------------------
   Bulle département
   --------------------------------------------------------- */

.dept-badge{
  display: inline-block;
  margin-top: 8px;
}

.dept-badge a{
  display: inline-block;
  padding: 6px 10px;
  background: #d1cece;
  color: #1b1b1b;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 5px 5px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  font-weight: 700;
}

.dept-badge a:hover{
  box-shadow: 0 6px 8px rgba(0,0,0,0.22);
}

/* =========================================================
   HERO ACCUEIL
   ========================================================= */

.hero-home {
  position: relative;
  max-width: 1140px;
  min-height: 350px;
  margin: 24px auto 22px auto;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 45, 58, 0.12), rgba(15, 120, 150, 0.08)),
    url("/IMG/hero-1140x350.jpg") center / cover no-repeat;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.hero-home .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;      /* important : empile les 2 textes */
  align-items: center;         /* centre horizontalement */
  justify-content: flex-end;   /* en bas */
  gap: 10px;
  padding: 0 20px 20px 20px;
}

/* Chaque ligne de texte du hero */
.hero-home .hero-seo {
  min-height: auto !important; /* annule le min-height hérité */
  margin: 0;
  width: auto;
  max-width: min(94%, 980px);
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.56);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  backdrop-filter: blur(3px);
}

.hero-home .hero-seo strong {
  color: #ffffff;
  font-weight: 800;
}

.hero-home .hero-seo br {
  display: none;
}

/* ---------------------------------------------------------
   Bloc recherche accueil
   --------------------------------------------------------- */

.hero-home ~ .section-recherche {
  max-width: 1140px;
  margin: 0 auto 22px auto;
}

.hero-home ~ .section-recherche > .card {
  margin-bottom: 18px !important;
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8fa 100%);
  border: 1px solid rgba(16, 75, 95, 0.10);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.hero-home ~ .section-recherche > .card h2 {
  margin: 0 0 10px 0 !important;
  color: #12343f;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.hero-home ~ .section-recherche > .card p {
  color: #3f4f55;
  line-height: 1.55;
}

.hero-home ~ .section-recherche > .card .btn-compte {
  margin-top: 4px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #7d0909;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(125, 9, 9, 0.24);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-home ~ .section-recherche > .card .btn-compte:hover {
  background: #a40c0c;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(125, 9, 9, 0.30);
}

/* ---------------------------------------------------------
   Formulaire choix département accueil
   --------------------------------------------------------- */

.hero-home ~ .section-recherche form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(16, 75, 95, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.hero-home ~ .section-recherche .form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-home ~ .section-recherche label {
  margin-bottom: 7px;
  color: #12343f;
  font-weight: 800;
  font-size: 0.95rem;
}

.hero-home ~ .section-recherche select,
.hero-home ~ .section-recherche input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 75, 95, 0.22);
  border-radius: 14px;
  background: #f8fbfc;
  color: #12343f;
  font-size: 0.97rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-home ~ .section-recherche select:focus,
.hero-home ~ .section-recherche input[type="text"]:focus {
  background: #ffffff;
  border-color: #7d0909;
  box-shadow: 0 0 0 4px rgba(125, 9, 9, 0.14);
}

.hero-home ~ .section-recherche .form-submit {
  align-self: end;
}

.hero-home ~ .section-recherche button,
.hero-home ~ .section-recherche .form-submit button {
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: #7d0909;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(125, 9, 9, 0.24);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-home ~ .section-recherche button:hover,
.hero-home ~ .section-recherche .form-submit button:hover {
  background: #a40c0c;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(125, 9, 9, 0.30);
}

/* ---------------------------------------------------------
   Cartes texte accueil
   --------------------------------------------------------- */

.hero-home ~ .card {
  max-width: 1140px;
  margin: 18px auto 0 auto !important;
  padding: 26px 28px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(16, 75, 95, 0.10);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.hero-home ~ .card h2 {
  margin-top: 0 !important;
  color: #12343f;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
}

.hero-home ~ .card p {
  color: #3f4f55;
  line-height: 1.62;
}

.hero-home ~ .card strong {
  color: #12343f;
}

.hero-home ~ .card .section-enseignes {
  margin-top: 18px;
}

.hero-home ~ .card .section-enseignes .carte-enseigne {
  background: #ffffff;
}

.hero-home ~ .card .dept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.hero-home ~ .card .dept-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f8fa;
  color: #0f5f78;
  border: 1px solid rgba(15, 120, 150, 0.14);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-home ~ .card .dept-tags a:hover {
  background: #0f7896;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 120, 150, 0.22);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-home {
    margin: 18px 14px 18px 14px;
    border-radius: 22px;
  }

  .hero-home .hero-overlay {
    padding: 0 14px 16px 14px;
    gap: 8px;
  }

  .hero-home .hero-seo {
    max-width: 96%;
    padding: 9px 14px;
    font-size: 0.94rem;
  }

  .hero-home ~ .section-recherche,
  .hero-home ~ .card {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .hero-home ~ .section-recherche form {
    grid-template-columns: 1fr;
  }

  .hero-home ~ .section-recherche .form-submit button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .hero-home {
    min-height: auto;
    margin: 14px 12px 16px 12px;
    border-radius: 18px;
  }

  .hero-home .hero-overlay {
    padding: 0 10px 10px 10px;
    gap: 7px;
  }

  .hero-home .hero-seo {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .hero-home ~ .section-recherche {
    margin: 0 12px 16px 12px;
  }

  .hero-home ~ .section-recherche > .card,
  .hero-home ~ .section-recherche form,
  .hero-home ~ .card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .hero-home ~ .card {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  .hero-home ~ .card .dept-tags {
    gap: 7px;
  }

  .hero-home ~ .card .dept-tags a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.84rem;
  }
}