:root {
  --primary: #00a8cc;
  --primary-dark: #0083a0;
  --accent: #ffd166;
  --bg: #f5fbff;
  --text: #123047;
  --muted: #6c7a89;
  --card-bg: #ffffff;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(245, 251, 255, 0.98), rgba(245, 251, 255, 0.9));
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #00a8cc);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.25);
  position: relative;
  overflow: hidden;
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: 45% -40% -10%;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(-8deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-phone span {
  font-weight: 600;
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  gap: 0.4rem;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 168, 204, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 168, 204, 0.4);
}

.btn-outline {
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--primary-dark);
  background: #fff;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Layout sections */

main {
  padding-bottom: 3rem;
}

section {
  padding: 4rem 0;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  margin-bottom: 0.75rem;
}

p.section-intro {
  max-width: 560px;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Hero */

.hero {
  padding: 4rem 0 4.5rem;
  background: radial-gradient(circle at top left, #e0f7ff, transparent 55%), radial-gradient(circle at 120% 10%, #d1f4ff, transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Cards & grids */

.card {
  background: var(--card-bg);
  border-radius: 1.4rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.service-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(0, 168, 204, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.service-title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.service-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--muted);
}

/* Gallery simple */

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.gallery-item {
  border-radius: 1.4rem;
  background: linear-gradient(145deg, #00a8cc, #5ce1e6);
  position: relative;
  min-height: 180px;
  overflow: hidden;
}

.gallery-item::after {
  content: "Photo projet Azure-Piscine";
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

form {
  display: grid;
  gap: 0.9rem;
  font-size: 0.9rem;
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.15rem;
}

input, textarea, select {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 168, 204, 0.4);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-aside {
  font-size: 0.9rem;
  color: var(--muted);
  display: grid;
  gap: 0.9rem;
}

.contact-item-title {
  font-weight: 600;
  color: var(--text);
}

/* Footer */

footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.8rem 0 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f3f8fb;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 60px 0 auto 0;
    background: rgba(245, 251, 255, 0.98);
    backdrop-filter: blur(18px);
    padding: 0.8rem 1.4rem 1rem;
    flex-direction: column;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
