/* ============================================================
   EURL COUTANT Charles — feuille de style
   DA conservée : bleu #0089C4 / navy #111827 / blanc
   ============================================================ */

:root {
  --blue: #0089c4;
  --blue-dark: #066e9e;
  --blue-pale: #e6f4fb;
  --navy: #111827;
  --navy-soft: #1f2937;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-alt: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, .06);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, .08);
  --shadow-lg: 0 20px 50px rgba(8, 137, 196, .18);
  --container: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .2px;
  border: none; border-radius: 999px; cursor: pointer;
  padding: 14px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  text-transform: uppercase; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(8, 137, 196, .28); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8, 137, 196, .38); }
.btn--lg { padding: 17px 36px; font-size: 16px; }
.btn--sm { padding: 11px 22px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; }
.brand__name { font-size: 19px; font-weight: 500; color: var(--navy); letter-spacing: -.2px; }
.brand__name strong { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  font-size: 14.5px; font-weight: 500; color: #374151;
  padding: 8px 12px; border-radius: 8px; position: relative;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--blue); background: var(--blue-pale); }

.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--blue-pale);
  transition: background .2s, border-color .2s;
}
.header__phone:hover { background: var(--blue-pale); border-color: var(--blue); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 13px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav__phone { color: var(--blue); font-weight: 700; }
.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: url('assets/hero-pac.jpg') center/cover no-repeat;
  text-align: center; color: #fff; overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, .62) 0%, rgba(17, 24, 39, .52) 50%, rgba(8, 137, 196, .42) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 880px; padding-top: 40px; padding-bottom: 40px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, .82); margin-bottom: 22px;
}
.hero__title { font-size: clamp(34px, 6vw, 62px); font-weight: 900; line-height: 1.05; letter-spacing: -1px; }
.hero__title .accent { color: #4db8e8; }
.hero__subtitle { text-transform: uppercase; font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; margin-top: 18px; letter-spacing: .5px; }
.hero__tagline { font-size: 17px; color: rgba(255, 255, 255, .85); margin-top: 14px; font-style: italic; }
.hero__content .btn { margin-top: 34px; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255, 255, 255, .85); animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; text-align: center; letter-spacing: -.5px; color: var(--navy); }
.section__lead { text-align: center; color: var(--muted); max-width: 640px; margin: 16px auto 0; font-size: 17px; }

