/* ============================================================
   PISCINES CONCEPTIONS — marque de SAS TP Conceptions
   Charte reprise de tpconceptions.fr (sand / anthracite / ambre)
   + accent bleu « eau » issu du logo Piscines Conceptions
   ============================================================ */
:root {
  --anthracite: #1a1d21;
  --sand: #f5f2ec;
  --paper: #ffffff;
  --ink: #14171a;
  --line: #e2ddd2;
  --amber: #e8a53a;
  --amber-deep: #c98718;
  --amber-glow: rgba(232, 165, 58, 0.12);
  --blue: #375496;
  --blue-deep: #24396b;
  --blue-glow: rgba(55, 84, 150, 0.10);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 26, .06), 0 1px 3px rgba(20, 23, 26, .05);
  --shadow: 0 4px 12px rgba(20, 23, 26, .08), 0 2px 6px rgba(20, 23, 26, .05);
  --shadow-lg: 0 20px 40px -12px rgba(20, 23, 26, .28);
  --ff-display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --ff-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
strong { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .01em;
  text-wrap: balance;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-size: 15px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; }
.section-head p { margin-top: 12px; color: #4a4f55; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--amber); }

/* Signature : arcs concentriques du logo, en filigrane */
.arcs { position: relative; overflow: hidden; }
.arcs::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side, transparent 62%, rgba(55,84,150,.05) 62% 66%, transparent 66% 74%,
      rgba(55,84,150,.05) 74% 78%, transparent 78% 86%, rgba(55,84,150,.05) 86% 90%, transparent 90%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-size: 19px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  padding: 13px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-primary { background: var(--amber); color: var(--anthracite); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(20,23,26,.18); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.92); color: var(--anthracite); }
.btn-dark { background: var(--anthracite); color: #fff; }
.btn-dark:hover { background: var(--blue-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--anthracite); }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-txt b { font-family: var(--ff-display); font-size: 24px; font-weight: 700; letter-spacing: .03em; }
.brand .brand-txt span { font-family: var(--ff-display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-deep); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--ff-display); font-size: 17px; font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding: 8px 9px; border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--blue-deep); }
.nav a.active { border-bottom-color: var(--amber); color: var(--anthracite); font-weight: 600; }
.nav a.nav-cta {
  background: var(--amber); color: var(--anthracite); font-weight: 700;
  border-radius: var(--radius); margin-left: 8px; padding: 10px 18px;
}
.nav a.nav-cta:hover { background: var(--amber-deep); color: #fff; }
.burger { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 18px; gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-bottom: 1px solid var(--sand); }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,23,26,.82) 0%, rgba(20,23,26,.55) 46%, rgba(20,23,26,.22) 100%);
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 110px 24px 96px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); text-transform: uppercase; max-width: 28ch; }
.hero-sub { margin-top: 18px; max-width: 640px; font-size: 17px; color: rgba(255,255,255,.92); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-display); font-size: 17px; letter-spacing: .05em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(3px);
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-wave { position: relative; height: 56px; background: var(--paper); }
.hero-wave svg { position: absolute; top: -54px; left: 0; width: 100%; height: 56px; display: block; }

/* ---------- Bands ---------- */
.band-sand { background: var(--sand); }
.band-dark { background: var(--anthracite); color: #fff; }
.band-dark .section-head p { color: rgba(255,255,255,.75); }
.band-blue { background: linear-gradient(160deg, var(--blue-deep), var(--blue)); color: #fff; }
.band-blue .section-head p { color: rgba(255,255,255,.8); }
.band-blue .eyebrow { color: var(--amber); }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); position: relative;
}
.card h3 { font-size: 23px; text-transform: uppercase; margin-bottom: 10px; }
.card p { color: #4a4f55; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-glow); color: var(--blue-deep); margin-bottom: 16px;
}
.card ul { list-style: none; margin: 12px 0 0; }
.card ul li { padding: 7px 0 7px 26px; position: relative; color: #3d4247; }
.card ul li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
}
.card .num {
  font-family: var(--ff-display); font-size: 44px; font-weight: 700; color: var(--amber);
  line-height: 1; margin-bottom: 8px; display: block;
}
.card.hi { border: 2px solid var(--amber); box-shadow: var(--shadow); }
.card .tag {
  position: absolute; top: -13px; left: 24px; background: var(--amber); color: var(--anthracite);
  font-family: var(--ff-display); font-weight: 700; font-size: 14px; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 22px 10px; }
.stat b { font-family: var(--ff-display); font-size: clamp(38px, 5vw, 56px); font-weight: 700; display: block; line-height: 1; }
.stat span { font-family: var(--ff-display); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* ---------- Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gal { grid-template-columns: 1fr; } }
.gal figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: 0;
  box-shadow: var(--shadow-sm); background: var(--anthracite);
}
.gal figure img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(20,23,26,.85)); color: #fff;
  font-family: var(--ff-display); font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Fiches modèles (catalogue) ---------- */
