/* ===========================
   Plomberie Service — style.css
   (avec grands dessins en fond, bien positionnés et responsive)
   =========================== */

/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  /* Fond général vivant mais discret */
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.35) 1px, transparent 0) 0 0/4px 4px,
    linear-gradient(135deg, #e0f7fa 0%, #fff9c4 100%);
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 1rem; }

/* ===========================
   Header & Navigation
   =========================== */
header {
  background: linear-gradient(90deg, #003366 0%, #004080 50%, #00509e 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  position: sticky; top: 0; z-index: 100;
}
.header-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 700; color: #ffc107; }

nav { position: relative; }
.nav-menu { list-style: none; display: flex; gap: 1rem; }
.nav-menu li a {
  display: block; padding: .5rem .75rem; color: #fff; font-weight: 600; transition: color .3s;
}
.nav-menu li a:hover { color: #ffc107; }

/* Mobile nav */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; width: 30px; height: 25px; flex-direction: column; justify-content: space-between; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: ""; display: block; height: 4px; background-color: #fff; border-radius: 2px; transition: transform .3s;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { position: relative; width: 100%; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after  { top:  8px; }

@media (max-width: 768px) {
  .nav-menu {
    position: absolute; top: 100%; right: 0; background-color: #003366;
    flex-direction: column; width: 220px; max-height: 0; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: max-height .3s;
  }
  .nav-menu li a { padding: 1rem; }
  .nav-toggle-label { display: flex; }
  .nav-toggle:checked + .nav-toggle-label span { background-color: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after  { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle:checked ~ .nav-menu { max-height: 320px; }
}

/* ===========================
   Hero (bannière)
   =========================== */
.hero {
  position: relative;
  background: url('plumbing_hero.jpg') center/cover no-repeat;
  height: 70vh; min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center;
}
.hero-overlay {
  position: absolute; inset: 0; background-color: rgba(0,0,0,.40); /* + transparent que .55 pour plus de vie */
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 1rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; letter-spacing: .5px; }
.hero p  { font-size: clamp(1rem, 2.2vw, 1.25rem); margin-bottom: 1.25rem; }

.cta-btn {
  display: inline-block; background-color: #ffc107; color: #003366;
  padding: .75rem 1.5rem; border-radius: 6px; font-weight: 800;
  box-shadow: 0 6px 14px rgba(255,193,7,.25);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.cta-btn:hover { background-color: #ffca2c; transform: translateY(-1px); box-shadow: 0 10px 18px rgba(255,193,7,.35); }

/* ===========================
   SECTIONS AVEC GRANDS DESSINS EN FOND
   Principe: on empile 2 backgrounds :
   1) l'illustration (plumbing_pattern.png), non répétée
   2) un dégradé de couleur qui remplit la section
   On ajoute un padding côté illustration pour éviter que le texte ne chevauche.
   =========================== */

/* Services — illustration à DROITE */
.services {
  background-image:
    url('/plumbing_pattern.png'),
    linear-gradient(135deg, #ffe0b2 0%, #fff9c4 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: clamp(420px, 38vw, 700px), 100% 100%;
  background-position: right -4% center, center;
  padding: 4rem 0;
  padding-right: clamp(24px, 8vw, 160px);
}

/* À propos — illustration à GAUCHE */
.about {
  background-image:
    url('/plumbing_pattern.png'),
    linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: clamp(420px, 38vw, 700px), 100% 100%;
  background-position: left -4% center, center;
  padding: 4rem 0;
  padding-left: clamp(24px, 8vw, 160px);
}

/* Conseils — illustration à DROITE (bas) */
.tips {
  background-image:
    url('/plumbing_pattern.png'),
    linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: clamp(420px, 38vw, 700px), 100% 100%;
  background-position: right -4% 90%, center;
  padding: 4rem 0;
  padding-right: clamp(24px, 8vw, 160px);
}

/* Contact — illustration à GAUCHE (bas) */
.contact {
  background-image:
    url('/plumbing_pattern.png'),
    linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: clamp(420px, 38vw, 700px), 100% 100%;
  background-position: left -4% 92%, center;
  padding: 4rem 0;
  padding-left: clamp(24px, 8vw, 160px);
}

.contact h2 { text-align: center; margin-bottom: 2rem; font-size: 2rem; color: #003366; }
.contact-flex { display: flex; gap: 2rem; }
@media (max-width: 768px) { .contact-flex { flex-direction: column; } }
.contact-info { flex: 1; font-size: 1rem; }
.contact-info p { margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.contact-info i { color: #0d6efd; }

.contact-form {
  flex: 1; background-color: #fff; padding: 1.5rem; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.contact-form label { display: block; margin-bottom: .35rem; font-weight: 700; color: #0b5ed7; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: .6rem .75rem; margin-bottom: 1rem;
  border: 1px solid #cfd4da; border-radius: 6px; font-size: 1rem; font-family: inherit;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  display: inline-block; background-color: #0d6efd; color: #fff; border: none;
  padding: .75rem 1.5rem; border-radius: 6px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 16px rgba(13,110,253,.25);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.contact-form button:hover { background-color: #0b5ed7; transform: translateY(-1px); box-shadow: 0 12px 22px rgba(13,110,253,.35); }

/* ===========================
   Footer
   =========================== */
footer { background-color: #333; color: #fff; padding: 2rem 0; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.footer-links a { color: #fff; font-weight: 600; transition: color .3s; }
.footer-links a:hover { color: #28a745; }
.footer-info p { font-size: .9rem; }

/* ===========================
   Responsive — adapter les dessins
   =========================== */
@media (max-width: 640px) {
  /* Réduire la taille du motif et recentrer pour éviter de gêner le texte */
  .services, .about, .tips, .contact {
    background-size: clamp(260px, 55vw, 360px), 100% 100%;
    background-position: center bottom 6%, center;
    /* On allège l’espace latéral sur mobile */
    padding-right: 1rem; padding-left: 1rem;
  }
}
