/* ===== EliteCleanCo — Interior Pages Design System ===== */

/* 1. HERO */
.ec-inner-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d0d0d;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 3rem 1.5rem !important;
}
.ec-inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.58) 100%);
  z-index: 0;
}
.ec-inner-hero > .wp-block-spacer,
.ec-inner-hero > .wp-block-post-featured-image { display: none !important; }
.ec-inner-hero h1.wp-block-post-title {
  position: relative; z-index: 1;
  color: #fff !important;
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  line-height: 1.2; text-align: center;
  max-width: 820px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
  padding: 0; margin: 0 auto;
}
.ec-inner-hero h1.wp-block-post-title::after {
  content: ""; display: block;
  width: 52px; height: 3px;
  background: #14E795;
  margin: 0.85rem auto 0; border-radius: 2px;
}
body:not(.home) .entry-content.wp-block-post-content { padding-top: 2.5rem; }
body:not(.home) .entry-content h2.wp-block-heading:not(.has-text-align-center) {
  position: relative; padding-left: 1.1rem;
}
body:not(.home) .entry-content h2.wp-block-heading:not(.has-text-align-center)::before {
  content: ""; position: absolute;
  left: 0; top: 0.1em; bottom: 0.1em;
  width: 4px; background: #14E795; border-radius: 2px;
}
body:not(.home) .entry-content h3.wp-block-heading { color: #111; font-weight: 700; margin-top: 1.5rem; }
body:not(.home) .entry-content > .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link {
  background-color: #14E795 !important; color: #0d0d0d !important; border-color: #14E795 !important;
}
body:not(.home) .entry-content .wp-block-group.has-base-2-background-color {
  background-color: #0d0d0d !important; margin-top: 3rem; padding: 3rem 2rem !important;
}
body:not(.home) .entry-content .wp-block-group.has-base-2-background-color h2.wp-block-heading {
  color: #fff !important; padding-left: 0;
}
body:not(.home) .entry-content .wp-block-group.has-base-2-background-color h2.wp-block-heading::before { display: none; }
body:not(.home) .entry-content .wp-block-group.has-base-2-background-color p { color: rgba(255,255,255,0.82); }
body:not(.home) .entry-content .wp-block-group.has-base-2-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: #14E795 !important; color: #0d0d0d !important; border: 2px solid #14E795 !important;
}
body:not(.home) .entry-content .wp-block-group.has-base-2-background-color .wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important; color: #fff !important; border: 2px solid #fff !important;
}
.ec-hero-img-used { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .ec-fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .ec-fade-in.ec-visible { opacity: 1; transform: translateY(0); }
}
.entry-content .wp-block-html video { display: block; }
body:not(.home) .entry-content p > a:not(.wp-block-button__link) { color: #0ea868; text-decoration: underline; }

/* ===== CARROUSEL ===== */
.ec-carousel-wrap {
  position: relative; width: 100%; height: 480px;
  overflow: hidden; border-radius: 6px; margin: 2rem 0;
}
@media (max-width: 600px) { .ec-carousel-wrap { height: 280px; } }
.ec-carousel-wrap .ec-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.45s ease; pointer-events: none;
}
.ec-carousel-wrap .ec-slide.ec-active { opacity: 1; pointer-events: auto; }
.ec-carousel-wrap .ec-slide figure { margin: 0; height: 100%; }
.ec-carousel-wrap .ec-slide figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(0,0,0,0.55);
  border: 2px solid #14E795; color: #14E795;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; padding: 0;
}
.ec-carousel-btn:hover { background: rgba(20,231,149,0.2); }
.ec-carousel-prev { left: 0.75rem; }
.ec-carousel-next { right: 0.75rem; }
.ec-carousel-dots {
  position: absolute; bottom: 0.75rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px; z-index: 10;
}
.ec-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: none;
  cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s;
}
.ec-carousel-dot.ec-active { background: #14E795; transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) {
  .ec-carousel-wrap { height: auto; overflow: visible; }
  .ec-carousel-wrap .ec-slide { position: relative; opacity: 1; height: auto; pointer-events: auto; margin-bottom: 1rem; }
  .ec-carousel-wrap .ec-slide figure img { height: 360px; object-fit: cover; }
  .ec-carousel-btn, .ec-carousel-dots { display: none; }
}

/* ==============================================
   Contact Form 7 — Design EliteCleanCo
   ============================================== */

/* Wrapper max-width centré */
.wpcf7 {
  max-width: 720px;
  margin: 0 auto;
}

/* Labels */
.wpcf7 form label {
  display: block;
  font-weight: 500;
  color: #1A1A1A;
  font-size: 0.9rem;
  margin-bottom: 18px;
  width: 100%;
}

/* Texte du label — espace avant le champ */
.wpcf7 form label br { display: none; }

/* Wrapper du champ */
.wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

/* Champs text / email / tel / textarea / select */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 16px;
  background: #F8F8F8;
  border: 1.5px solid #DDDDDD;
  border-radius: 5px;
  font-size: 0.95rem;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

/* Placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: #999; }

/* Focus */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #14E795;
  box-shadow: 0 0 0 2px rgba(20, 231, 149, 0.2);
  background: #FFFFFF;
}

/* Textarea */
.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

/* Select — flèche personnalisée */
.wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Champ invalide */
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid {
  border-color: #E53E3E !important;
  box-shadow: 0 0 0 2px rgba(229,62,62,0.15) !important;
}

