/* ============================================================
   C&S Project — Plomberie & Rénovation
   Design system
   ============================================================ */

:root {
  /* Brand — d'après le logo C&S Project (navy / orange / bleu clair) */
  --blue-900: #0f2350;   /* navy profond (fond logo) */
  --blue-800: #163066;
  --blue-700: #1d3f86;
  --blue-600: #1f8fd0;   /* bleu primaire */
  --blue-500: #29abe2;   /* bleu clair du logo */
  --blue-400: #5cc0ec;
  --blue-100: #e2f2fb;
  --blue-50:  #f2f9fe;

  --accent-600: #e07d15;
  --accent-500: #f7941d;  /* orange flamme du logo */
  --accent-100: #fdeed7;

  --ink-900: #10202e;
  --ink-700: #33475b;
  --ink-500: #5c6f80;
  --ink-300: #9fb0bd;

  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;

  --ok: #1f9d5a;
  --urgent: #d8362a;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(16,32,46,.06), 0 2px 8px rgba(16,32,46,.05);
  --shadow: 0 10px 30px rgba(16,32,46,.10);
  --shadow-lg: 0 26px 60px rgba(16,32,46,.18);

  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: .8rem;
}
.center { text-align: center; }
.muted { color: var(--ink-500); }
section { padding: 78px 0; }
.section-tight { padding: 52px 0; }
.lead { font-size: 1.15rem; color: var(--ink-500); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; padding: .85rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(31,143,208,.35); }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-accent { background: var(--accent-500); color: #fff; box-shadow: 0 8px 20px rgba(247,148,29,.35); }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-700); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.topbar {
  background: var(--blue-900); color: #cfe2f2; font-size: .88rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-left { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .garde-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 3px rgba(53,208,127,.25); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--ink-900); font-size: 1.32rem; letter-spacing: -.02em; }
.brand .logo-img { height: 46px; width: auto; }
.brand .logo-lockup { height: 52px; width: auto; max-width: 250px; }
.brand .brand-txt { font-weight: 900; font-size: 1.5rem; color: var(--blue-800); letter-spacing: -.02em; }
@media (max-width: 420px) { .brand .logo-lockup { height: 44px; max-width: 180px; } }
.brand .brand-fallback {
  display: inline-grid; place-items: center; height: 46px; min-width: 46px; padding: 0 10px;
  background: var(--blue-600); color: #fff; border-radius: 11px; font-weight: 900; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-700); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink-900); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: radial-gradient(circle at 80% 20%, #fff 0, transparent 42%),
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-width='.5' opacity='.25'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 84px 0 92px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--accent-500); }
.hero p.lead { color: #d7e7f5; font-size: 1.22rem; max-width: 540px; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-badge { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: #cfe2f2; font-weight: 600; }
.hero-badge svg { flex: 0 0 auto; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.hero-media .float-card {
  position: absolute; left: -26px; bottom: 34px; background: #fff; color: var(--ink-900);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: .8rem; align-items: center;
}
.hero-media .float-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; }
.hero-media .float-card b { display: block; font-size: 1.05rem; }
.hero-media .float-card span { font-size: .82rem; color: var(--ink-500); }

/* ---------- Trust strip ---------- */
.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 26px 22px; }
.trust-item { display: flex; align-items: center; gap: .75rem; }
.trust-item .n { font-size: 1.7rem; font-weight: 900; color: var(--blue-700); line-height: 1; }
.trust-item .t { font-size: .92rem; color: var(--ink-500); font-weight: 600; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--blue-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card .ic-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .97rem; color: var(--ink-500); margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-weight: 700; color: var(--blue-600); display: inline-flex; align-items: center; gap: .4rem; }
.card .card-link:hover { gap: .65rem; }

/* icon service card (no photo) */
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .25s, border-color .2s;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.svc .ic-badge { margin-bottom: 16px; }
.svc h3 { font-size: 1.18rem; }
.svc p { font-size: .96rem; color: var(--ink-500); margin: 0; }

