/* ==========================================================================
   PS GROUP SARL — Design tokens
   Couleurs extraites de la banniere Facebook du groupe (bordeaux + or).
   Modifier uniquement ce bloc :root si la charte graphique evolue.
   ========================================================================== */
:root {
  --color-primary: #6E1524;
  --color-primary-dark: #45101A;
  --color-primary-light: #9A2438;
  --color-accent: #F5B800;
  --color-accent-dark: #C99400;
  --color-bg-dark: #150808;
  --color-bg-dark-2: #2B0D14;
  --color-ink: #1E1416;
  --color-muted: #6E5F60;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F1EC;
  --color-border: #E8DCD6;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-card: 0 12px 30px rgba(30, 20, 22, 0.12);
  --container-w: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }

.section-head p { color: var(--color-muted); font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 184, 0, 0.35); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-ghost {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost:hover { background: var(--color-primary); color: #fff; }

.btn:active { transform: scale(0.96); }

/* ==========================================================================
   Apparition au scroll (reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title, .hero-subtitle, .hero-lead, .hero-actions { animation: none !important; opacity: 1 !important; }
  .hero-slide.is-active { animation: none; }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 8, 8, 0.92);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-heading);
}

.logo .logo-main {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.logo .logo-main span { color: var(--color-accent); }

.logo .logo-tag {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.logo, .logo .logo-main { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-accent); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

/* ==========================================================================
   Hero slider (page d'accueil)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active { opacity: 1; animation: kenburns 8s ease-in-out forwards; }

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 8, 8, 0.55) 0%, rgba(21, 8, 8, 0.78) 55%, rgba(21, 8, 8, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-content .hero-title {
  font-size: clamp(38px, 7vw, 74px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: heroRise 0.9s ease forwards;
  animation-delay: 0.1s;
}

.hero-content .hero-title span { color: var(--color-accent); }

.hero-content .hero-subtitle {
  margin-top: 18px;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: heroRise 0.9s ease forwards;
  animation-delay: 0.3s;
}

.hero-content .hero-lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 620px;
  margin-inline: auto;
  opacity: 0;
  animation: heroRise 0.9s ease forwards;
  animation-delay: 0.5s;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroRise 0.9s ease forwards;
  animation-delay: 0.7s;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-controls {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-arrow {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.hero-arrow:hover { background: var(--color-accent); color: var(--color-bg-dark); border-color: var(--color-accent); }

.hero-dots { display: flex; gap: 10px; }

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-dot.is-active { background: var(--color-accent); width: 26px; border-radius: 6px; }

/* ==========================================================================
   Page hero (pages secondaires, non-accueil)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 60%, var(--color-primary) 100%);
  padding: 120px 0 72px;
  text-align: center;
}
.page-hero .eyebrow { color: var(--color-accent); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 48px); display: flex; align-items: center; justify-content: center; gap: 16px; }
.page-hero h1 i { color: var(--color-accent); font-size: 0.8em; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 640px; margin: 16px auto 0; font-size: 17px; }

/* ==========================================================================
   Cards / grids reutilisables
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.card:hover .icon-badge,
.enterprise-card:hover .icon-badge {
  transform: scale(1.1) rotate(-4deg);
}

/* Cartes "Nos entreprises" (page d'accueil) */
.enterprises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.enterprise-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  background: linear-gradient(160deg, var(--color-bg-dark-2), var(--color-primary));
  color: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 200px;
}
.enterprise-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.enterprise-card .icon-badge {
  background: rgba(245, 184, 0, 0.15);
  color: var(--color-accent);
}
.enterprise-card h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.enterprise-card p { color: rgba(255, 255, 255, 0.78); font-size: 14.5px; }
.enterprise-card .card-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

/* ==========================================================================
   Stats / bandes
   ========================================================================== */
.stats-band {
  background: var(--color-primary);
  color: #fff;
  padding: 56px 0;
}
.stats-band .grid-4 { text-align: center; }
.stats-band .stat-num { font-family: var(--font-heading); font-size: 38px; font-weight: 800; color: var(--color-accent); }
.stats-band .stat-label { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.82); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-size: 28px; max-width: 480px; }
.cta-banner p { color: rgba(255, 255, 255, 0.8); margin-top: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-grid p { font-size: 14px; }

.footer-grid ul li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid ul li a:hover { color: var(--color-accent); }

.branch-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.branch-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.branch-social a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--color-accent); color: var(--color-bg-dark); border-color: var(--color-accent); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Formulaire contact
   ========================================================================== */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--color-bg-alt);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-info-list .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 18px; }
.contact-info-list strong { display: block; margin-bottom: 4px; }
.contact-info-list span { color: var(--color-muted); font-size: 14.5px; }

/* ==========================================================================
   Galerie (illustrations fictives)
   ========================================================================== */
.gallery-note {
  display: inline-block;
  background: rgba(245, 184, 0, 0.15);
  color: var(--color-accent-dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

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

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

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(21, 8, 8, 0.85), transparent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Bouton WhatsApp flottant
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 999;
  animation: waPulse 2.6s infinite;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 8px 24px rgba(0, 0, 0, 0.28); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.28); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.28); }
}

@media (max-width: 760px) {
  .whatsapp-float { width: 52px; height: 52px; font-size: 26px; bottom: 18px; right: 18px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 72px 16px auto 16px;
    background: var(--color-bg-dark);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-card);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }

  .grid-2, .grid-3, .enterprises-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
