:root {
  --navy: #0b2540;
  --blue: #0a6fb5;
  --aqua: #2bb3d6;
  --light: #eef7fb;
  --text: #1d2b38;
  --muted: #5b6b7a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 64, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3edf3;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.logo span { color: var(--aqua); }
.logo small { font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); transition: color 0.2s;
}
.nav ul a:hover { color: var(--blue); }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--blue); color: var(--white); font-weight: 600;
  transition: background 0.2s, transform 0.2s; border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--navy); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--aqua) 100%);
  padding: 120px 0 160px;
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.85rem; opacity: 0.85; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; margin: 14px 0 20px; max-width: 760px; }
.hero p { font-size: 1.15rem; max-width: 620px; opacity: 0.92; }
.hero .actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero .wave { position: absolute; bottom: -1px; left: 0; width: 100%; }
.bubbles span {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); animation: rise linear infinite;
}
@keyframes rise { to { transform: translateY(-900px); opacity: 0; } }

/* Sections */
section { padding: 90px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title .eyebrow { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.section-title h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy); margin: 8px 0 14px; }
.section-title p { color: var(--muted); }
.bg-light { background: var(--light); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -90px; position: relative; z-index: 2; }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: center; }
.stat strong { display: block; font-size: 2.2rem; color: var(--blue); }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s;
}
.card:hover { transform: translateY(-6px); }
.card-img { height: 180px; display: grid; place-items: center; font-size: 4rem; }
.card-img.water { background: linear-gradient(135deg, #0a6fb5, #2bb3d6); }
.card-img.pool { background: linear-gradient(135deg, #17a2b8, #7fdbea); }
.card-img.chem { background: linear-gradient(135deg, #0b2540, #3a6b8f); }
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--navy); margin-bottom: 10px; }
.card-body p { color: var(--muted); flex: 1; }
.link-more { margin-top: 18px; font-weight: 700; color: var(--blue); }
.link-more::after { content: " →"; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about h2 { font-size: 2.2rem; color: var(--navy); margin-bottom: 18px; }
.about p { color: var(--muted); margin-bottom: 14px; }
.about-visual {
  border-radius: var(--radius); min-height: 360px; position: relative;
  background: linear-gradient(160deg, var(--aqua), var(--navy));
  display: grid; place-items: center; color: var(--white); text-align: center; padding: 30px;
}
.about-visual .big { font-size: 5rem; font-weight: 800; line-height: 1; }

/* Split audience */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border-top: 5px solid var(--blue); }
.panel.alt { border-top-color: var(--aqua); }
.panel h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 8px; }
.panel > p { color: var(--muted); margin-bottom: 18px; }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--light); color: var(--blue); font-size: 0.75rem; font-weight: 800;
  display: grid; place-items: center;
}

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--white); border: 1px solid #e3edf3; border-radius: var(--radius); padding: 24px; transition: border-color 0.2s, box-shadow 0.2s; }
.tile:hover { border-color: var(--aqua); box-shadow: var(--shadow); }
.tile .ico { font-size: 1.8rem; margin-bottom: 10px; }
.tile h4 { color: var(--navy); margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 0.92rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 36px 28px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -22px; left: 28px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 800; display: grid; place-items: center;
}
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--blue), var(--aqua)); color: var(--white); text-align: center; padding: 70px 0; }
.cta h2 { font-size: 2rem; margin-bottom: 10px; }
.cta p { opacity: 0.92; margin-bottom: 26px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 40px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-info .sub { opacity: 0.7; margin-bottom: 28px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .ico { font-size: 1.3rem; }
.info-item a:hover { color: var(--aqua); }
form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
form .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d3e1ea; border-radius: 10px;
  font: inherit; color: var(--text); background: #fbfdfe; transition: border-color 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }
.form-msg { grid-column: 1 / -1; color: #138a52; font-weight: 600; display: none; }

/* Footer */
footer { background: #071a2d; color: #b9c7d3; padding: 60px 0 24px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: var(--white); margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { color: var(--aqua); }
footer .logo { color: var(--white); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #1b3550; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }

/* Header extras: langue, lien actif */
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav ul a.active { color: var(--blue); border-bottom: 2px solid var(--aqua); padding-bottom: 4px; }
.lang-switch { display: flex; background: var(--light); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; cursor: pointer; font: inherit;
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  padding: 6px 9px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: var(--blue); }
.lang-switch button.active { background: var(--blue); color: var(--white); }

/* Hero des pages internes */
.page-hero { padding: 90px 0 130px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* Utilitaires */
.eyebrow-left { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 8px; }
.mt { margin-top: 10px; }
.mt-lg { margin-top: 40px; }
.center { text-align: center; }
.about-visual .years { font-size: 1.2rem; font-weight: 600; }
.about-visual .a2pg { opacity: 0.8; margin-top: 8px; }
.logo-light { color: #b9c7d3 !important; }
.contact-info a, footer p a { text-decoration: none; }

/* Images */
.logo img { height: 42px; width: auto; }
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
.hero-img {
  background:
    linear-gradient(135deg, rgba(11, 37, 64, 0.92) 0%, rgba(10, 111, 181, 0.75) 60%, rgba(43, 179, 214, 0.55) 100%),
    var(--img) center / cover no-repeat;
}
.card-img { height: 200px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.chem img { object-fit: contain; padding: 40px 30px; }
.panel-img { width: 100%; height: 210px; object-fit: cover; border-radius: 10px; margin-bottom: 22px; }
.banner-img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow); }
.about-visual.photo {
  background: linear-gradient(rgba(11, 37, 64, 0.45), rgba(11, 37, 64, 0.8)), var(--img) center / cover no-repeat;
}
.about-visual .logo20 { width: min(340px, 90%); margin: 0 auto 18px; }
.partner { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.partner img { height: 46px; width: auto; border-radius: 6px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .tiles, .stats { grid-template-columns: repeat(2, 1fr); }
  .about, .split, .contact, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav ul {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--white); padding: 20px 16px; gap: 16px; border-bottom: 1px solid #e3edf3;
  }
  .nav ul.open { display: flex; }
  .nav .btn { display: none; }
  .nav ul a.active { border-bottom: none; }
  .lang-switch button { padding: 5px 7px; }
  .logo img { height: 28px; }
  .banner-img { height: 220px; }
  .tiles, .stats { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; padding: 26px; }
  .hero { padding: 80px 0 140px; }
}

/* Logo : marque H2O|20 + phrase traduite */
.brand { display: inline-flex; align-items: flex-end; gap: 0.3em; line-height: 1; }
.brand img { height: 42px; width: auto; }
.brand-tag {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 300;
  font-size: 30px; line-height: 0.8; color: var(--navy); white-space: nowrap; letter-spacing: 0.01em;
}
.brand-footer { margin-bottom: 16px; }
.brand-footer img { height: 54px; }
.brand-footer .brand-tag { font-size: 38px; color: var(--white); }
.brand-big { margin: 0 auto 18px; }
.brand-big img { height: 84px; }
.brand-big .brand-tag { font-size: 60px; color: var(--white); }
@media (max-width: 760px) {
  .brand img { height: 30px; }
  .brand-tag { font-size: 21px; }
  .brand-big img { height: 60px; }
  .brand-big .brand-tag { font-size: 42px; }
}
.logo .brand-tag { color: var(--navy); }
.card-img { display: block; overflow: hidden; }
.brand-big img { height: 60px; }
.brand-big .brand-tag { font-size: 40px; }
.about-visual { overflow: hidden; }
@media (max-width: 760px) { .brand-big img { height: 44px; } .brand-big .brand-tag { font-size: 29px; } }
.about-visual .a2pg { opacity: 1; font-weight: 500; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); max-width: 380px; margin: 8px auto 0; }

/* Contact LATAM + Genève, bouton WhatsApp */
.contact-sep { border: 0; border-top: 1px solid rgba(255,255,255,0.18); margin: 8px 0 28px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-whatsapp { background: #25d366; }
.btn-whatsapp:hover { background: #128c7e; }
.cta .btn + .btn { margin-left: 10px; }
footer p + p { margin-top: 14px; }

/* Outils de calcul */
.tools-grid .tool { position: relative; }
.tool-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.tool-ico { font-size: 2.2rem; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; background: var(--light); }
.tool-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); background: #e3f1f9; border-radius: 999px; padding: 5px 12px; }
.tool-io { margin-top: 16px; font-size: 0.9rem; display: grid; gap: 4px; }
.tool-io dt { font-weight: 700; color: var(--navy); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }
.tool-io dd { color: var(--muted); margin: 0; }
.tool-wide { margin-top: 32px; display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: start; background: linear-gradient(135deg, var(--navy), #163f66); color: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.tool-wide-ico { font-size: 2.6rem; width: 80px; height: 80px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,0.1); }
.tool-wide h3 { font-size: 1.5rem; margin-bottom: 10px; }
.tool-wide > div > p { opacity: 0.9; }
.tool-wide .eyebrow-left { color: var(--aqua); }
.tool-wide .tool-io dt { color: var(--white); }
.tool-wide .tool-io dd { color: #c9d6e2; }
.tool-wide .link-more { display: inline-block; color: var(--aqua); }
.tools-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .tool-wide { grid-template-columns: 1fr; } }
/* Menu à 5 entrées : pas de retour à la ligne */
.nav ul { gap: 20px; }
.nav ul a, .nav-right .btn { white-space: nowrap; }
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav ul {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--white); padding: 20px 16px; gap: 16px; border-bottom: 1px solid #e3edf3;
  }
  .nav ul.open { display: flex; }
  .nav .btn { display: none; }
  .nav ul a.active { border-bottom: none; }
}
.nav > .logo { flex-shrink: 0; }

/* Carrousel de photos (panneau Résidentiel) */
.carousel { position: relative; overflow: hidden; padding: 0; }
.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.carousel img.active { opacity: 1; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(13,37,64,.25); }
.carousel-dots button.active { background: #fff; }
