:root {
  --blue: #284b74;
  --blue-light: #3a6a9c;
  --beige: #ebe1d1;
  --beige-dark: #d9cbb8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Futura PT', 'Century Gothic', sans-serif;
  background-color: var(--beige);
  color: var(--blue);
  -webkit-font-smoothing: antialiased;
}

::selection { background-color: var(--blue); color: var(--beige); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: rgba(235, 225, 209, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(40,75,116,0.10);
  transition: box-shadow 0.3s;
  overflow: visible;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo img {
  height: 220px;
  width: auto;
  cursor: pointer;
}

/* Desktop nav */
nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s;
  padding: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background-color: var(--blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--blue);
  color: var(--beige);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

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

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  padding: 0.25rem;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(235,225,209,0.97);
  backdrop-filter: blur(10px);
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.2rem;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(40,75,116,0.12);
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 0.4rem 0;
}

.mobile-nav .btn-primary { width: 100%; text-align: center; margin-top: 0.5rem; }

/* ===== HERO ===== */
#hero {
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-dark) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
}

#hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23284b74' fill-opacity='0.08' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-text h2 span { display: block; margin-top: 0.3rem; }

.hero-text p {
  font-size: 1.1rem;
  color: rgba(40,75,116,0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.phone-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  transition: color 0.2s;
}

.phone-link:hover { color: var(--blue-light); }

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.hero-img-box {
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  border-radius: 2rem;
  background: rgba(40,75,116,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-box img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: white;
  border-radius: 1rem;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 8px 32px rgba(40,75,116,0.16);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(40,75,116,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.badge-card p { font-weight: 700; color: var(--blue); line-height: 1.3; font-size: 0.9rem; }
.badge-card span { font-size: 0.75rem; color: rgba(40,75,116,0.5); }

/* ===== SECTIONS COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue);
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background-color: var(--blue);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: rgba(40,75,116,0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SERVICES ===== */
#services {
  padding: 5rem 0;
  background: var(--beige);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: rgba(255,255,255,0.85);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(40,75,116,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(40,75,116,0.15);
}

.service-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(40,75,116,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background 0.3s, transform 0.3s;
}

.service-card:hover .service-icon {
  background: var(--blue);
  transform: scale(1.1);
}

.service-card:hover .service-icon svg { color: var(--beige); }

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1rem;
}

.service-card > p {
  color: rgba(40,75,116,0.65);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.feature-list { text-align: left; }

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(40,75,116,0.75);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ===== ZONE ===== */
#zone {
  padding: 5rem 0;
  background: var(--blue);
}

.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.zone-text h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--beige);
  margin-bottom: 1.2rem;
}

.zone-text > p {
  font-size: 1.05rem;
  color: rgba(235,225,209,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.zone-communes {
  background: rgba(235,225,209,0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.zone-communes h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zone-communes p {
  color: rgba(235,225,209,0.75);
  line-height: 1.7;
  font-size: 0.95rem;
}

.zone-phone {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.zone-phone-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(235,225,209,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.zone-phone small {
  display: block;
  font-size: 0.8rem;
  color: rgba(235,225,209,0.55);
  margin-bottom: 0.1rem;
}

.zone-phone a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--beige);
  transition: color 0.2s;
}

.zone-phone a:hover { color: white; }

.zone-map {
  background: rgba(235,225,209,0.08);
  border: 2px dashed rgba(235,225,209,0.25);
  border-radius: 1.5rem;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}

.zone-map p { color: rgba(235,225,209,0.6); font-weight: 600; }
.zone-map span { color: rgba(235,225,209,0.4); font-size: 0.85rem; }

/* ===== CONTACT ===== */
#contact {
  padding: 5rem 0;
  background: var(--beige);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-card {
  background: rgba(255,255,255,0.85);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(40,75,116,0.07);
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(40,75,116,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.contact-item:hover .contact-icon { background: var(--blue); }
.contact-item:hover .contact-icon svg { color: var(--beige); }

.contact-item small {
  display: block;
  font-size: 0.78rem;
  color: rgba(40,75,116,0.5);
}

.contact-item strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
}

.urgent-card {
  background: var(--blue);
  border-radius: 1.5rem;
  padding: 2rem;
}

.urgent-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--beige); margin-bottom: 0.75rem; }
.urgent-card p { color: rgba(235,225,209,0.75); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }

.btn-beige {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--beige);
  color: var(--blue);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-beige:hover { background: white; }

/* Contact form */
.contact-form-card {
  background: rgba(255,255,255,0.85);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(40,75,116,0.08);
}

.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.8);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--blue);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid rgba(40,75,116,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(40,75,116,0.35); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: white;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40,75,116,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select { cursor: pointer; }

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* Form feedback */
.form-success {
  display: none;
  background: rgba(40,75,116,0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.form-success.show { display: block; }
.form-success p { font-weight: 700; color: var(--blue); }

/* ===== FOOTER ===== */
footer {
  background: var(--blue);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-wave {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ebe1d1' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,122.7C960,139,1056,149,1152,133.3C1248,117,1344,75,1392,53.3L1440,32L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat top;
  background-size: cover;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(235,225,209,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

footer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 1rem;
}

footer ul li {
  color: rgba(235,225,209,0.65);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

footer ul li.with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

footer ul li a {
  color: rgba(235,225,209,0.65);
  transition: color 0.2s;
}

footer ul li a:hover { color: var(--beige); }

.footer-bottom {
  border-top: 1px solid rgba(235,225,209,0.15);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(235,225,209,0.45);
  font-size: 0.82rem;
}

/* ===== SVG ICONS ===== */
svg { display: inline-block; vertical-align: middle; }

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav.desktop-nav { display: none; }
  .hamburger { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .zone-grid { grid-template-columns: 1fr; }
  .zone-map { display: none; }

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

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

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

@media (max-width: 600px) {
  .hero-inner { padding: 3rem 1.5rem 4rem; }
  .section-title { font-size: 1.6rem; }
  .contact-form-card { padding: 1.5rem; }
}