/* ---------- Garde / urgent CTA band ---------- */
.garde {
  background: linear-gradient(115deg, var(--blue-900), var(--blue-700));
  color: #fff; border-radius: var(--radius-lg); padding: 46px; position: relative; overflow: hidden;
}
.garde::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(244,124,60,.45), transparent 70%);
}
.garde-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.garde h2 { color: #fff; margin-bottom: .3rem; }
.garde .pill { display: inline-flex; align-items: center; gap: .5rem; background: rgba(53,208,127,.18); color: #b8f5d3; border: 1px solid rgba(53,208,127,.4); padding: .4rem .9rem; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 1rem; }
.garde .pill .garde-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; animation: pulse 1.8s infinite; }
.garde p { color: #d7e7f5; max-width: 520px; margin: 0; }
.garde-actions { display: flex; flex-direction: column; gap: .7rem; }
.garde .phone-xl { font-size: 1.9rem; font-weight: 900; color: #fff; display: inline-flex; align-items: center; gap: .6rem; }
.garde .phone-xl:hover { color: var(--accent-500); }

/* ---------- Zones ---------- */
.zones-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.zone-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem;
  font-weight: 700; color: var(--blue-700); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: .5rem;
}
.zone-chip:hover { border-color: var(--blue-400); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step .num { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-600); color: #fff; font-weight: 900; font-size: 1.3rem; display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(31,143,208,.35); }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .95rem; color: var(--ink-500); margin: 0; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: .6rem; }
.quote p { font-size: 1.02rem; color: var(--ink-700); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-weight: 800; }
.quote .who b { display: block; font-size: .95rem; color: var(--ink-900); }
.quote .who span { font-size: .82rem; color: var(--ink-500); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; font-weight: 600; color: var(--ink-700); }
.check-list li svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- Devis / form ---------- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--ink-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink-900); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,143,208,.18); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-500); margin-top: .6rem; }
.form-ok { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-800); padding: 14px; border-radius: var(--radius-sm); font-weight: 600; display: none; margin-bottom: 16px; }

/* contact info blocks */
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.info-card .ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; }
.info-card b { display: block; color: var(--ink-900); }
.info-card a, .info-card span { color: var(--ink-500); }

/* ---------- Blog ---------- */
.post-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .88rem; color: var(--ink-500); margin-bottom: 1rem; }
.breadcrumb a { color: var(--blue-600); font-weight: 600; }
.post-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-500); margin-top: 1rem; }
.post-meta .tag { background: var(--accent-100); color: var(--accent-600); padding: .25rem .8rem; border-radius: 999px; font-weight: 700; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article ul li { margin-bottom: .5rem; }
.article .callout {
  background: var(--blue-50); border-left: 4px solid var(--blue-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 1.6rem 0; color: var(--ink-700);
}
.article .callout.urgent { background: #fff2f1; border-left-color: var(--urgent); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-item summary { padding: 16px 20px; font-weight: 700; color: var(--ink-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--blue-600); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 20px 16px; color: var(--ink-500); }

.mini-cta { background: linear-gradient(115deg, var(--accent-600), var(--accent-500)); color: #fff; border-radius: var(--radius); padding: 26px; text-align: center; margin: 2rem 0; }
.mini-cta h3 { color: #fff; }
.mini-cta p { color: #ffe6d8; }

.post-card { display: flex; flex-direction: column; }
.post-card .card-media { aspect-ratio: 16/9; }
.post-card .cat { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .4rem; }
.post-card h3 { font-size: 1.12rem; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; color: var(--ink-700); cursor: pointer; font-size: .92rem; }
.filter-chip.active, .filter-chip:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9cee0; padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.4rem; }
.site-footer a { color: #b9cee0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand small { color: var(--blue-400); }
.footer-brand p { color: #8fb0cc; font-size: .95rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #7f9fbd; }

/* ---------- Floating mobile call ---------- */
.float-call { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: none; }
.float-call a { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-500); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 56px 0 64px; }
  .hero-media { max-width: 440px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .trust .container { grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 18px 22px; gap: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .garde { padding: 32px 24px; }
  .garde-inner { flex-direction: column; align-items: flex-start; }
  .topbar .tb-left .tb-hide { display: none; }
  .float-call { display: block; }
  .hero-media .float-card { left: 10px; }
}
