:root {
  --blue-950: #0b3f66;
  --blue-900: #0d5d97;
  --blue-800: #0f78bd;
  --blue-600: #1495de;
  --cyan: #a9d6f4;
  --cyan-soft: #eef8ff;
  --white: #ffffff;
  --gray-50: #f5f9fd;
  --gray-100: #eaf1f7;
  --gray-300: #c6d4e1;
  --gray-600: #566574;
  --gray-900: #183247;
  --green: #18b957;
  --orange: #f45a22;
  --orange-soft: #fff1ea;
  --shadow: 0 18px 45px rgba(11, 63, 102, .16);
  --radius: 18px;
  --transition: .28s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}
.section-kicker::before { content: ""; width: 36px; height: 3px; background: var(--orange); border-radius: 99px; }
h1, h2, h3 { line-height: 1.15; color: var(--blue-950); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; margin-bottom: 16px; }
h3 { font-size: 1.05rem; }
p { color: var(--gray-600); }
.section-heading { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-heading .section-kicker { justify-content: center; }

.topbar { background: var(--blue-950); color: var(--white); font-size: .92rem; }
.topbar__content { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a:hover { color: var(--cyan); }
.topbar i { color: var(--orange); margin-right: 6px; }
.topbar__tag { opacity: .92; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(8,35,58,.09); transition: var(--transition); }
.site-header.is-scrolled { box-shadow: 0 12px 28px rgba(6,24,39,.12); }
.navbar { min-height: 78px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand__logo { width: 76px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--white); box-shadow: 0 10px 24px rgba(15, 120, 189, .10); }
.brand strong { display: block; color: var(--blue-950); font-size: 1rem; }
.brand small { display: block; color: var(--gray-600); font-size: .74rem; margin-top: -2px; }
.hero__brandline { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 14px 35px rgba(0,0,0,.16); margin-bottom: 18px; }
.hero__brandline img { width: min(320px, 70vw); height: auto; display: block; }
.footer-branding { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.footer-branding img { width: 92px; height: auto; border-radius: 12px; background: var(--white); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { font-weight: 700; color: var(--blue-900); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 3px; background: var(--orange); border-radius: 99px; transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--gray-100); border-radius: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--blue-950); margin: 5px auto; transition: var(--transition); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--primary { background: linear-gradient(135deg, var(--orange), #ff9b5f); color: var(--white); }
.btn--quote { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); color: var(--white); }
.btn--login { background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: var(--white); }
.btn--outline-light { color: var(--white); border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.btn--large { min-height: 58px; padding-inline: 28px; font-size: 1rem; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.mobile-login-link { display: none; }
.btn--light { background: var(--white); color: var(--blue-950); }
.btn--whatsapp { background: var(--green); color: var(--white); }

.hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, rgba(11,63,102,.96), rgba(15,120,189,.88)), url('images/machine-glace-professionnelle-1.jpeg') center/cover; color: var(--white); }
.hero__overlay { position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, rgba(169,214,244,.28), transparent 35%), radial-gradient(circle at 20% 20%, rgba(244,90,34,.16), transparent 24%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 50px; align-items: center; padding: 74px 0; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 5rem); color: var(--white); text-transform: uppercase; margin-bottom: 24px; }
.hero h1 span { color: var(--cyan); font-size: .55em; display: block; margin-top: 10px; }
.hero p { color: rgba(255,255,255,.86); max-width: 720px; font-size: 1.15rem; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; }
.hero__visual img { width: 100%; height: 520px; object-fit: cover; border-radius: 28px; border: 8px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.38); animation: floatImage 5s ease-in-out infinite; }
.hero__badge { position: absolute; left: -26px; bottom: 36px; background: rgba(255,255,255,.97); color: var(--blue-950); padding: 18px 22px; border-radius: 18px; box-shadow: var(--shadow); border-left: 5px solid var(--orange); }
.hero__badge strong { display: block; text-transform: uppercase; }
.hero__badge span { color: var(--gray-600); font-size: .9rem; }
@keyframes floatImage { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.presentation { background: var(--gray-50); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stats article { min-height: 150px; padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border-top: 4px solid var(--orange); transition: var(--transition); }
.stats article:hover { transform: translateY(-7px); }
.stats strong { display: block; color: var(--blue-900); font-size: 1.6rem; text-transform: uppercase; }
.stats span { color: var(--gray-600); }

.products { background: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-100); box-shadow: 0 12px 30px rgba(6,24,39,.08); transition: var(--transition); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-card img { height: 230px; width: 100%; object-fit: cover; transition: transform .55s ease; }
.product-card:hover img { transform: scale(1.08); }
.product-card div { padding: 24px; }
.product-card h3 { text-transform: uppercase; margin-bottom: 10px; }
.product-card p { margin-bottom: 16px; }
.product-card a { display: inline-flex; color: var(--blue-600); font-weight: 900; }
.product-card a::after { content: "→"; margin-left: 8px; }

.services { background: linear-gradient(180deg, var(--gray-50), var(--white)); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: var(--white); padding: 30px; border-radius: var(--radius); border: 1px solid var(--gray-100); box-shadow: 0 10px 24px rgba(6,24,39,.06); transition: var(--transition); }
.service-card:hover { transform: translateY(-7px); border-color: rgba(244,90,34,.35); box-shadow: var(--shadow); }
.service-card i { width: 54px; height: 54px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); border-radius: 16px; font-size: 1.45rem; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 10px; }

.sectors { background: var(--blue-950); color: var(--white); }
.sectors h2, .sectors p { color: var(--white); }
.sector-list { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.sector-list span { padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: var(--white); font-weight: 800; transition: var(--transition); }
.sector-list span:hover { background: var(--orange); color: var(--white); transform: translateY(-4px); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { position: relative; height: 245px; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--blue-950); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, opacity .55s ease; }
.gallery-item span { position: absolute; inset-inline: 0; bottom: 0; padding: 45px 18px 18px; color: var(--white); font-weight: 900; text-align: left; background: linear-gradient(transparent, rgba(6,24,39,.88)); transform: translateY(12px); opacity: 0; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); opacity: .82; }
.gallery-item:hover span { transform: translateY(0); opacity: 1; }
.gallery-item:nth-child(1), .gallery-item:nth-child(3) { grid-column: span 2; }

.why { background: linear-gradient(135deg, var(--blue-950), var(--blue-800)); color: var(--white); }
.why h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-grid article { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); font-weight: 800; }
.why-grid i { color: var(--orange); }

.quote-band { padding: 72px 0; background: linear-gradient(135deg, var(--cyan-soft), var(--white)); border-block: 1px solid var(--gray-100); }
.quote-band__content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.quote-band h2 { max-width: 780px; }
.quote-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.management-access { background: linear-gradient(135deg, var(--blue-950), var(--blue-800)); color: var(--white); padding: 82px 0; }
.management-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 34px; border-radius: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); box-shadow: var(--shadow); }
.management-card h2 { color: var(--white); }
.management-card p { color: rgba(255,255,255,.82); max-width: 760px; }

