/* Ozalis Piscines — DA : turquoise lagon, bleu profond, soleil */
:root {
  --deep: #04364A;
  --deep-2: #0A4D66;
  --aqua: #19B4C9;
  --aqua-soft: #E6F8FB;
  --sun: #FFC857;
  --sun-d: #F5B42E;
  --ink: #0D2733;
  --muted: #557080;
  --line: #D6EBF0;
  --white: #fff;
  --r: 20px;
  --shadow: 0 18px 50px -20px rgba(4, 54, 74, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Outfit", system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.soft { background: var(--aqua-soft); }
.head { max-width: 640px; margin-bottom: 48px; }
.head p:last-child { color: var(--muted); font-size: 1.1rem; }
.eyebrow { font-size: .95rem; font-weight: 500; color: var(--sun); margin-bottom: 1rem; }
.eyebrow.dark { color: #0E7F8F; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: background-color .15s cubic-bezier(.22,1,.36,1), color .15s cubic-bezier(.22,1,.36,1), border-color .15s cubic-bezier(.22,1,.36,1), transform .12s cubic-bezier(.22,1,.36,1); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-sun { background: var(--sun); color: var(--deep); }
.btn-sun:hover { background: var(--sun-d); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-line { border-color: var(--aqua); color: var(--deep); }
.btn-line:hover { background: var(--aqua); color: #fff; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 600; font-size: 1.35rem; color: var(--deep); }
.logo svg { width: 40px; height: 40px; }
.logo small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--aqua); margin-top: -4px; }
.logo span { line-height: 1.1; }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); position: relative; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--deep); transition: transform .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,54,74,.88) 0%, rgba(4,54,74,.55) 45%, rgba(4,54,74,.1) 100%); }
.hero-in { position: relative; padding: 80px 0 140px; }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); font-weight: 600; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: #8BE9F5; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 560px; color: rgba(255,255,255,.88); font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.hero-trust b { color: var(--sun); font-size: 1.2rem; margin-right: .25rem; }
.waves { position: absolute; left: 0; bottom: -1px; width: 200%; height: 90px; }
.waves path { fill: #fff; }
.waves .w1 { opacity: .35; animation: wave 14s linear infinite; }
.waves .w2 { animation: wave 9s linear infinite reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .18s cubic-bezier(.22,1,.36,1); }
.svc:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.svc img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.svc-b { padding: 22px 24px 28px; }
.svc-b p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: .85rem; font-weight: 500; color: #0E7F8F; background: var(--aqua-soft); padding: .25rem .7rem; border-radius: 999px; margin-bottom: .8rem; }

/* Simulateur */
.sim-sec { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: #fff; position: relative; overflow: hidden; }
.sim-sec::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(25,180,201,.35), transparent 65%); }
.sim-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.sim-intro p { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.sim { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.sim fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.sim legend { font-weight: 600; margin-bottom: .8rem; font-size: 1.05rem; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.types label { cursor: pointer; }
.types input { position: absolute; opacity: 0; }
.types span { display: block; padding: 14px; border: 2px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s; height: 100%; }
.types b { display: block; }
.types small { color: var(--muted); font-size: .82rem; }
.types input:checked + span { border-color: var(--aqua); background: var(--aqua-soft); }
.types input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.range { margin-bottom: 14px; }
.range label { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: .3rem; }
.range output { font-weight: 600; color: var(--deep); margin-left: auto; margin-right: .25rem; }
input[type=range] { width: 100%; accent-color: var(--aqua); height: 28px; }
.pool-preview { height: 130px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f3f7f8 0 10px, #eef4f5 10px 20px); border-radius: 14px; margin-top: 8px; }
.pool-shape { background: linear-gradient(135deg, #5fd3e2, var(--aqua) 60%, #0e8ea0); border: 5px solid #f2e8d5; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .85rem; transition: width .35s, height .35s, border-radius .35s; box-shadow: inset 0 0 20px rgba(255,255,255,.35); }
.opts { display: grid; gap: 8px; }
.opts label { display: flex; align-items: center; gap: .6rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .2s; }
.opts label:hover { background: var(--aqua-soft); }
.opts input { width: 18px; height: 18px; accent-color: var(--aqua); }
.opts i { margin-left: auto; font-style: normal; color: var(--muted); font-size: .9rem; }
.sim-result { background: var(--deep); color: #fff; border-radius: 18px; padding: 22px; text-align: center; }
.sim-result p { margin: 0; opacity: .75; font-size: .95rem; }
.sim-result strong { display: block; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .2rem 0 .4rem; color: var(--sun); font-variant-numeric: tabular-nums; }
.sim-result small { display: block; opacity: .7; margin-bottom: 1rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: .6rem .9rem; border-radius: 12px; background: rgba(4,54,74,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .85rem; transform: translateY(8px); opacity: .92; transition: transform .35s, opacity .35s; }
.gallery figure:hover figcaption { transform: none; opacity: 1; }

/* Contrats */
.deep { background: var(--deep); color: #fff; }
.deep .head p:last-child { color: rgba(255,255,255,.75); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; transition: transform .3s, background .3s; }
.plan:hover { background: rgba(255,255,255,.1); }
.plan-hot { background: #fff; color: var(--ink); border: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.plan-hot:hover { background: #fff; }
.ribbon { position: absolute; top: -13px; left: 28px; background: var(--sun); color: var(--deep); font-size: .78rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; }
.price { font-size: 1rem; opacity: .85; }
.price b { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: .55rem; flex: 1; }
.plan li { padding-left: 1.5rem; position: relative; }
.plan li::before { content: "~"; position: absolute; left: 0; color: var(--aqua); font-weight: 600; }
.plan .btn-line { color: #fff; border-color: rgba(255,255,255,.5); }
.plan .btn-line:hover { background: #fff; color: var(--deep); }

/* Histoire */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.story-img { position: relative; }
.story-img img { border-radius: 28px; aspect-ratio: 9/11; object-fit: cover; width: 100%; }
.story-badge { position: absolute; right: -20px; bottom: 40px; background: var(--sun); color: var(--deep); padding: 18px 22px; border-radius: 18px; box-shadow: var(--shadow); }
.story-badge b { display: block; font-size: 2rem; font-weight: 600; line-height: 1; }
.story-badge span { font-size: .85rem; font-weight: 500; }
.story-txt > p { color: var(--muted); font-size: 1.05rem; }
.story-txt b { color: var(--ink); }
.quotes { display: grid; gap: 16px; margin-top: 28px; }
blockquote { margin: 0; padding: 20px 22px; background: var(--aqua-soft); border-radius: 18px; border-left: 4px solid var(--aqua); }
blockquote p { margin: 0 0 .8rem; font-size: 1.02rem; }
blockquote footer { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--muted); }
blockquote footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
blockquote footer b { display: block; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; }
details { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 0 22px; transition: box-shadow .3s; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--aqua); transition: transform .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact-sec { background: linear-gradient(180deg, #fff 0%, var(--aqua-soft) 100%); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .eyebrow { color: #0E7F8F; }
.contact-info > p { color: var(--muted); font-size: 1.08rem; }
.coords { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.coords li { display: grid; gap: .1rem; }
.coords span { font-size: .9rem; color: #0E7F8F; font-weight: 500; }
.coords a { font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.form { background: #fff; padding: clamp(22px, 4vw, 36px); border-radius: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; position: relative; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.form input:not([type=checkbox]), .form select, .form textarea { font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfeff; color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(25,180,201,.15); }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; }
.form .consent input { margin-top: .25rem; accent-color: var(--aqua); }

/* Footer + bouton d'appel */
.foot { background: var(--deep); color: rgba(255,255,255,.7); padding: 28px 0; font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }
.foot a { color: #fff; }
.call-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--sun); box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); place-items: center; }
.call-fab svg { width: 26px; height: 26px; fill: var(--deep); }

/* Responsive */
@media (max-width: 980px) {
  .services, .plans { grid-template-columns: 1fr; max-width: 560px; }
  .sim-grid, .story, .contact { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .story-badge { right: 16px; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; }
  .nav { position: sticky; }
  .types { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery .g-big { grid-column: auto; grid-row: span 1; }
  .call-fab { display: grid; }
  .hero-in { padding: 64px 0 120px; }
}
