/* ==========================================================
   Climanet — Site Web prêt pour hébergement
   Version actuelle
   Sections verrouillées : menu, section 2, section 3
   Section 4 avec logo ajouté
   Section 5 footer
   ========================================================== */

/* Section 1 — Menu approuvé */
:root {
      --bleu-fonce: #061a33;
      --bleu-menu: #08294f;
      --bleu-cyan: #18b9ef;
      --blanc: #ffffff;

      /* Bornes automatiques du logo */
      --logo-min: 185px;
      --logo-fluid: 18vw;
      --logo-max: 270px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: #eef5fb;
    }

    .climanet-header {
      width: 100%;
      height: clamp(76px, 7vw, 96px);
      background: linear-gradient(90deg, var(--bleu-fonce) 0%, var(--bleu-menu) 50%, var(--bleu-fonce) 100%);
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      padding: 0 clamp(18px, 3vw, 42px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
      overflow: hidden;
    }

    .climanet-logo {
      justify-self: start;
      display: flex;
      align-items: center;
      text-decoration: none;
      min-width: 0;
    }

    .climanet-logo img {
      display: block;
      width: clamp(var(--logo-min), var(--logo-fluid), var(--logo-max));
      max-height: 70%;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
    }

    .climanet-nav {
      justify-self: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(22px, 3vw, 38px);
      height: 100%;
      white-space: nowrap;
    }

    .climanet-nav a {
      display: flex;
      align-items: center;
      height: 100%;
      color: var(--blanc);
      text-decoration: none;
      font-size: clamp(15px, 1.15vw, 17px);
      font-weight: 700;
      border-bottom: 3px solid transparent;
      transition: color .18s ease, border-bottom-color .18s ease;
    }

    .climanet-nav a:hover {
      color: var(--bleu-cyan);
      border-bottom-color: var(--bleu-cyan);
    }

    .climanet-call-icon {
      justify-self: end;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: clamp(50px, 4.3vw, 62px);
      height: clamp(50px, 4.3vw, 62px);
      text-decoration: none;
      border-radius: 50%;
      background: transparent;
      box-shadow: 0 0 0 2px rgba(255,255,255,0.22), 0 8px 18px rgba(0,0,0,0.24);
      transition: transform .18s ease, box-shadow .18s ease;
      overflow: hidden;
    }

    .climanet-call-icon:hover {
      transform: translateY(-1px) scale(1.03);
      box-shadow: 0 0 0 2px rgba(255,255,255,0.35), 0 10px 22px rgba(0,0,0,0.28);
    }

    .climanet-call-icon img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .preview-note {
      max-width: 980px;
      margin: 70px auto 0;
      padding: 0 24px;
      color: #061a33;
      text-align: center;
    }

    .preview-note h1 {
      margin: 0 0 12px;
      font-size: 42px;
    }

    .preview-note p {
      margin: 0;
      font-size: 18px;
      line-height: 1.5;
    }

    @media (max-width: 760px) {
      .climanet-header {
        height: auto;
        min-height: 92px;
        grid-template-columns: 1fr auto;
        grid-template-areas:
          "logo call"
          "nav nav";
        row-gap: 12px;
        padding: 14px 18px;
        overflow: visible;
      }

      .climanet-logo {
        grid-area: logo;
      }

      .climanet-nav {
        grid-area: nav;
        width: 100%;
        height: 42px;
        gap: clamp(14px, 5vw, 26px);
      }

      .climanet-call-icon {
        grid-area: call;
      }
    }

    @media (max-width: 460px) {
      :root {
        --logo-min: 155px;
        --logo-fluid: 44vw;
        --logo-max: 190px;
      }

      .climanet-nav {
        justify-content: space-between;
        gap: 8px;
      }

      .climanet-nav a {
        font-size: 14px;
      }
    }

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #061a33;
  color: #061a33;
}

/* Section 2 — Accueil approuvée */
.section-2 {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 86px);
  background-image: url("../assets/section-2-accueil-approuvee.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-2-content {
  position: relative;
  z-index: 2;
  width: min(41%, 650px);
  padding-left: clamp(44px, 5vw, 84px);
  padding-top: clamp(36px, 4vw, 62px);
  color: #ffffff;
}

