/* ==========================================================
   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: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 28px);
  width: 100%;
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: none;
  background: linear-gradient(90deg, #0e7ad1 0%, #18b9ef 50%, #0b5aa7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-3-kicker::before,
.section-3-kicker::after {
  content: "";
  flex: 0 1 clamp(42px, 6vw, 110px);
  height: clamp(4px, 0.5vw, 6px);
  border-radius: 999px;
  background: linear-gradient(90deg, #0c66b8 0%, #18b9ef 100%);
  box-shadow: 0 0 12px rgba(24, 185, 239, 0.28);
}

.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-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 28px);
  width: 100%;
  margin: 0 0 clamp(28px, 3vw, 42px);
  text-align: center;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: none;
  background: linear-gradient(90deg, #0e7ad1 0%, #18b9ef 50%, #0b5aa7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-4-kicker::before,
.section-4-kicker::after {
  content: "";
  flex: 0 1 clamp(42px, 6vw, 110px);
  height: clamp(4px, 0.5vw, 6px);
  border-radius: 999px;
  background: linear-gradient(90deg, #0c66b8 0%, #18b9ef 100%);
  box-shadow: 0 0 12px rgba(24, 185, 239, 0.28);
}

.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 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;
}

.section-4-logo {
  justify-self: end;
  width: clamp(170px, 18vw, 250px);
  padding: 8px;
  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;
  clip-path: polygon(50% 1%, 98% 38%, 98% 100%, 2% 100%, 2% 38%);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.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;
}

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

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

/* 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;
  }
}


/* ==========================================================
   MODIFICATION AUTORISÉE — MENU SEULEMENT
   - Logo, boutons et téléphone adaptatifs selon la largeur
   - Aucun débordement hors écran
   - Menu toujours visible au scroll
   ========================================================== */

.climanet-header {
  position: sticky;
  top: 0;
  z-index: 9999;

  width: 100%;
  height: clamp(76px, 6.4vw, 106px);
  min-height: unset;

  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);

  padding: 0 clamp(12px, 2.6vw, 42px);
  background: linear-gradient(90deg, #061a33 0%, #08294f 50%, #061a33 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.climanet-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  text-decoration: none;
  z-index: 2;
}

.climanet-logo img {
  display: block;
  width: clamp(205px, 21vw, 380px);
  max-width: 100%;
  max-height: 72%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.climanet-nav {
  position: static;
  transform: none;
  justify-self: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 34px);

  min-width: 0;
  max-width: 100%;
  height: auto;
  white-space: nowrap;
  z-index: 3;
}

.climanet-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: clamp(34px, 3.1vw, 50px);
  padding: 0 clamp(10px, 1.55vw, 26px);

  border: 2px solid rgba(255, 255, 255, 0.50);
  border-radius: clamp(8px, 0.75vw, 13px);
  background: linear-gradient(180deg, #1499d8 0%, #0875b4 100%);

  color: #ffffff;
  text-decoration: none;
  font-size: clamp(14px, 1.25vw, 25px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 6px 14px rgba(0, 0, 0, 0.22);

  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.climanet-nav a:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #18b9ef 0%, #0a86ca 100%);
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

/* Bouton téléphone : un seul bloc responsive, jamais coupé */
.climanet-call-icon {
  justify-self: end;

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(8px, 0.8vw, 13px);

  width: auto;
  max-width: min(25vw, 320px);
  min-width: clamp(46px, 4.4vw, 74px);
  height: clamp(46px, 4.4vw, 74px);

  padding: clamp(4px, 0.45vw, 7px) clamp(7px, 1vw, 16px) clamp(4px, 0.45vw, 7px) clamp(4px, 0.45vw, 7px);

  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, #1499d8 0%, #0875b4 100%);

  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  z-index: 2;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 8px 18px rgba(0,0,0,0.28);

  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.climanet-call-icon:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #18b9ef 0%, #0a86ca 100%);
  border-color: rgba(255, 255, 255, 0.72);
}

.climanet-call-icon img {
  flex: 0 0 auto;
  display: block;
  width: clamp(38px, 3.55vw, 60px);
  height: clamp(38px, 3.55vw, 60px);
  object-fit: cover;
  border-radius: 50%;
}

.climanet-call-icon::after {
  content: "(418) 930-5407";
  display: block;
  color: #ffffff;
  font-size: clamp(14px, 1.2vw, 24px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Écrans moyens : on garde le menu sur une ligne et on compacte le téléphone */
@media (max-width: 1120px) {
  .climanet-header {
    grid-template-columns: minmax(125px, 0.85fr) auto minmax(54px, 0.85fr);
  }

  .climanet-logo img {
    width: clamp(185px, 21vw, 300px);
  }

  .climanet-nav {
    gap: clamp(7px, 1.35vw, 18px);
  }

  .climanet-nav a {
    min-height: clamp(32px, 3vw, 42px);
    padding: 0 clamp(8px, 1.2vw, 16px);
    font-size: clamp(13px, 1.35vw, 18px);
  }

  .climanet-call-icon {
    max-width: 58px;
    min-width: 50px;
    width: 50px;
    height: 50px;
    padding: 4px;
    justify-content: center;
  }

  .climanet-call-icon::after {
    display: none;
  }

  .climanet-call-icon img {
    width: 42px;
    height: 42px;
  }
}

/* Mobile/tablette : menu sur deuxième ligne pour rester lisible */
@media (max-width: 760px) {
  .climanet-header {
    height: auto;
    min-height: 112px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo call"
      "nav nav";
    row-gap: 11px;
    padding: 12px 16px;
    overflow: visible;
  }

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

  .climanet-logo img {
    width: clamp(165px, 48vw, 230px);
    max-height: none;
  }

  .climanet-call-icon {
    grid-area: call;
    width: 54px;
    height: 54px;
    min-width: 54px;
    max-width: 54px;
  }

  .climanet-call-icon img {
    width: 46px;
    height: 46px;
  }

  .climanet-nav {
    grid-area: nav;
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .climanet-nav a {
    min-height: 38px;
    padding: 0 13px;
    font-size: 15px;
    border-radius: 10px;
  }
}

@media (max-width: 430px) {
  .climanet-nav {
    justify-content: space-between;
    gap: 7px;
  }

  .climanet-nav a {
    padding: 0 9px;
    font-size: 13px;
  }
}


/* ==========================================================
   CORRECTION AUTORISÉE — MENU SEULEMENT
   Remonte le logo, les boutons et le téléphone dans le header.
   ========================================================== */

.climanet-logo,
.climanet-nav,
.climanet-call-icon {
  transform: translateY(-13px);
}

.climanet-nav a:hover,
.climanet-call-icon:hover {
  transform: translateY(-14px);
}

@media (max-width: 760px) {
  .climanet-logo,
  .climanet-call-icon {
    transform: translateY(-7px);
  }

  .climanet-nav {
    transform: translateY(-5px);
  }

  .climanet-nav a:hover,
  .climanet-call-icon:hover {
    transform: translateY(-8px);
  }
}



/* VERROU SECTION 3 — TITRE APPROUVÉ */
@media (max-width: 640px) {
  .section-3-kicker {
    gap: 12px;
    margin-bottom: 18px;
    font-size: clamp(28px, 8vw, 42px);
  }

  .section-3-kicker::before,
  .section-3-kicker::after {
    flex-basis: clamp(24px, 10vw, 52px);
  }
}