/* ---------- Avantages cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 30px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d6e9f5; }
.card__icon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--blue-pale); display: grid; place-items: center; color: var(--blue);
}
.card__icon svg { width: 32px; height: 32px; }
.card__title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 15.5px; }

/* ---------- Solutions grid ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.solution {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  scroll-margin-top: 100px;
}
.solution:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.solution__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue), #4db8e8); color: #fff;
  display: grid; place-items: center;
}
.solution__icon svg { width: 28px; height: 28px; }
.solution h3 { font-size: 18.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.solution p { color: var(--muted); font-size: 15px; }
.solution--cta { background: linear-gradient(135deg, #0a3a52, var(--navy)); color: #fff; }
.solution--cta h3 { color: #fff; }
.solution--cta p { color: rgba(255, 255, 255, .8); margin-bottom: 18px; }
.solution--cta .solution__icon { background: rgba(255, 255, 255, .12); }

/* ---------- Certifications ---------- */
.certifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.certif {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.certif:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.certif__badge {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 22px;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(8, 137, 196, .3);
}
.certif h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.certif p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.section--cta { background: var(--bg-alt); }
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; margin-top: 48px; align-items: start; }
.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: #374151; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 137, 196, .14);
}
.form textarea { resize: vertical; }
.form__submit { margin-top: 6px; }
.form__status { font-size: 14px; font-weight: 600; min-height: 20px; }
.form__status.ok { color: #047857; }
.form__status.err { color: #b91c1c; }

.contact__aside {
  background: linear-gradient(135deg, #0a3a52, var(--navy)); color: #fff;
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md);
}
.contact__aside h3 { font-size: 20px; margin-bottom: 22px; }
.contact__item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .92); }
a.contact__item:hover { color: #fff; }
.contact__ico { font-size: 18px; }
.contact__note { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cbd5e1; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer .brand__name { color: #fff; }
.footer__about { margin-top: 18px; font-size: 14.5px; color: #94a3b8; max-width: 280px; }
.footer__social { display: flex; gap: 14px; margin-top: 20px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: #cbd5e1; transition: background .2s, color .2s, transform .2s; }
.footer__social a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: #94a3b8; font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: var(--blue); }
.newsletter { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.newsletter input { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fff; font-family: inherit; font-size: 14.5px; }
.newsletter input::placeholder { color: #64748b; }
.newsletter input:focus { outline: none; border-color: var(--blue); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #64748b; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--blue); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .header__inner { gap: 12px; }
  .brand__name { font-size: 17px; }
  .cards, .solutions, .certifs { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .cards, .solutions, .certifs { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .hero { min-height: 92vh; }
}

/* ============================================================
   PAGES INTERNES (services + qui-sommes-nous)
   ============================================================ */

/* Hero de page interne : aligné à gauche, plus compact */
.hero--service { min-height: 70vh; text-align: left; }
.hero--service .hero__content { max-width: var(--container); margin: 0 auto; width: 100%; padding: 0 24px; }
.hero--service .hero__title { font-size: clamp(32px, 5vw, 54px); }
.hero--service .hero__lead { font-size: 18px; color: rgba(255,255,255,.9); max-width: 580px; margin-top: 16px; }
.hero--service .btn { margin-top: 30px; }
.hero--service .hero__overlay { background: linear-gradient(90deg, rgba(17,24,39,.78) 0%, rgba(17,24,39,.55) 60%, rgba(8,137,196,.35) 100%); }

/* "Nos systèmes de…" : blocs avec liste à puces check */
.systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 48px; }
.system { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.system:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.system h3 { font-size: 21px; color: var(--navy); margin-bottom: 6px; }
.system > p { color: var(--muted); margin-bottom: 18px; }
.system__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.system__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: #374151; }
.system__list li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230089c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* "Financement et Aides" : 4 cartes */
.aids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.aid { text-align: center; padding: 30px 22px; border-radius: var(--radius); background: linear-gradient(160deg, #fff, var(--blue-pale)); border: 1px solid #d6e9f5; transition: transform .3s var(--ease); }
.aid:hover { transform: translateY(-5px); }
.aid__amount { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.aid h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.aid p { font-size: 14px; color: var(--muted); }

/* Deux colonnes "problèmes / bénéfices" (adoucisseurs, vmc) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.split__col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.split__col h3 { font-size: 19px; color: var(--navy); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--blue-pale); }
.split__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.split__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: #374151; }
.split__list li::before { content: "•"; color: var(--blue); font-weight: 800; font-size: 18px; line-height: 1.1; }

/* Bandeau CTA final sombre */
.cta-band { background: linear-gradient(135deg, #0a3a52, var(--navy)); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 14px auto 28px; font-size: 17px; }

/* Page Qui sommes-nous : intro certifs + identité + valeurs */
.certif-hero { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.certif-hero img { height: 90px; width: auto; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-sm); }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; margin-top: 8px; }
.about__text p { color: #374151; margin-bottom: 16px; font-size: 15.5px; }
.about__img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.value { text-align: center; padding: 30px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value__icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue-pale); color: var(--blue); display: grid; place-items: center; }
.value__icon svg { width: 28px; height: 28px; }
.value h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.value p { font-size: 14.5px; color: var(--muted); }

@media (max-width: 900px) {
  .aids { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .aids, .values, .split { grid-template-columns: 1fr; }
  .hero--service { min-height: 60vh; }
}