.section-2 h1 {
  margin: 0 0 22px 0;
  max-width: 620px;
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.section-2 p {
  margin: 0;
  max-width: 610px;
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

/* Section 3 — Nos Services approuvée */
.section-3 {
  background:
    radial-gradient(circle at 12% 10%, rgba(24, 185, 239, 0.14), transparent 24%),
    linear-gradient(180deg, #061a33 0%, #08294f 100%);
  padding: clamp(64px, 7vw, 104px) clamp(20px, 5vw, 78px);
}

.section-3-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-3-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #7fdcff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-3-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #18b9ef;
}

.section-3 h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-3-subtitle {
  margin: 18px 0 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(19px, 1.65vw, 27px);
  line-height: 1.35;
  font-weight: 500;
}

.services-grid {
  margin-top: clamp(36px, 5vw, 58px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 30px 26px 28px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(6, 26, 51, 0.08);
  box-shadow: 0 18px 44px rgba(6, 26, 51, 0.10);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #061a33, #18b9ef);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #061a33 0%, #0e4f86 70%, #18b9ef 100%);
  color: #ffffff;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 14px;
  color: #061a33;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 800;
}

.service-card p {
  margin: 0;
  color: #39536d;
  font-size: 16px;
  line-height: 1.56;
}

/* Section 4 — Zones de services */
.section-4 {
  background:
    radial-gradient(circle at 88% 12%, rgba(24, 185, 239, 0.16), transparent 24%),
    linear-gradient(180deg, #08294f 0%, #061a33 100%);
  padding: clamp(64px, 7vw, 104px) clamp(20px, 5vw, 78px);
  color: #ffffff;
}

.section-4-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-4-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.section-4-copy {
  min-width: 0;
}

.section-4-logo {
  width: clamp(170px, 18vw, 250px);
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-4-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.section-4-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #7fdcff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-4-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #18b9ef;
}

.section-4 h2 {
  margin: 0;
  max-width: 980px;
  color: #ffffff;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-4-text {
  margin: 18px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(19px, 1.65vw, 27px);
  line-height: 1.35;
  font-weight: 500;
}

.service-map-wrap {
  margin-top: clamp(34px, 5vw, 58px);
  padding: clamp(12px, 1.5vw, 18px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.service-map-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Section 5 — Footer */
.site-footer {
  background:
    radial-gradient(circle at 12% 18%, rgba(24, 185, 239, 0.16), transparent 25%),
    linear-gradient(180deg, #061a33 0%, #03101f 100%);
  color: #ffffff;
  padding: clamp(64px, 7vw, 96px) clamp(20px, 5vw, 78px) 28px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.footer-cta h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.footer-cta p {
  margin: 20px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.42;
  font-weight: 400;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 16px 22px;
  border-radius: 999px;
  background: #18b9ef;
  color: #061a33;
  text-decoration: none;
  font-size: clamp(18px, 1.5vw, 23px);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(24, 185, 239, 0.28);
}

.footer-info {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-info h3 {
  margin: 0 0 18px;
  color: #7fdcff;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-hours {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.5;
}

.footer-map {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-map a {
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.footer-map a:hover {
  color: #7fdcff;
}

.footer-legal {
  margin-top: clamp(42px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.5;
}

.footer-legal p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 280px;
  }
}

@media (max-width: 1000px) {
  .section-2 {
    min-height: 700px;
    background-position: 62% top;
  }

  .section-2-content {
    width: min(50%, 560px);
    padding-left: 30px;
    padding-top: 30px;
  }

  .section-2 h1 {
    font-size: clamp(28px, 4.2vw, 46px);
  }

  .section-2 p {
    font-size: clamp(16px, 2vw, 21px);
  }
}

@media (max-width: 860px) {
  .section-4-head {
    grid-template-columns: 1fr;
  }

  .section-4-logo {
    width: min(220px, 58vw);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-info {
    padding: 24px;
  }

  .footer-legal {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .section-2 {
    min-height: 760px;
    background-position: 67% top;
  }

  .section-2-content {
    width: 100%;
    padding: 26px 20px 30px 20px;
  }

  .section-2 h1 {
    max-width: 430px;
    font-size: clamp(26px, 8vw, 40px);
  }

  .section-2 p {
    max-width: 420px;
    font-size: clamp(16px, 4.1vw, 20px);
  }
}

@media (max-width: 640px) {
  .section-3,
  .section-4 {
    padding: 54px 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 28px 22px 24px;
  }

  .service-map-wrap {
    border-radius: 22px;
  }

  .service-map-wrap img {
    border-radius: 16px;
  }
}

@media (max-width: 520px) {
  .footer-phone {
    width: 100%;
    justify-content: center;
  }
}
