/* GroupeOlaf — couche premium.
   Chargee apres le kit Elementor (priorite 999) pour imposer la typo SF Pro
   et les couleurs du theme. Selecteur body[class] : meme specificite que
   .elementor-kit-N, mais charge plus tard, donc prioritaire sans !important. */

body[class] {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[class] h1,
body[class] h2,
body[class] h3,
body[class] h4,
body[class] h5,
body[class] h6 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  color: var(--foreground);
}

body[class] .go-hero h1 {
  font-size: clamp(2.4rem, min(8.2vw, 9.6vh), 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
}
body[class] .go-hero h1 .is-primary,
body[class] .go-hero h1 .is-stroke {
  color: #ea580c;
  -webkit-text-stroke: 0;
}
body[class] .go-hero__text { color: var(--muted-foreground); }
body[class] .go-title { font-size: clamp(2.15rem, 4.2vw, 3.25rem); line-height: 1.06; font-weight: 700; }
body[class] .go-subtitle { color: var(--muted-foreground); }
body[class] .go-eyebrow { color: var(--secondary-light); }
body[class] .go-btn { font-family: var(--font-body); border-radius: 980px; font-weight: 600; }
body[class] .go-btn--primary { color: #fff; }
body[class] .go-nav__link { font-family: var(--font-body); }

/* le hero tient dans un ecran, meme court : la typo et les marges suivent la hauteur */
body[class] .go-hero { min-height: 100vh; min-height: 100svh; }
body[class] .go-hero__inner {
  padding-top: clamp(4rem, 7vh, 5.5rem);
  padding-bottom: clamp(4.5rem, 10vh, 8rem);
}
@media (max-height: 780px) and (min-width: 768px) {
  body[class] .go-hero__stats { margin-top: 1.75rem; }
  body[class] .go-hero__text { margin-bottom: 1.75rem; }
  body[class] .go-hero__badge { margin-bottom: 1.25rem; }
}

/* Les paddings de .go-content et de la 1re/derniere .go-section s'additionnaient
   (258px de vide avant le premier titre). On garde l'air sur .go-content, qui
   doit aussi compenser la nav fixe de 4rem, et on neutralise les doublons. */
body[class] .go-content {
  padding-top: calc(4rem + clamp(1.5rem, 3vw, 2.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
body[class] .go-content > .go-section:first-child { padding-top: 0; }
body[class] .go-content > .go-section:last-child { padding-bottom: 0; }
body[class] .go-content > .go-section + .go-section { padding-top: clamp(2.25rem, 4vw, 3.5rem); }

/* meme rythme apres le hero qu'entre deux sections */
body[class] .go-hero + .go-section { padding-top: clamp(2.25rem, 4vw, 3.5rem); }

/* Quand la page ouvre sur le hero (accueil), le conteneur ne doit pas ajouter
   sa propre marge haute : sinon une bande vide s'intercale et le hero 100svh
   deborde d'autant. Le hero compense lui-meme la nav fixe. */
body.home .go-content,
body[class] .go-content:has(> .go-hero:first-child) {
  padding-top: 0;
}
body.home .go-hero__inner,
body[class] .go-content > .go-hero:first-child .go-hero__inner {
  padding-top: calc(4rem + clamp(1rem, 3vh, 2.5rem));
}

/* La barre de navigation fixe du bas (mobile) recouvrait la fin de page :
   on reserve sa hauteur sous le contenu, plus la zone sure des iPhone.
   Elle etait aussi restee sombre alors que le site est passe en clair. */
:root { --bottom-nav-h: 3.95rem; }

@media (max-width: 767px) {
  body[class] { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

body[class] .go-bottom-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body[class] .go-bottom-nav__item { color: var(--muted-foreground); }
body[class] .go-bottom-nav__item.is-active span { color: var(--primary); }

/* ── Menu hamburger (mobile) ──────────────────────────────────────────── */
.go-burger {
  display: none;
  width: 2.75rem; height: 2.75rem;
  margin-left: 0.5rem;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 999px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.go-burger__line {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--foreground);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.go-burger.is-open .go-burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.go-burger.is-open .go-burger__line:nth-child(2) { opacity: 0; }
.go-burger.is-open .go-burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.go-drawer {
  position: fixed; inset: 0; z-index: 60;
  display: none;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.25s ease;
}
.go-drawer.is-mounted { display: block; }
.go-drawer.is-open { opacity: 1; }
.go-drawer__panel {
  position: absolute; top: 3.5rem; left: 0; right: 0;
  max-height: calc(100svh - 3.5rem);
  overflow-y: auto;
  padding: 0.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}
.go-drawer.is-open .go-drawer__panel { transform: translateY(0); opacity: 1; }
.go-drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 0.25rem;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.02em;
  color: var(--foreground);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.go-drawer__link:last-child { border-bottom: 0; }
.go-drawer__link.is-active { color: var(--primary); font-weight: 600; }
.go-drawer__link svg { color: var(--muted-foreground); flex: none; }
.go-drawer__cta { margin-top: 1.25rem; }

@media (max-width: 767px) {
  .go-burger { display: flex; }
}
@media (min-width: 768px) {
  .go-drawer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .go-burger__line, .go-drawer, .go-drawer__panel { transition: none; }
}

/* La barre mobile doit rester au-dessus du panneau, sinon l'overlay intercepte
   les clics et le bouton hamburger ne referme plus le menu. */
body[class] .go-mobile-bar { z-index: 70; }

/* ── Fonctionnalites sur mesure (calculateur de devis) ────────────────── */
.go-custom-feat {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.go-custom-feat__label {
  display: block;
  font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--foreground);
  margin-bottom: 0.65rem;
}
.go-custom-feat__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.go-custom-feat__row input {
  flex: 1 1 16rem; min-width: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem; font-family: inherit; color: var(--foreground);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}
.go-custom-feat__row input::placeholder { color: var(--muted-foreground); }
.go-custom-feat__row input:focus-visible { outline: none; box-shadow: var(--ring); border-color: transparent; }
.go-custom-feat__list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.go-custom-feat__item {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.5rem 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--foreground);
  background: rgba(194, 65, 12, 0.10);
  border: 1px solid rgba(194, 65, 12, 0.22);
}
.go-custom-feat__remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 999px;
  color: var(--primary);
  background: rgba(194, 65, 12, 0.12);
  transition: background 0.2s ease;
}
.go-custom-feat__remove:hover { background: rgba(194, 65, 12, 0.24); }
.go-custom-feat__note {
  margin-top: 0.85rem;
  font-size: 0.78rem; line-height: 1.45;
  color: var(--muted-foreground);
}

/* La barre de navigation du bas a ete retiree (le menu hamburger la remplace) :
   le pied de page, qui lui cedait la place, s'affiche de nouveau en mobile. */
body[class] .go-footer { display: block; }
@media (max-width: 767px) {
  body[class] .go-footer__inner { padding: 2rem 1.25rem; gap: 1rem; text-align: center; }
}

/* Calculateur : sans grid-template-columns, la colonne implicite prend la
   largeur min-content des boutons (le <small> en nowrap) et depasse le
   conteneur. minmax(0, 1fr) borne la colonne a la largeur disponible. */
body[class] .go-feature-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  body[class] .go-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  body[class] .go-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body[class] .go-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  body[class] .go-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
body[class] .go-timeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

body[class] .go-feature-btn,
body[class] .go-type-btn,
body[class] .go-timeline-btn { min-width: 0; }
body[class] .go-feature-btn__text,
body[class] .go-feature-btn__text strong { min-width: 0; overflow-wrap: anywhere; }

/* ── Logo de la marque ────────────────────────────────────────────────── */
body[class] .go-logo { gap: 0; }
.go-logo__img {
  display: block;
  width: auto;
  height: 2.1rem;
  max-width: 11.5rem;
  object-fit: contain;
}
.go-logo__img--mobile { height: 1.85rem; max-width: 9.5rem; }
.go-logo__img--footer { height: 1.9rem; max-width: 10.5rem; }
@media (max-width: 380px) {
  .go-logo__img--mobile { height: 1.6rem; max-width: 8rem; }
}

/* ── Fiche projet ─────────────────────────────────────────────────────── */
.go-projet__back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.9rem; font-weight: 500; color: var(--muted-foreground);
  margin-bottom: 1.75rem;
}
.go-projet__back:hover { color: var(--primary); }
.go-projet__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.go-projet__head { margin-bottom: 2rem; }
.go-projet__head .go-subtitle { margin-top: 0.85rem; }
.go-projet__visual {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 2.5rem;
  background: var(--card);
}
.go-projet__visual img { width: 100%; height: auto; display: block; }
.go-projet__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .go-projet__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; }
  .go-projet__aside { position: sticky; top: 5.5rem; }
}
.go-projet__panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.go-projet__panel-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted-foreground);
  margin: 0 0 0.85rem;
}
.go-projet__panel-title + .go-tags { margin-bottom: 1.5rem; }
.go-projet__facts { margin: 0 0 1.5rem; }
.go-projet__facts > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
}
.go-projet__facts > div:last-child { border-bottom: 0; }
.go-projet__facts dt { font-size: 0.85rem; color: var(--muted-foreground); }
.go-projet__facts dd { margin: 0; font-size: 0.9rem; font-weight: 600; text-align: right; }
.go-projet__actions { display: grid; gap: 0.6rem; }
.go-projet__cta { margin-top: 3rem; }

/* liens de la carte projet */
.go-project-card__title { color: inherit; }
.go-project-card__title:hover { color: var(--primary); }
.go-project-card__links { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.go-store-link,
.go-project-card__cta {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
}
.go-store-link { color: var(--muted-foreground); }
.go-store-link:hover { color: var(--primary); }