/* Message d'erreur champ */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 0.78rem;
  color: #E53E3E;
  margin-top: 4px;
}

/* Bouton d'envoi */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 14px 32px;
  background-color: #14E795;
  color: #0D0D0D;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s ease, opacity 0.2s ease;
  margin-top: 4px;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover { filter: brightness(0.9); }

.wpcf7 input[type="submit"]:disabled,
.wpcf7 .wpcf7-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Messages de réponse CF7 */
.wpcf7-response-output {
  padding: 14px 18px !important;
  border-radius: 5px !important;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 16px !important;
  border-width: 1.5px !important;
  border-style: solid !important;
}

.wpcf7-mail-sent-ok {
  background-color: #E8FFF5 !important;
  border-color: #14E795 !important;
  color: #0a7a4a !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked {
  background-color: #FFF0F0 !important;
  border-color: #E53E3E !important;
  color: #C53030 !important;
}

.wpcf7-validation-errors {
  background-color: #FFFBEB !important;
  border-color: #D97706 !important;
  color: #92400E !important;
}

/* Honeypot WP Armour — cacher */
.wpcf7 label.screen-reader-text { display: none !important; }

/* ---- Mise en page 2 colonnes (desktop) ---- */
/* CF7 wraps fields in <p> tags — grid targets <p> children */
@media (min-width: 768px) {
  .wpcf7 form.wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  /* Reset <p> wrapper margins dans la grille */
  .wpcf7 form.wpcf7-form > p {
    margin: 0 0 18px 0;
  }

  /* Pleine largeur : fieldset caché, Message+Submit (p child 6+), divs, spans */
  .wpcf7 form.wpcf7-form > fieldset,
  .wpcf7 form.wpcf7-form > p:nth-child(n+6),
  .wpcf7 form.wpcf7-form > div,
  .wpcf7 form.wpcf7-form > span {
    grid-column: 1 / -1;
  }
}
/* ==============================================
   Header sticky
   ============================================== */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0D0D0D;
}

.has-base-2-background-color h3 { color: #14E795 !important; }

/* ==============================================
   Contact cards — Nos coordonnées
   ============================================== */
.ec-contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 40px;
}
.ec-contact-card {
  background: #1A1A1A;
  border-radius: 10px;
  border: 1px solid #2A2A2A;
  padding: 24px 20px;
  transition: border-color 0.2s ease;
}
.ec-contact-card:hover {
  border-color: #14E795;
}
.ec-contact-card .ec-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #14E795;
  display: block;
}
.ec-contact-card .ec-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.ec-contact-card .ec-card-value {
  font-size: 0.93rem;
  color: #e0e0e0;
  line-height: 1.6;
}
.ec-contact-card .ec-card-value a {
  color: #e0e0e0;
  text-decoration: none;
  border-bottom: 1px solid rgba(20,231,149,0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ec-contact-card .ec-card-value a:hover {
  color: #14E795;
  border-color: #14E795;
}
.ec-contact-card.ec-card-social .ec-card-value {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ec-contact-card.ec-card-social .ec-card-value a {
  border-bottom: none;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(20,231,149,0.08);
  font-size: 0.82rem;
  color: #14E795;
  font-weight: 500;
}
.ec-contact-card.ec-card-social .ec-card-value a:hover {
  background: rgba(20,231,149,0.18);
  color: #14E795;
}
@media (max-width: 640px) {
  .ec-contact-cards { grid-template-columns: 1fr; }
}


/* ============================================================
   SERVICES GRID CARDS — v1.0
   ============================================================ */

.ec-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.ec-service-card {
  position: relative;
  display: block;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ec-service-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  transition: background 0.3s ease;
  z-index: 1;
}

.ec-service-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.ec-service-name {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.ec-service-bar {
  display: block;
  width: 36px;
  height: 3px;
  background-color: #14E795;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Hover */
.ec-service-card:hover {
  transform: translateY(-4px);
  border-color: #14E795;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.ec-service-card:hover .ec-service-overlay {
  background: rgba(0,0,0,0.35);
}

.ec-service-card:hover .ec-service-bar {
  width: 56px;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .ec-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ec-service-card {
    height: 180px;
  }
}

/* Mobile: 1 column */
@media (max-width: 480px) {
  .ec-services-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px 40px;
    gap: 14px;
  }
  .ec-service-card {
    height: 180px;
  }
}

@media(max-width:768px){.ec-megamenu-icon{display:none!important}}

/* ===== CORRECTIONS MOBILES EliteCleanCo ===== */
@media (max-width: 768px) {
  /* P4 — Logo réduit */
  .wp-block-site-logo img {
    max-height: 48px !important;
    width: auto !important;
  }
  /* P2 — Header fond solide #0D0D0D + padding vertical 10px */
  .wp-block-navigation.is-responsive {
    background-color: #0D0D0D !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  /* P2 — Icône hamburger blanc */
  .wp-block-navigation__responsive-container-open button,
  .wp-block-navigation__responsive-container-open svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
  }
  /* P3 — Overlay menu fond sombre */
  .wp-block-navigation__responsive-container.is-menu-open {
    background-color: #0D0D0D !important;
    color: #FFFFFF !important;
  }
  /* P3 — Texte items menu blanc */
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
    color: #FFFFFF !important;
  }
  /* P3 — Bouton fermeture menu visible */
  .wp-block-navigation__responsive-container-close button,
  .wp-block-navigation__responsive-container-close svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
  }
}