/* landing eco-gobelets.com/landing/ — Devis Express */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Charte eco-gobelets : PC_COLOR vert pomme + bleu marine logo */
  --green: #79a500;
  --green-d: #5e8200;
  --green-l: #8fbc15;
  --blue: #000F8F;
  --blue-d: #000a6e;
  --accent: #FFC700;
  --accent-h: #ffd633;
  --success: #10b981;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
}
html { scroll-behavior: smooth; }
body {
  font: 16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color: var(--gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-d); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 14px 24px; border: 0; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; cursor: pointer;
  text-decoration: none; transition: background .15s, transform .1s;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(121, 165, 0, .25);
}
.btn:hover, .btn:focus { background: var(--green-d); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(121, 165, 0, .35); }
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(0, 15, 143, .25); }
.btn--primary:hover { background: var(--blue-d); color: #fff; }
.btn--accent { background: var(--accent); color: #1a1a1a; box-shadow: 0 4px 12px rgba(255, 199, 0, .35); }
.btn--accent:hover { background: var(--accent-h); color: #1a1a1a; }
.btn--lg { padding: 18px 32px; font-size: 18px; }

/* ----- Top bar ----- */
.topbar { background: #fff; color: #222; padding: 10px 0; border-bottom: 1px solid var(--gray-200); box-shadow: 0 1px 4px rgba(0,0,0,.04); position: sticky; top: 0; z-index: 100; }
.topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: nowrap; }
.topbar__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.topbar__logo img { height: 40px; width: auto; max-width: 140px; }
.topbar__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.topbar__tel:hover, .topbar__tel:focus { color: var(--green-d); }
.topbar__tel .ico { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(121, 165, 0, .35) 0%, transparent 50%),
    linear-gradient(135deg, var(--blue) 0%, #001cb8 100%);
  color: #fff; padding: 48px 0 56px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-l) 50%, var(--accent) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; position: relative; z-index: 1; }
.hero__content { display: flex; flex-direction: column; }
.hero__title { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; font-weight: 800; margin-bottom: 16px; }
.hero__title span { color: var(--green-l); }
.hero__subtitle { font-size: clamp(16px, 2.5vw, 19px); opacity: .92; margin-bottom: 24px; max-width: 480px; }
.hero__photo {
  display: none; /* mobile : caché pour économiser la fold */
  width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  margin-top: 24px;
  border: 3px solid rgba(255,255,255,.15);
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero__badge {
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.hero__form-card {
  background: #fff; color: var(--gray-900);
  padding: 24px; border-radius: 12px; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--green);
}
.hero__form-card h2 { font-size: 22px; margin-bottom: 6px; color: var(--blue); }
.hero__form-card p { color: var(--gray-500); margin-bottom: 18px; font-size: 14px; }

/* ----- Form ----- */
.form-row { display: grid; gap: 12px; margin-bottom: 12px; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--gray-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 6px; font: inherit; background: #fff;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(121, 165, 0, .12);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-error { color: #dc2626; font-size: 12px; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select { border-color: #dc2626; }
.field.has-error .field-error { display: block; }

/* Quick form Hero = 3 champs essentiels seulement */
.hero__form-card .form-quick { display: grid; gap: 10px; }
.hero__form-card .btn { margin-top: 4px; }
.hero__cta-secondary {
  display: block; margin-top: 10px; text-align: center;
  font-size: 13px; color: var(--gray-500);
}
.hero__cta-secondary a { color: var(--green-d); font-weight: 600; }

/* ----- Trust bar : chiffres clés ----- */
.trustbar {
  background: #fff; padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.trustbar__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; align-items: start;
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
}
.trustbar__item { text-align: center; }
.trustbar__num {
  font-size: clamp(30px, 7vw, 44px); font-weight: 800; line-height: 1;
  color: var(--green); letter-spacing: -.03em;
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.trustbar__num span {
  font-size: .5em; color: var(--blue); font-weight: 700;
}
.trustbar__lbl {
  font-size: 13px; color: var(--gray-700); margin-top: 6px;
  font-weight: 500; line-height: 1.35;
}

/* ----- Galerie réalisations ----- */
.gallery {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow); background: #fff;
  aspect-ratio: 7/5;
  transition: transform .2s, box-shadow .2s;
  margin: 0;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.gallery__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,15,143,.85) 0%, transparent 100%);
  color: #fff; padding: 20px 12px 10px;
  font-size: 13px; font-weight: 600;
}
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* ----- Section commune ----- */
.section { padding: 64px 0; }
.section--gray { background: var(--gray-50); }
.section__title {
  font-size: clamp(24px, 4vw, 32px); font-weight: 800;
  text-align: center; margin-bottom: 12px; color: var(--gray-900);
}
.section__subtitle {
  text-align: center; color: var(--gray-500); font-size: 16px;
  max-width: 640px; margin: 0 auto 40px;
}

/* ----- Process 4 étapes ----- */
.process { display: grid; gap: 24px; grid-template-columns: 1fr; }
.process__step {
  background: #fff; padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--green);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.process__step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.process__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-l) 100%);
  color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 12px; box-shadow: 0 4px 10px rgba(121, 165, 0, .35);
}
.process__step h3 { font-size: 17px; margin-bottom: 6px; color: var(--blue); }
.process__step p { color: var(--gray-500); font-size: 14px; }

/* ----- Avantages 3 colonnes ----- */
.advantages { display: grid; gap: 24px; grid-template-columns: 1fr; }
.advantage { text-align: center; padding: 16px; }
.advantage__ico { font-size: 38px; margin-bottom: 12px; }
.advantage h3 { font-size: 18px; margin-bottom: 6px; }
.advantage p { color: var(--gray-500); }

/* ----- Témoignages ----- */
.testimonials { display: grid; gap: 24px; grid-template-columns: 1fr; }
.testimonial {
  background: #fff; padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--accent);
}
.testimonial__stars { color: var(--accent); font-size: 18px; margin-bottom: 10px; }
.testimonial__text { font-style: italic; color: var(--gray-700); margin-bottom: 14px; }
.testimonial__author { font-weight: 700; font-size: 15px; }
.testimonial__role { color: var(--gray-500); font-size: 13px; }

/* ----- Form complet ----- */
.form-full {
  max-width: 720px; margin: 0 auto; background: #fff;
  padding: 32px; border-radius: 12px; box-shadow: var(--shadow-lg);
}
.form-full {
  border-top: 4px solid var(--green);
}
.form-full h2 { color: var(--blue); margin-bottom: 8px; font-size: 24px; }
.form-full__sub { color: var(--gray-500); margin-bottom: 24px; }

/* ----- Footer ----- */
.footer {
  background: var(--gray-900); color: #cbd5e1; padding: 48px 0 24px;
  font-size: 14px;
}
.footer__cols { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer a { color: #cbd5e1; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid #374151; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #94a3b8;
}

/* ----- Sticky mobile CTA (bottom bar) ----- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -6px 18px rgba(0,0,0,.12);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: none;
  gap: 8px;
  z-index: 90;
  transform: translateY(0);
  transition: transform .3s ease;
}
.mobile-cta--hidden { transform: translateY(100%); }
.mobile-cta__btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.mobile-cta__btn:active { transform: scale(.97); }
.mobile-cta__btn--tel {
  background: var(--blue); color: #fff;
}
.mobile-cta__btn--tel:hover, .mobile-cta__btn--tel:focus { background: var(--blue-d); color: #fff; }
.mobile-cta__btn--devis {
  background: var(--green); color: #fff;
  box-shadow: 0 4px 10px rgba(121,165,0,.35);
}
.mobile-cta__btn--devis:hover, .mobile-cta__btn--devis:focus { background: var(--green-d); color: #fff; }
.mobile-cta__ico { font-size: 16px; line-height: 1; }
.mobile-cta__lbl { line-height: 1; }

/* ----- Success message ----- */
.success-msg {
  background: #d1fae5; border: 2px solid var(--success); color: #065f46;
  padding: 32px; border-radius: var(--radius); text-align: center;
  display: none;
}
.success-msg.show { display: block; }
.success-msg h3 { color: #065f46; margin-bottom: 8px; font-size: 22px; }
.success-msg p { color: #047857; }
.success-msg__ico { font-size: 48px; margin-bottom: 12px; }

/* ----- Responsive desktop ----- */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .hero { padding: 80px 0 88px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero__photo { display: block; margin-top: 20px; max-width: 100%; }
  .process { grid-template-columns: repeat(4, 1fr); }
  .advantages { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .footer__cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
  /* Trust bar : 4 col */
  .trustbar { padding: 40px 0; }
  .trustbar__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 0 24px; }
  /* Galerie : 3 col avec 1 wide */
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 14/5; }
}
/* Mobile: afficher sticky CTA */
@media (max-width: 767px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; } /* laisse place au sticky */
  /* Topbar mobile : logo plus petit, tel visible */
  .topbar__logo img { height: 32px; max-width: 110px; }
  .topbar__tel { font-size: 13px; }
  .topbar__tel .ico { width: 22px; height: 22px; font-size: 11px; }
  /* Hero photo mobile : visible mais compressée après le form */
  .hero__photo { display: block; margin-top: 20px; max-width: 100%; }
}
@media (max-width: 480px) {
  .form-row--2 { grid-template-columns: 1fr; }
  .hero__form-card { padding: 20px; }
  .form-full { padding: 24px 20px; }
  .trustbar__num { font-size: 28px; }
  .trustbar__lbl { font-size: 12px; }
}
