:root {
  /* Colors */
  --primary: #1e3a8a;
  --primary-dark: #0f172a;
  --accent: #3b82f6;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;

  /* Radius & shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 5px 15px rgba(0,0,0,0.08);
  --shadow-md: 0 15px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.18);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease);
  --transition: 0.4s var(--ease);
  --transition-slow: 0.7s var(--ease);
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

html {
  scroll-behavior: smooth;
}
/* HEADER */
body.home header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header {
  width: 100%;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.496);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.header.scrolled {
  padding: 12px 40px;
  box-shadow: var(--shadow-sm);
}

.h1 a {
  font-weight: 800;
  font-size: 1.2rem;
}

.nav a {
  margin-left: 30px;
  color: var(--text-main);
  font-weight: 600;
  position: relative;
  transition: color var(--transition-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 140px 20px 80px;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary)
  );
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal 1s var(--ease) forwards;
}

.hero p {
  margin-top: 20px;
  font-size: 1.2rem;
  opacity: 0.85;
  animation: reveal 1.2s var(--ease) forwards;
}

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

.contact-form {
  margin-right: 25%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  gap: 20px;
}

.btn {
  margin-top: 40px;
  padding: 16px 34px;
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  padding: 16px 34px;
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition);
}

.btn-secondary:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* SECTIONS */
.section {
  max-width: 1200px;
  margin: auto;
  padding: 120px 20px;
}

.section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 40px;
}

/* SERVICES */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.about-image img {
  width: 50%;
  height: 50%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content p {
  line-height: 1.6;
}

/* 📱 Mobile */
@media (max-width: 768px) {

  .h1 a {
  font-weight: 800;
  font-size: 75%;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    max-height: 300px;
  }
}

/* MAP */
.intervention {
  padding: 80px 20px;
  text-align: center;
}

.map-container {
  margin-top: 30px;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  transition: border var(--transition),
              box-shadow var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

button {
  background: #1e3a8a;
  color: white;
  padding: 12px;
  border: none;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background: var(--primary-dark);
  color: #cbd5f5;
  text-align: center;
  padding: 60px 20px;
  font-size: 0.95rem;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .services {
    flex-direction: column;
  }

  .header {
    flex-direction: column;
    gap: 10px;
  }
}

/* Bouton réserver flottant - mobile */
.btn-reserver-mobile {
  display: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .btn-reserver-mobile {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    background: var(--bg); /* beige / doré */
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;

    padding: 14px 24px;
    border-radius: 30px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
  }

  .btn-reserver-mobile:hover {
    opacity: 0.9;
  }
}

#modifications {
  max-width: 700px;
  margin: auto;
}

#modifications form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#modifications input,
#modifications select,
#modifications textarea {
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

#modifications textarea {
  min-height: 140px;
  resize: vertical;
}

#modifications button {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

#modifications button:hover {
  background: #0f172a;
}

.checkbox {
  font-size: 0.95rem;
  color: #555;
}

#confirmation {
  margin-top: 10px;
  font-weight: bold;
}
