/* ==========================================================================
   Climatisation Express — home.css
   Page-specific styling for the landing page.
   ========================================================================== */

/* ----- HERO -------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 460px at 85% -10%, var(--ember-soft) 0%, transparent 55%),
    radial-gradient(1100px 620px at 8% 0%, var(--frost-soft) 0%, transparent 60%),
    var(--paper);
  overflow: hidden;
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.hero h1 .warm {
  color: var(--ember);
}

.hero h1 .cool {
  color: var(--frost-deep);
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.12rem;
  max-width: 52ch;
}

.hero-lead+.hero-lead {
  margin-top: 14px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}

.hero-trust .ht-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.hero-trust .ht-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-trust .ht-ico.a {
  background: var(--frost-soft);
  color: var(--frost-deep);
}

.hero-trust .ht-ico.b {
  background: var(--ember-soft);
  color: var(--ember-deep);
}

.hero-trust .ht-ico.c {
  background: #E7F6EE;
  color: var(--green);
}

.hero-trust .ht-ico svg {
  width: 20px;
  height: 20px;
}

.hero-trust .ht-txt b {
  display: block;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.15;
}

.hero-trust .ht-txt small {
  font-size: .8rem;
  color: var(--muted);
}

/* Hero illustration */
.hero-art {
  position: relative;
  height: stretch;
}

.hero-art img {
  height: stretch;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hero-badge {
  position: absolute;
  bottom: 18px;
  left: -10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge .hb-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(var(--frost) 0 50%, var(--ember) 50% 100%);
  display: grid;
  place-items: center;
}

.hero-badge .hb-ring span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink);
  font-size: .9rem;
}

.hero-badge .hb-txt b {
  display: block;
  font-size: .92rem;
  color: var(--ink);
}

.hero-badge .hb-txt small {
  font-size: .76rem;
  color: var(--muted);
}

/* ----- LOGO STRIP / GUARANTEES ------------------------------------------- */
.assure {
  background: var(--ink);
  color: #fff;
}

.assure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 30px 0;
}

.assure-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.assure-item svg {
  width: 30px;
  height: 30px;
  color: var(--frost);
  flex-shrink: 0;
}

.assure-item b {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.assure-item small {
  color: #9fb8cd;
  font-size: .82rem;
}

/* ----- SERVICE CARDS (overview) ------------------------------------------ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--frost), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.svc-card:hover::after {
  transform: scaleX(1);
}

.svc-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--frost-soft);
  color: var(--frost-deep);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.svc-ico svg {
  width: 28px;
  height: 28px;
}

.svc-card.warm .svc-ico {
  background: var(--ember-soft);
  color: var(--ember-deep);
}

.svc-card h3 {
  font-size: 1.16rem;
  margin-bottom: 9px;
}

.svc-card p {
  font-size: .94rem;
}

.svc-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--frost-deep);
}

.svc-card a svg {
  width: 15px;
  height: 15px;
  transition: transform .25s;
}

.svc-card a:hover svg {
  transform: translateX(4px);
}

/* ----- ALTERNATING DETAIL SECTIONS --------------------------------------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.detail.flip .detail-media {
  order: 2;
}

.detail-media {
  background: linear-gradient(160deg, var(--frost-soft), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  position: relative;
  overflow: hidden;
  height: stretch;
}

.detail.warm .detail-media {
  background: linear-gradient(160deg, var(--ember-soft), #fff);
}

.detail-media img {
  width: 100%;
  height: stretch;
  object-fit: cover;
}

.detail-body h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.25rem);
  margin-bottom: 16px;
}

.detail-body>p {
  font-size: 1.03rem;
}

/* Feature list */
.feat-list {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: .98rem;
}

.feat-list .tick {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--frost-soft);
  color: var(--frost-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-list .tick svg {
  width: 15px;
  height: 15px;
}

.detail.warm .feat-list .tick {
  background: var(--ember-soft);
  color: var(--ember-deep);
}

/* Problem grid (dépannage) */
.prob-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.prob-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .95rem;
}

.prob-grid .alert {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ember-soft);
  color: var(--ember-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.prob-grid .alert svg {
  width: 17px;
  height: 17px;
}

.detail-note {
  background: #fff;
  border-left: 4px solid var(--frost);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: .97rem;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}

.detail.warm .detail-note {
  border-left-color: var(--ember);
}

/* ----- ZONES ------------------------------------------------------------- */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.zone-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px;
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}

.zone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.zone-card .pin {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--frost), var(--frost-deep));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.zone-card .pin svg {
  width: 19px;
  height: 19px;
}

