/* =========================
   Base
========================= */
:root{
  --font: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --text: #1c1c1c;
  --muted: #4b4b4b;
  --bg: #ffffff;

  --accent: #f05a28;
  --navy: #1f2d53;
  --alt: #f2fbff;

  --callout: #f6d694;
  --shadow: 0 18px 36px rgba(0,0,0,.18);

  --radius: 12px;
  --radius-lg: 18px;

  --container: 1200px;
  --gutter: 24px;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }

.container{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.center{ text-align: center; }
.mt-10{ margin-top: 10px; }
.mt-28{ margin-top: 28px; }

.micro{
  margin: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Title video (avec picto play)
========================= */
.cee__media-title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
}
.cee__media-title::before{
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-block;
  transform: translateY(-1px);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='24' fill='%23f05a28'/%3E%3Cpolygon points='20,16 34,24 20,32' fill='white'/%3E%3C/svg%3E");
}

/* =========================
   Buttons
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform .12s ease, filter .12s ease, background .12s ease, color .12s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{ background: var(--accent); color: #fff; }
.btn--primary:hover{ filter: brightness(0.95); }

.btn--ghost{
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn--ghost:hover{ background: rgba(255,255,255,.20); }

.btn--lg{ padding: 14px 22px; font-size: 15px; }
.btn--small{ padding: 10px 14px; font-size: 14px; }

/* =========================
   Header
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Toggle caché */
.nav-toggle{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Grille header */
.header__inner{
  display: grid;
  grid-template-columns: 210px 1fr auto auto; /* logo | nav | cta | burger */
  gap: 8px;
  align-items: center;
  padding: 12px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__logo{
  width: 198px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Nav desktop */
.nav{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nav--desktop{
  gap: 0;
}
.nav__link{
  text-decoration: none;
  font-weight: 600;
  color: #121826;
  opacity: .9;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.2;
  transition: color .15s ease, background .15s ease, opacity .15s ease;
}
.nav--desktop .nav__link{
  display: inline-flex;
  align-items: center;
  padding-inline: 2px;
  padding: 10px;
  position: relative;
}
.nav--desktop .nav__link:last-child{
  margin-right: 16px;
}
.nav--desktop .nav__link:not(:last-child)::after{
  content: "|";
  margin: 0 2px 0 8px;
  color: rgba(18,24,38,.38);
  font-weight: 700;
  display: inline-block;
  position: absolute;
  right: -3px;
}
.nav__link:hover{ opacity: 1; background: rgba(0,0,0,.04); }
.nav--desktop .nav__link:hover{
  color: var(--accent);
  background: transparent;
}

.header__cta{ white-space: nowrap; }
.header__cta--desktop{
  padding: 10px 12px;
  font-size: 14px;
}

/* =========================
   Burger (mobile) - STATIQUE, SANS ANIM
   -> supporte aussi l'ancien HTML avec <span>
========================= */
.nav-burger{
  display: none; /* activé en mobile */
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.95);
  cursor: pointer;
  position: relative;
  z-index: 130;
}

/* Icône burger via pseudo-element (3 traits) */
.nav-burger::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #121826;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  box-shadow:
    0 -7px 0 #121826,
    0  7px 0 #121826;
}

/* Si tu as encore les <span>, on les neutralise pour éviter les bugs */
.nav-burger span{ display: none !important; }

/* =========================
   Overlay + Drawer (mobile)
========================= */
.nav-overlay{ display: none; }
.nav-drawer{ display: none; }

/* =========================
   Hero
========================= */
.hero{
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,24,38,.78) 0%, rgba(18,24,38,.34) 55%, rgba(18,24,38,.10) 100%),
    url("https://cdn.v2.primesenergie.fr/images/header-home.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero__inner{ position: relative; padding: 70px 0 64px; }
.hero__content{ max-width: 720px; }

.hero__kicker{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .9;
}
.hero__title{
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(34px, 4.3vw, 56px);
}
.hero__lead{
  margin: 0 0 18px;
  font-size: 18px;
  opacity: .95;
  max-width: 60ch;
}
.hero__cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.trust{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.trust__item{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  opacity: .95;
}
.trust__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,90,40,.25);
}

/* =========================
   Sections
========================= */
.section{ padding: 72px 0; }
.section--alt{ background: var(--alt); }

.section__header{ text-align: center; margin-bottom: 28px; }
.section__title{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}
.section__subtitle{
  margin: 0;
  font-weight: 800;
  color: var(--accent);
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.25;
}

/* =========================
   CEE block
========================= */
.cee{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: start;
  margin-top: 26px;
}
.cee__intro{ margin: 0 0 16px; font-size: 18px; line-height: 1.7; }
.cee__bullets{ margin: 0; padding: 0 0 0 18px; }
.cee__bullets li{ margin: 0 0 10px; font-size: 16px; line-height: 1.6; }

.callout{
  margin-top: 18px;
  background: var(--callout);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 14px;
  align-items: center;
}
.callout__text{ font-size: 15px; line-height: 1.55; }
.callout__icon{
  width: 64px;
  height: 64px;
  justify-self: end;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M48 10c-14.4 0-26 11.6-26 26 0 9.3 4.9 17.5 12.3 22.2 3.3 2.1 5.7 5.4 6.4 9.3l.4 2.5h14l.4-2.5c.7-3.9 3.1-7.2 6.4-9.3C69.1 53.5 74 45.3 74 36 74 21.6 62.4 10 48 10z'/%3E%3Cpath d='M38 78h20'/%3E%3Cpath d='M41 86h14'/%3E%3Cpath d='M12 36h-6'/%3E%3Cpath d='M90 36h-6'/%3E%3Cpath d='M20 18l-4-4'/%3E%3Cpath d='M80 18l4-4'/%3E%3Cpath d='M20 54l-4 4'/%3E%3Cpath d='M80 54l4 4'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .95;
}

/* video */
.video{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.video img{ width: 100%; height: 100%; object-fit: cover; }
.video__play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video__play::before{
  content:"";
  width: 92px;
  height: 58px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.video__play::after{
  content:"";
  position: absolute;
  width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}

/* Benefits */
.benefits{
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.benefit{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
}
.benefit__icon{ font-size: 24px; margin-bottom: 10px; }
.benefit__title{ font-weight: 800; margin-bottom: 6px; }
.benefit__desc{ color: var(--muted); font-size: 14px; line-height: 1.45; }

/* =========================
   Steps
========================= */
.steps{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-top: 26px;
}
.step{
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}
.step__img{ width: 100%; height: 150px; object-fit: cover; }
.step__body{ padding: 14px 14px 16px; }
.step__title{
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.step__n{ color: var(--accent); }
.step__text{ margin: 0 0 10px; color: var(--muted); }
.step__link{
  display: inline-block;
  font-weight: 800;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.step__tag{
  display: inline-flex;
  background: rgba(240,90,40,.12);
  color: var(--accent);
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
}

/* =========================
   Cards (Projets)
========================= */
.cards{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-top: 26px;
}

/* carte unique (version clean, sans doublon) */
.card{
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 22px 18px 24px;
  min-height: 320px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.82;
  z-index: 0;
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.35) 100%),
    radial-gradient(900px 280px at 40% 0%, rgba(255,255,255,.18), transparent 55%);
  pointer-events: none;
}

.card > *{ position: relative; z-index: 1; }

.card__title{
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card__list{
  margin: 0;
  padding-left: 18px;
  font-weight: 500;
  line-height: 1.7;
  font-size: 15px;
}

.card__list--chauffage{
  padding-bottom: 16px;
}
.card__more{
  display: block;
  margin-top: 12px;
  font-weight: 800;
  opacity: .95;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card__btn{
  position: relative;
  left: auto;
  bottom: auto;
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.75);
  font-weight: 800;
  background: rgba(0,0,0,.14);
  backdrop-filter: blur(6px);
}

/* images */
.card--blue{
  background-image: url("../images/cards/isolation-bleu.webp");
}
.card--orange{
  background-image: url("../images/cards/chauffage-orange.webp");
}
.card--violet{
  background-image: url("../images/cards/enr-violet.webp");
}
.card--green{
  background-image: url("../images/cards/ve-vert.webp");
}

/* overlays couleur */
.card--blue::before{ background: #1aa6c8; }
.card--orange::before{ background: #d38900; }
.card--violet::before{ background: #6b6ee8; }
.card--green::before{ background: #79b100; }

/* =========================
   FAQ
========================= */
.faq{
  padding: 80px 0;
  background: var(--alt);
}
.faq__container{
  max-width: 900px;
  margin: 0 auto;
}
.faq__title{
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-align: center;
}
.faq__subtitle{
  text-align: center;
  color: #555;
  font-size: 18px;
  margin-bottom: 40px;
}
.faq__accordion{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item summary::-webkit-details-marker{ display: none; }
.faq__item summary{ list-style: none; }

.faq__item{
  border-radius: 16px;
  border: 1px solid #eaeaea;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.faq__item:hover{
  border-color: #f05a28;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.faq__item summary{
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq__item summary::after{
  content: "";
  width: 10px;
  height: 10px;
  border-right: 3px solid #f05a28;
  border-bottom: 3px solid #f05a28;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 20px;
}
.faq__item[open] summary::after{ transform: rotate(225deg); }
.faq__content{
  padding: 0 24px 22px 24px;
  color: #666;
  line-height: 1.7;
  font-size: 16px;
  border-top: 1px solid #f3f3f3;
}
.faq__item[open]{
  border-color: #f05a28;
  box-shadow: 0 16px 40px rgba(240, 90, 40, 0.08);
}

/* =========================
   Final CTA band
========================= */
.final-cta{
  background: var(--navy);
  color: #fff;
  padding: 26px 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}
.final-cta__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.final-cta__title{ font-weight: 800; font-size: 20px; }
.final-cta__sub{ opacity: .9; font-weight: 700; font-size: 14px; }

/* =========================
   Footer
========================= */
.site-footer{
  background: var(--navy);
  color: #fff;
  padding: 40px 0 18px;
}
.footer__grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer__title{ font-weight: 800; margin-bottom: 10px; opacity: .95; }
.footer__col a{
  display: block;
  color: #fff;
  opacity: .9;
  margin: 8px 0;
  text-decoration: none;
}
.footer__col a:hover{ opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.footer__small{ opacity: .85; font-weight: 700; margin-bottom: 10px; }
.footer__logo{ width: 160px; height: auto; margin: 8px 0 10px; }
.footer__phone{ font-weight: 800; opacity: .95; }

.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  gap: 10px;
  opacity: .9;
  font-weight: 700;
  font-size: 13px;
}
.footer__sep{ opacity: .5; }

/* =========================
   Sticky CTA (mobile) - FIX largeur / débordement
========================= */
.sticky-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,.08);
  z-index: 60;
  display: none;
  box-sizing: border-box;
}


/* =========================
   Responsive
========================= */
@media (max-width: 1024px){
  .header__inner{ grid-template-columns: 1fr auto; }
  .nav{ display: none; }
}

@media (max-width: 991px){
  .cee{ grid-template-columns: 1fr; }
  .benefits{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .final-cta__inner{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 980px){
  /* header mobile */
  .header__inner{ grid-template-columns: 1fr auto; }
  .brand__logo{ width: 190px; }
  .nav--desktop{ display: none; }
  .header__cta--desktop{ display: none; }

  /* burger visible */
  .nav-burger{ display: block; }

  /* overlay */
  .nav-overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  /* drawer */
  .nav-drawer{
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(360px, 92vw);
    background: rgba(255,255,255,.98);
    border-left: 1px solid rgba(0,0,0,.10);
    box-shadow: -20px 0 60px rgba(0,0,0,.20);
    z-index: 120;

    padding: 14px;
    transform: translateX(105%);
    transition: transform .22s ease;
    overflow-y: auto;
  }

  .nav-drawer__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 12px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    margin-bottom: 12px;
  }

  .nav-drawer__title{
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #121826;
    font-size: 18px;
  }

  .nav-drawer__close{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.10);
    display: grid;
    place-items: center;
    cursor: pointer;
    background: #fff;
    color: #121826;
    font-weight: 900;
  }

  /* nav mobile : force un affichage lisible (neutralise styles desktop) */
  .nav-drawer .nav{
    display: grid !important;
    justify-content: initial !important;
    gap: 10px !important;
    padding: 0 !important;
  }
  .nav-drawer .nav__link{
    display: block;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(18,24,38,.04);
    color: #121826 !important;
    opacity: 1 !important;
    font-weight: 600;
    text-decoration: none;
  }
  .nav-drawer .nav__link:hover{ background: rgba(18,24,38,.07); }

  .nav-drawer__cta{
    width: 100%;
    text-align: center;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 999px;
  }
  .nav-drawer__note{
    margin: 10px 2px 0;
    color: rgba(18,24,38,.65);
    font-weight: 700;
    font-size: 13px;
  }

  /* OPEN states */
  .nav-toggle:checked ~ .nav-overlay{
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle:checked ~ .nav-drawer{
    transform: translateX(0);
  }
}

@media (max-width: 640px){
  .hero{ min-height: 520px; }
  .hero__inner{ padding: 56px 0 56px; }
  .hero__lead{ font-size: 16px; }
  .hero__cta{ flex-direction: column; align-items: stretch; }
  .btn--lg{ width: 100%; }

  .steps{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
}

/* =========================
   		sticky-cta
========================= */
.sticky-cta{
  box-sizing: border-box;
  width: 100%;
}

.sticky-cta__btn{
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

/* iOS / safe-area + éviter que ça dépasse en bas */
@media (max-width: 640px){
  .sticky-cta{
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  body{
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* =========================
   Nav active state
========================= */
.nav__link--active{
  color: var(--accent) !important;
  opacity: 1;
}
.nav--desktop .nav__link--active{
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nav-drawer .nav__link--active{
  background: rgba(18,24,38,.07);
  color: var(--accent) !important;
}
