:root {
  --primary: #0a58ca;
  --primary-dark: #084298;
  --accent: #17a2b8;
  --sky: #e8f3ff;
  --dark: #0f1b2d;
  --slate: #4b5a6d;
  --muted: #6b7a90;
  --light: #f5f8fc;
  --white: #ffffff;
  --border: #e4ebf3;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary-dark);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 9999;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

.section {
  padding: 84px 0;
}

.section--alt {
  background: var(--light);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.15;
}

.brand:hover {
  color: var(--dark);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate);
}

.main-nav a:hover {
  background: var(--sky);
  color: var(--primary-dark);
}

.main-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--sky);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  font-size: 0.95rem;
}

.header-phone:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: #0f7d90;
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--ghost:hover {
  background: var(--primary);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--primary-dark);
}

.btn--light:hover {
  background: var(--sky);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--dark);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #071426 0%, #0a58ca 55%, #17a2b8 100%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 120px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 span {
  color: #8fd0ff;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  font-size: 0.95rem;
}

.hero-points li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-points svg {
  flex-shrink: 0;
  color: #7fd8ff;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-visual svg {
  width: 100%;
  max-width: 340px;
}

/* Trust bar */
.trust-bar {
  background: var(--dark);
  color: #fff;
  padding: 22px 0;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.trust-item svg {
  color: #7fd8ff;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 27, 45, 0.12);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.card .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  margin-top: 18px;
}

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media {
  background: linear-gradient(135deg, var(--sky), #dff1ff);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-media svg {
  max-width: 360px;
  width: 100%;
}

.split-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.split-content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  margin: 20px 0 28px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
}

.check-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq summary {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.testimonial .stars {
  color: #f5a623;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial p {
  color: var(--slate);
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  padding: 56px 48px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #cdd7e2;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #cdd7e2;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand p {
  font-size: 0.95rem;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.footer-contact svg {
  color: #7fd8ff;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.85rem;
  color: #8b98a8;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Page hero (interior) */
.page-hero {
  background: linear-gradient(135deg, #071426 0%, #0a58ca 60%, #17a2b8 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 0.9rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #aab5c3;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb li[aria-current="page"] {
  color: var(--dark);
  font-weight: 600;
}

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.devis-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  color: var(--dark);
  background: var(--light);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.15);
  background: #fff;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.required {
  color: #d92d20;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Info aside */
.info-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-list .info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-list strong {
  display: block;
  font-size: 0.95rem;
}

.info-list span,
.info-list a {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Map / area chips */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.area-chips span {
  background: var(--sky);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

/* Responsive */
@media (max-width: 1024px) {
  .cards,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
  }

  .main-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .header-phone {
    display: none;
  }

  .brand small {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .header-cta {
    gap: 8px;
  }

  .header-cta .btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .devis-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 84px;
  }

  .cards,
  .testimonials,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 28px;
  }

  .form-card {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .header-cta .btn {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .page-hero {
    padding: 52px 0;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }
}

/* ============================================================
   Modern showcase: media frames, before/after, gallery, cookies
   ============================================================ */

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(7, 20, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(1.5deg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  color: var(--dark);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-badge svg {
  color: #22b07d;
  flex-shrink: 0;
}

/* Card with image */
.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--media .card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky);
}

.card--media .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card--media:hover .card-img img {
  transform: scale(1.07);
}

.card--media .card-body {
  padding: 24px 26px 28px;
}

/* Before / After slider */
.ba {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 8 / 5;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background: var(--sky);
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba .ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.ba-label {
  position: absolute;
  top: 16px;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 27, 45, 0.72);
  color: #fff;
  backdrop-filter: blur(4px);
}

.ba-label--before {
  left: 16px;
}

.ba-label--after {
  right: 16px;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(15, 27, 45, 0.15);
}

.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 27, 45, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle::before {
  content: "⇔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.ba-item {
  display: grid;
  gap: 18px;
}

.ba-item .ba-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ba-item .ba-caption h3 {
  font-size: 1.1rem;
}

.ba-item .ba-caption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .ba-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.gallery figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 14px;
  background: linear-gradient(transparent, rgba(15, 27, 45, 0.88));
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.gallery figcaption small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 10000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.35);
  padding: 26px 28px;
  animation: cookieUp 0.45s ease both;
}

@keyframes cookieUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.cookie-banner__head .cookie-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-banner__head h2 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.cookie-banner__head p {
  margin: 0;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.cookie-banner a {
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner__actions .btn {
  padding: 10px 18px;
  font-size: 0.88rem;
  flex: 1 1 auto;
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--slate);
}

.btn--outline:hover {
  background: var(--light);
  color: var(--dark);
  transform: none;
}

.cookie-link {
  width: 100%;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, 0.55);
  backdrop-filter: blur(3px);
}

.cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.4);
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal__dialog h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.cookie-modal__dialog > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-of-type {
  border-bottom: 0;
}

.cookie-option__text {
  flex: 1;
}

.cookie-option__text strong {
  display: block;
  font-size: 0.95rem;
}

.cookie-option__text span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

/* Toggle switch */
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #cfd8e3;
  border-radius: 50px;
  transition: background 0.2s ease;
  pointer-events: none;
}

.switch .slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 27, 45, 0.3);
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.switch input:disabled + .slider {
  background: #a9b8c9;
  opacity: 0.7;
}

.switch input:disabled + .slider::before {
  transform: translateX(20px);
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cookie-modal__actions .btn {
  padding: 12px 18px;
  font-size: 0.9rem;
  flex: 1 1 auto;
}

/* Reopen settings button */
.cookie-reopen {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 27, 45, 0.35);
  transition: transform var(--transition);
}

.cookie-reopen:hover {
  transform: scale(1.08);
}

/* Reveal animation (uniquement lorsque JS est actif) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.footer-bottom .footer-legal {
  display: flex;
  gap: 16px;
}

.footer-bottom .footer-legal a {
  color: #8b98a8;
}

.footer-bottom .footer-legal a:hover {
  color: #fff;
}

/* Legal pages */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
  color: var(--dark);
}

.prose h3 {
  font-size: 1.12rem;
  margin: 26px 0 10px;
  color: var(--dark);
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
}

.prose a {
  font-weight: 600;
}

.prose .meta-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 20px 0;
}

.prose .meta-box p {
  margin-bottom: 6px;
}

.prose .meta-box strong {
  color: var(--dark);
}
