/* =========================================================
   SEAVIEW TRAVAUX – Stylesheet
   Site one page – sobre, lumineux, premium accessible
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --primary-blue: #1f6fb2;       /* bleu logo */
  --primary-blue-dark: #185a92;
  --secondary-blue: #5fb3e4;     /* vague claire */
  --accent-bronze: #b8865b;      /* lignes décoratives */
  --accent-bronze-soft: #d8b48a;

  --text-dark: #1f2933;
  --text-muted: #5a6573;
  --bg-light: #f7fafd;
  --bg-tinted: #eef5fb;
  --white: #ffffff;
  --border: #e6ecf2;

  --shadow-sm: 0 2px 8px rgba(31, 111, 178, 0.06);
  --shadow-md: 0 12px 30px rgba(31, 111, 178, 0.10);
  --shadow-lg: 0 20px 50px rgba(31, 111, 178, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1180px;
  --transition: 0.3s ease;
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-blue-dark); }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 111, 178, 0.25);
}
.btn-primary:hover {
  background: var(--primary-blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 111, 178, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}
.btn-ghost:hover {
  background: var(--primary-blue);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-weight: 700;
}
.logo-link:hover { color: var(--text-dark); }
.logo { height: 40px; width: auto; }
.logo-text {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--primary-blue);
  font-weight: 800;
}
.logo-text span {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85em;
  margin-left: 4px;
}

.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list a:not(.btn) {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-list a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary-blue);
  transition: width var(--transition);
}
.nav-list a:not(.btn):hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(ellipse at top right, rgba(95, 179, 228, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(31, 111, 178, 0.08);
  color: var(--primary-blue);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(31, 111, 178, 0.15);
}
.hero h1 .accent { color: var(--primary-blue); }
.lead {
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.reassurance li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.reassurance .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary-blue);
}

/* Hero visual – cadre inspiré du flyer (lignes bronze) */
.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  padding: 22px;
}
.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 70px; height: 70px;
  border: 1.5px solid var(--accent-bronze);
}
.hero-frame::before {
  top: 0; left: 0;
  border-right: 0; border-bottom: 0;
}
.hero-frame::after {
  bottom: 0; right: 0;
  border-left: 0; border-top: 0;
}
.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--bg-tinted);
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-wrap.placeholder {
  background: linear-gradient(135deg, var(--bg-tinted), var(--bg-light));
  position: relative;
}
.hero-image-wrap.placeholder::after {
  content: 'Image rénovation';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-blue);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ---------- Sections génériques ---------- */
.section { padding: 100px 0; }
.section.services { background: var(--bg-light); }
.section.process { background: var(--bg-light); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-head.left { text-align: left; margin: 0 0 40px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bronze);
  margin-bottom: 14px;
}
.divider {
  width: 60px; height: 2px;
  background: var(--accent-bronze);
  margin: 18px auto 0;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  background: var(--accent-bronze);
  border-radius: 50%;
  transform: translateY(-50%);
}
.divider::before { left: -12px; }
.divider::after { right: -12px; }
.divider.left { margin-left: 0; }
.divider.left::before { left: -12px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  padding: 32px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bronze-soft), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 111, 178, 0.2);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tinted);
  color: var(--primary-blue);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { color: var(--text-dark); margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin: 0; }

/* ---------- Showcase / Galerie ---------- */
.section.showcase { background: var(--white); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.showcase-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--text-dark);
  margin: 0;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  isolation: isolate;
}
.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.showcase-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: brightness(0.95);
}
.showcase-card:hover .showcase-image img {
  transform: scale(1.05);
}
.showcase-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(31, 111, 178, 0.15) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.45) 75%,
    rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}
.showcase-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 26px;
  color: var(--white);
  z-index: 1;
}
.showcase-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--white);
}
.showcase-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.showcase-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}
/* Coins bronze sur les cartes showcase */
.showcase-card::before,
.showcase-card::after {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent-bronze-soft);
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition);
}
.showcase-card::before {
  top: 14px; left: 14px;
  border-right: 0; border-bottom: 0;
}
.showcase-card::after {
  bottom: 14px; right: 14px;
  border-left: 0; border-top: 0;
}
.showcase-card:hover::before,
.showcase-card:hover::after {
  opacity: 1;
}

/* ---------- Pourquoi nous ---------- */
.section.why { background: var(--bg-light); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.why-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.why-icon {
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-tinted);
  border: 1.5px solid var(--secondary-blue);
  color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: 700;
}
.why-card h3 { margin-bottom: 8px; }
.why-card p { font-size: 0.93rem; margin: 0; }

.why-quote {
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary-blue);
  max-width: 720px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.6;
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step {
  background: var(--white);
  padding: 32px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bronze);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.93rem; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse at bottom left, rgba(95, 179, 228, 0.10), transparent 60%),
    var(--white);
}
.contact-inner {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 60px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.contact-inner::before,
.contact-inner::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border: 1.5px solid var(--accent-bronze);
}
.contact-inner::before {
  top: 18px; left: 18px;
  border-right: 0; border-bottom: 0;
}
.contact-inner::after {
  bottom: 18px; right: 18px;
  border-left: 0; border-top: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 36px 0;
}
.contact-card {
  background: var(--white);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
}
a.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-blue);
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bronze);
  font-weight: 600;
}
.contact-value {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
}
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 50px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand .logo {
  height: 44px;
  background: var(--white);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}
.footer-brand span {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary-blue);
}
.footer-nav {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
  justify-content: center;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--white); }
.copyright {
  text-align: right;
  font-size: 0.82rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Animations reveal ---------- */
/* Activé uniquement si JS ajoute la classe js-ready au <html> */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 130px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
  .contact-inner { padding: 40px 28px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .copyright { text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }

  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid .showcase-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .burger { display: flex; }
  .nav-list {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list a:not(.btn) { font-size: 1rem; }
  .nav-list .btn { width: 100%; }

  .hero { padding: 120px 0 60px; }
  .hero-cta .btn { flex: 1; min-width: 140px; }
  .reassurance { gap: 14px; }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 44px; }

  .showcase-grid { grid-template-columns: 1fr; gap: 22px; }
  .showcase-grid .showcase-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  .showcase-image { aspect-ratio: 4 / 5; }

  .contact-inner { padding: 32px 20px; }
  .contact-cta .btn { width: 100%; }

  .hero-frame::before, .hero-frame::after { width: 50px; height: 50px; }
}

@media (max-width: 420px) {
  .logo-text span { display: none; }
  .header-inner { height: 68px; }
  .nav-list { top: 68px; }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
