/* =====================================================
   P2CPRO - Style principal
   Mini-site optimisé SEO + Performance + Mobile-first
   ===================================================== */

:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #e85d04;
  --accent-hover: #d44d00;
  --white: #ffffff;
  --light: #f7f9fc;
  --gray: #64748b;
  --dark: #0f172a;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --max: 1140px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

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

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.badge {
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.hero-photo {
  text-align: center;
}

.hero-photo img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  max-height: 380px;
  margin: 0 auto;
  object-fit: cover;
}

/* ========== SECTIONS ========== */
section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== SERVICES CARDS ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(10,37,64,0.12);
  border-color: var(--accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: #fff0e6;
  color: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ========== ABOUT / TRUST ========== */
.trust {
  background: var(--light);
}

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

.trust-content h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.trust-list {
  margin: 1.25rem 0;
}

.trust-list li {
  padding: 0.4rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--dark);
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.trust-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

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

.contact-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--accent);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.phone-big {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

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

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

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* ========== UTILITIES ========== */
.bg-light { background: var(--light); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid,
  .trust-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    max-height: 300px;
  }
}

@media (max-width: 700px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    gap: 1rem;
  }

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

  .burger {
    display: block;
  }

  .hero {
    padding: 2.5rem 0;
  }
}

/* ========== PRINT ========== */
@media print {
  .site-header, .site-footer, .burger { display: none; }
}