.zones-foot {
  margin-top: 30px;
  font-size: 1.03rem;
  max-width: 80ch;
}

/* ----- WHY US ------------------------------------------------------------ */
.why {
  background: linear-gradient(180deg, var(--mist), #fff);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}

.why-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
}

.why-num svg {
  width: 22px;
  height: 22px;
}

.why-card p {
  font-size: .95rem;
}

.why-cta {
  margin-top: 42px;
  text-align: center;
}

.why-cta p {
  font-size: 1.08rem;
  max-width: 60ch;
  margin: 0 auto 22px;
}

/* ----- REVIEWS ----------------------------------------------------------- */
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.g-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}

.g-rating .g-logo {
  width: 30px;
  height: 30px;
}

.g-rating .g-score {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.g-rating .g-stars {
  display: flex;
  gap: 2px;
}

.g-rating .g-stars svg {
  width: 17px;
  height: 17px;
  color: #FBBC05;
}

.g-rating .g-meta {
  font-size: .82rem;
  color: var(--muted);
}

.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.rev-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.rev-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.rev-stars svg {
  width: 16px;
  height: 16px;
  color: #FBBC05;
}

.rev-text {
  font-size: .96rem;
  color: var(--ink-soft);
  flex-grow: 1;
}

.rev-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rev-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.rev-author .ra-name {
  font-weight: 600;
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.2;
}

.rev-author .ra-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
}

.rev-author .ra-meta svg {
  width: 13px;
  height: 13px;
}

/* ----- CONTACT / CONVERSION ---------------------------------------------- */
.contact {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 155, 215, .28), transparent 70%);
  top: -240px;
  left: -180px;
}

.contact::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 61, .22), transparent 70%);
  bottom: -260px;
  right: -160px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.contact-info>p {
  color: #b9cee0;
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 44ch;
}

.contact-list {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #e7f1f9;
}

.contact-list .ci {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  color: var(--frost);
  flex-shrink: 0;
}

.contact-list .ci svg {
  width: 22px;
  height: 22px;
}

.contact-list small {
  display: block;
  color: #8fa9bf;
  font-size: .78rem;
}

.contact-list b {
  font-size: 1.12rem;
  color: #fff;
  font-weight: 700;
}

/* Form card */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.form-card h3 {
  font-size: 1.32rem;
  margin-bottom: 6px;
}

.form-card .fc-sub {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.f-field {
  margin-bottom: 14px;
}

.f-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.f-field input,
.f-field select,
.f-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
  outline: none;
  border-color: var(--frost);
  background: #fff;
  box-shadow: 0 0 0 4px var(--frost-soft);
}

.f-field textarea {
  resize: vertical;
  min-height: 96px;
}

.form-card .btn {
  margin-top: 6px;
}

.form-card .fc-legal {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

#result {
  font-size: .9rem;
  margin-top: 12px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 26px 10px;
}

.form-success.show {
  display: block;
}

.form-success .fs-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E7F6EE;
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.form-success .fs-ico svg {
  width: 32px;
  height: 32px;
}

.form-success h3 {
  color: var(--green);
}

.form-success p {
  margin-top: 8px;
  font-size: .95rem;
}

/* ----- RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1040px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-art {
    max-width: 460px;
    margin-inline: auto;
    order: -1;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail.flip .detail-media {
    order: 0;
  }

  .assure-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

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

@media (max-width: 640px) {

  .svc-grid,
  .why-grid,
  .zones-grid,
  .prob-grid,
  .rev-grid {
    grid-template-columns: 1fr;
  }

  .f-row {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    gap: 16px;
  }

  .assure {
    display: none;
  }

  .reviews-head {
    gap: 14px;
  }

  .detail-media {
    padding: 26px;
  }

  .form-card {
    padding: 26px 22px;
  }

  .hero {
    padding: 40px 0 0px;
  }

  /* keep things centered on mobile */
  .section-head {
    text-align: center;
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust,
  .why-cta {
    justify-content: center;
  }

  .reviews-head {
    justify-content: center;
  }
}