.model-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.model-card .ph { position: relative; }
.model-card .ph img { width: 100%; height: 210px; object-fit: cover; }
.model-card .ph .badge {
  position: absolute; top: 12px; left: 12px; background: var(--anthracite); color: #fff;
  font-family: var(--ff-display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.model-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.model-card h3 { font-size: 24px; text-transform: uppercase; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec td { padding: 6px 0; border-bottom: 1px dashed var(--line); color: #4a4f55; }
.spec td:last-child { text-align: right; color: var(--ink); font-weight: 600; }
.model-card .cta { margin-top: auto; padding-top: 8px; }
.pending { display: inline-block; font-size: 13px; color: var(--amber-deep); font-weight: 600; letter-spacing: .02em; }

/* ---------- Steps (installation) ---------- */
.steps { position: relative; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 62px 1fr; gap: 20px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.step .n {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 24px; font-weight: 700;
  background: var(--blue-glow); color: var(--blue-deep); border: 2px solid var(--blue);
}
.step h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 6px; }
.step p { color: #4a4f55; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 84px 0; }
.cta-band h2 { font-size: clamp(32px, 4.5vw, 52px); text-transform: uppercase; }
.cta-band p { margin: 14px auto 28px; max-width: 560px; opacity: .85; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-family: var(--ff-display); font-size: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 15px; background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #4a4f55; }
.consent input { width: 18px; height: 18px; margin-top: 3px; }

/* ---------- Info blocks ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }
.info-block { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 22px; }
.info-block h4 { color: var(--paper); margin-bottom: 10px; font-family: var(--ff-display); font-size: 20px; text-transform: uppercase; letter-spacing: .05em; }
.info-block p, .info-block a { color: rgba(255,255,255,.85); }

/* ---------- Page hero (intérieures) ---------- */
.page-hero { position: relative; color: #fff; }
.page-hero .hero-inner { padding: 84px 24px 64px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.crumb { font-family: var(--ff-display); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.crumb a { color: var(--amber); text-decoration: none; }

/* ---------- Footer ---------- */
.footer { background: var(--anthracite); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-family: var(--ff-display); font-size: 19px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer ul { list-style: none; }
.footer ul li { padding: 5px 0; }
.footer .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .brandline img { width: 56px; height: 56px; border-radius: 50%; }
.footer .brandline b { font-family: var(--ff-display); color: #fff; font-size: 22px; letter-spacing: .03em; }
.footer .marque { margin-top: 14px; display: inline-block; font-family: var(--ff-display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 26px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: none; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie p { font-size: 13.5px; color: #4a4f55; flex: 1 1 320px; margin: 0; }
.cookie a { color: var(--blue-deep); }
.cookie .btn { font-size: 15px; padding: 9px 16px; }

/* ---------- Reveal on scroll ---------- */
/* reveal desactive : le contenu doit toujours etre visible sans scroll ni JS */

/* ---------- Utilitaires ---------- */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.lead { font-size: 18px; color: #3d4247; }
.note { background: var(--amber-glow); border: 1px solid rgba(201,135,24,.35); border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; color: #6b4a10; }
.legal h2 { font-size: 26px; text-transform: uppercase; margin: 34px 0 10px; }
.legal p, .legal li { color: #4a4f55; }
.legal ul { padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.plain th { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .06em; }

/* Anti-chevauchement en-tête (écrans intermédiaires) */
@media (max-width: 1380px) {
  .header-inner { gap: 14px; }
  .brand .brand-txt span { display: none; }
  .brand .brand-txt b { font-size: 20px; }
  .nav a { font-size: 16px; padding: 8px 7px; }
}

/* Galerie 2 colonnes (teaser accueil) */
.gal-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .gal-2 { grid-template-columns: 1fr; } }

/* Catalogue fiches */
.gamme-title { font-size: clamp(26px,3vw,34px); text-transform: uppercase; margin: 44px 0 4px; color: var(--blue-deep); }
.gamme-desc { color: #4a4f55; margin-bottom: 18px; max-width: 720px; }
.model-card .ph img { height: 240px; }
.badge-mini { display:inline-block; background: var(--blue-glow); color: var(--blue-deep); font-family: var(--ff-display); font-size: 13px; font-weight: 600; letter-spacing:.06em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; margin: 0 4px 6px 0; }
.coloris { font-size: 13.5px; color: #4a4f55; }
.swatches { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.sw { display:flex; align-items:center; gap:8px; font-size:14px; color:#3d4247; }
.sw i { width:26px; height:26px; border-radius:50%; border:1px solid var(--line); display:inline-block; }
