/* =============================================
   PCMI – Plomberie & Chauffage
   Le Mée-sur-Seine, 77350
   style.css
   ============================================= */

/* --- Variables --- */
:root {
  --blue-dark:    #0d2d5a;
  --blue-primary: #1a4a8a;
  --blue-medium:  #2c6fad;
  --blue-light:   #e8f0fb;
  --red-primary:  #c0392b;
  --red-bright:   #e74c3c;
  --white:        #ffffff;
  --gray-light:   #f5f7fa;
  --gray-mid:     #e2e8f0;
  --gray-text:    #64748b;
  --anthracite:   #1e293b;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:       8px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
  --transition:   0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); color: var(--anthracite); line-height: 1.6; background: var(--white); }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* --- Conteneur --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

/* Logo */
.logo {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo span { color: var(--red-primary); }

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--anthracite);
  padding: 6px 9px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--blue-primary); background: var(--blue-light); }

/* Boutons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  line-height: 1.4;
}
.btn-blue   { background: var(--blue-primary); color: var(--white); }
.btn-blue:hover  { background: var(--blue-dark); color: var(--white); }
.btn-red    { background: var(--red-primary); color: var(--white); }
.btn-red:hover   { background: var(--red-bright); color: var(--white); }
.btn-outline     { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.btn-lg     { padding: 14px 32px; font-size: 1rem; }

/* Hamburger (CSS-only, sans JS) */
.menu-toggle { display: none; }

.hamburger-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}
.hamburger-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--anthracite);
  border-radius: 2px;
  transition: all var(--transition);
}
/* Animation X quand menu ouvert */
.menu-toggle:checked + .hamburger-label span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle:checked + .hamburger-label span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .hamburger-label span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1920&q=80') center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13,45,90,0.93) 0%,
    rgba(13,45,90,0.80) 55%,
    rgba(192,57,43,0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0;
}
.hero-tag {
  display: inline-block;
  background: var(--red-primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 em { color: #f97316; font-style: normal; }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  max-width: 580px;
  line-height: 1.75;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-keywords {
  color: rgba(255,255,255,0.55);
  font-size: 0.83rem;
  letter-spacing: 0.5px;
}

/* =============================================
   SECTIONS – styles généraux
   ============================================= */
section { padding: 72px 0; }

.section-bg-light { background: var(--gray-light); }
.section-bg-blue  { background: var(--blue-light); }
.section-bg-dark  { background: var(--blue-dark); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1rem;
  color: var(--gray-text);
  max-width: 640px;
  margin: 0 auto;
}
/* Variante fond sombre */
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.72); }

/* Ligne décorative rouge sous les titres */
.section-line {
  width: 50px;
  height: 4px;
  background: var(--red-primary);
  border-radius: 2px;
  margin: 14px auto 20px;
}

/* =============================================
   SECTION INTRO / QUI SOMMES-NOUS
   ============================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.intro-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 18px;
  line-height: 1.3;
}
.intro-text p {
  color: var(--gray-text);
  margin-bottom: 20px;
  font-size: 1rem;
}
.badge-exp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.badge-exp::before { content: '★'; color: #f97316; }
.intro-encart {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-primary);
  padding: 15px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--blue-dark);
  font-weight: 500;
  margin-top: 20px;
}
.intro-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* =============================================
   CHIFFRES CLÉS
   ============================================= */
.chiffres-band { background: var(--blue-dark); padding: 52px 0; }
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.chiffre-item { color: var(--white); }
.chiffre-icon  { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.chiffre-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  margin-bottom: 5px;
  line-height: 1.25;
}
.chiffre-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   GRILLES DE CARTES
   ============================================= */
.cards-grid   { display: grid; gap: 24px; }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-6 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  border-top: 3px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--blue-primary);
}
.card-icon   { font-size: 2rem; margin-bottom: 14px; display: block; }
.card h3     { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.card p      { font-size: 0.9rem; color: var(--gray-text); line-height: 1.65; }

/* Variante bleue (traitement eau) */
.card-blue { background: var(--blue-light); border-top-color: var(--blue-primary); }
.card-blue h3 { color: var(--blue-dark); }

/* Cartes sur fond sombre (pourquoi nous) */
.card-dark {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid rgba(255,255,255,0.12);
}
.card-dark:hover { border-top-color: var(--red-primary); }
.card-dark h3 { color: var(--white); }
.card-dark p  { color: rgba(255,255,255,0.68); }

/* =============================================
   CERTIFICATIONS
   ============================================= */
.certif-badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px 0;
}
.certif-badge {
  background: var(--blue-primary);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* =============================================
   RÉALISATIONS
   ============================================= */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.realisation-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border-bottom: 3px solid var(--blue-primary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.realisation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.realisation-card .card-icon { font-size: 2.5rem; }
.realisation-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--blue-dark); }

/* =============================================
   MARQUES / FOURNISSEURS
   ============================================= */
.marques-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.marque-badge {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  padding: 10px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--anthracite);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), color var(--transition);
}
.marque-badge:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

/* =============================================
   ZONE D'INTERVENTION
   ============================================= */
.villes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.ville-tag {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  color: var(--blue-dark);
  font-weight: 500;
  box-shadow: var(--shadow);
}
.ville-tag.principale {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}
.zone-note {
  text-align: center;
  margin-top: 24px;
  color: var(--blue-dark);
  font-size: 0.9rem;
}