.contact { background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact-info, .contact-form { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-info p { margin: 14px 0; }
.contact-info a { color: var(--blue-600); font-weight: 900; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; color: var(--blue-950); font-weight: 800; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--gray-300); background: var(--gray-50); border-radius: 14px; padding: 14px 15px; outline: none; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(20,149,222,.14); background: var(--white); }
.form-message { min-height: 24px; font-weight: 800; color: var(--green); }

.footer { background: var(--blue-950); color: rgba(255,255,255,.86); padding-top: 64px; }
.footer h2, .footer h3 { color: var(--white); margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer a { display: block; margin: 8px 0; color: rgba(255,255,255,.78); transition: var(--transition); }
.footer a:hover { color: var(--orange); transform: translateX(4px); }
.footer-bottom { margin-top: 46px; padding: 20px; text-align: center; background: rgba(0,0,0,.18); color: rgba(255,255,255,.75); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.88); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(980px, 86vw); max-height: 78vh; object-fit: contain; border-radius: 16px; box-shadow: var(--shadow); }
.lightbox p { position: absolute; bottom: 26px; color: var(--white); font-weight: 900; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.15); color: var(--white); cursor: pointer; transition: var(--transition); }
.lightbox__close { top: 20px; right: 24px; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 70px; border-radius: 16px; font-size: 3rem; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); color: var(--white); }

.floating-whatsapp, .back-to-top { position: fixed; z-index: 40; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--white); box-shadow: var(--shadow); cursor: pointer; }
.floating-whatsapp { right: 22px; bottom: 88px; width: 56px; height: 56px; background: var(--green); font-size: 1.8rem; }
.back-to-top { right: 22px; bottom: 22px; width: 52px; height: 52px; background: var(--orange); opacity: 0; visibility: hidden; transition: var(--transition); }
.back-to-top.is-visible { opacity: 1; visibility: visible; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: .15s; }

@media (max-width: 1024px) {
  .header-cta { display: none; }
  .hero__grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .hero__visual img { height: 420px; }
  .product-grid, .service-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-band__content, .management-card { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 820px) {
  .topbar__content { justify-content: center; text-align: center; padding: 8px 0; }
  .navbar { min-height: 68px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions { display: none; }
  .mobile-login-link { display: block; }
  .menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: absolute; left: 16px; right: 16px; top: 76px; display: grid; gap: 0; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: var(--transition); }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { display: block; padding: 12px; }
  .nav-links a::after { display: none; }
  .hero { min-height: auto; }
  .hero__grid { padding: 58px 0; }
  .hero__visual img { height: 360px; }
  .hero__badge { left: 14px; bottom: 18px; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .brand__logo { width: 62px; height: 38px; }
  .brand small { display: none; }
  .hero h1 { font-size: 2.35rem; }
  .hero__actions, .quote-band__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .management-card { padding: 24px; }
  .btn { width: 100%; }
  .stats, .product-grid, .service-grid, .why-grid, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(3) { grid-column: auto; height: 250px; }
  .contact-info, .contact-form { padding: 24px; }
  .footer-branding { grid-template-columns: 1fr; }
  .lightbox__nav { width: 42px; height: 56px; font-size: 2.2rem; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}