/* =============================================
   ACTUALITÉS
   ============================================= */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.actu-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.actu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.actu-img { width: 100%; height: 185px; object-fit: cover; }
.actu-body { padding: 22px; }
.actu-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.actu-body h3 { font-size: 0.98rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.actu-body p  { font-size: 0.87rem; color: var(--gray-text); line-height: 1.65; }

/* =============================================
   INFOS PRATIQUES
   ============================================= */
.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.infos-block h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--anthracite);
}
.contact-item .icon {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item a:hover { color: var(--blue-primary); text-decoration: underline; }

.horaires-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 0.9rem;
  color: var(--gray-text);
}
.horaires-list li:last-child { border-bottom: none; }
.horaire-urgence { color: var(--red-primary); font-weight: 700; }

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.cta-buttons .btn { width: 100%; text-align: center; }

/* Encart urgence */
.urgence-box {
  margin-top: 28px;
  background: var(--red-primary);
  color: var(--white);
  padding: 22px 24px;
  border-radius: 12px;
  text-align: center;
}
.urgence-box p { margin-bottom: 8px; }
.urgence-box p:first-child { font-size: 1.05rem; font-weight: 700; }
.urgence-box p:last-of-type { font-size: 0.88rem; opacity: 0.88; margin-bottom: 16px; }
.urgence-box .btn-urgence {
  background: var(--white);
  color: var(--red-primary);
  font-weight: 700;
  padding: 11px 28px;
  border-radius: var(--radius);
  display: inline-block;
  transition: background var(--transition);
}
.urgence-box .btn-urgence:hover { background: var(--gray-light); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}
.footer-logo span { color: var(--red-bright); }
.footer-desc {
  font-size: 0.87rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,0.55);
  font-size: 0.87rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-contact-item {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 9px;
}
.footer-contact-item a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }
.footer-urgence {
  margin-top: 10px;
  color: var(--red-bright);
  font-weight: 600;
  font-size: 0.87rem;
}
.social-links { display: flex; gap: 10px; margin-top: 6px; }
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.10);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}
.social-link:hover { background: var(--blue-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.80rem;
  color: rgba(255,255,255,0.38);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }
.footer-agence { color: rgba(255,255,255,0.45); }
.footer-agence a { color: rgba(255,255,255,0.65); font-weight: 500; }

/* =============================================
   MENTIONS LÉGALES
   ============================================= */
.mentions-hero {
  background: var(--blue-dark);
  color: var(--white);
  padding: 64px 0 44px;
}
.mentions-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.mentions-hero p  { color: rgba(255,255,255,0.70); margin-top: 8px; }

.mentions-content {
  padding: 56px 0 80px;
  max-width: 780px;
}
.mentions-section { margin-bottom: 42px; }
.mentions-section h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}
.mentions-section p,
.mentions-section address {
  font-size: 0.94rem;
  color: var(--gray-text);
  line-height: 1.75;
  font-style: normal;
  margin-bottom: 6px;
}
.mentions-section a { color: var(--blue-primary); }
.mentions-section a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE – Tablette (≤ 1024 px)
   ============================================= */
@media (max-width: 1024px) {
  .cards-grid-4    { grid-template-columns: repeat(2, 1fr); }
  .realisations-grid { grid-template-columns: repeat(2, 1fr); }
  .chiffres-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .intro-grid      { grid-template-columns: 1fr; }
  .intro-image     { display: none; }
}

/* =============================================
   RESPONSIVE – Mobile (≤ 768 px)
   ============================================= */
@media (max-width: 768px) {

  /* Header : afficher le hamburger */
  .hamburger-label { display: flex; }
  .header-cta      { display: none; }

  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 12px 20px 20px;
    z-index: 999;
  }
  /* Ouverture via la case à cocher */
  .menu-toggle:checked ~ .main-nav { display: block; }

  .main-nav ul  { flex-direction: column; gap: 2px; align-items: flex-start; }
  .main-nav a   { display: block; padding: 11px 4px; font-size: 1rem; border-bottom: 1px solid var(--gray-light); width: 100%; }
  .main-nav li:last-child a { border-bottom: none; }

  /* Hero */
  .hero         { min-height: 100svh; padding: 0; align-items: flex-end; }
  .hero-content { padding: 40px 0 60px; }
  .hero h1      { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }

  /* Sections */
  section { padding: 48px 0; }

  .cards-grid-3,
  .cards-grid-6,
  .actu-grid        { grid-template-columns: 1fr; }
  .realisations-grid { grid-template-columns: 1fr 1fr; }
  .chiffres-grid    { grid-template-columns: repeat(2, 1fr); }
  .infos-grid       { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid      { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom    { flex-direction: column; text-align: center; }
}

/* =============================================
   RESPONSIVE – Petit mobile (≤ 480 px)
   ============================================= */
@media (max-width: 480px) {
  .cards-grid-4      { grid-template-columns: 1fr; }
  .realisations-grid { grid-template-columns: 1fr; }
  .chiffres-grid     { grid-template-columns: 1fr 1fr; }
  .certif-badges     { flex-direction: column; align-items: center; }
}
