:root {
  --noir: #14110f;
  --noir-2: #221d19;
  --jaune: #ffd400;
  --jaune-fonce: #e0b800;
  --rouge: #d62929;
  --creme: #f7f3ea;
  --encre: #241f1b;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--creme);
  color: var(--encre);
}

.titre-display {
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* ---------- Navbar ---------- */
.navbar-pierrot {
  background-color: var(--noir);
}
.navbar-pierrot .navbar-brand,
.navbar-pierrot .nav-link {
  color: var(--creme);
  font-weight: 500;
}
.navbar-pierrot .nav-link:hover,
.navbar-pierrot .nav-link.active {
  color: var(--jaune);
}
.navbar-pierrot .navbar-toggler {
  border-color: rgba(255, 212, 0, .4);
}
.navbar-pierrot .navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffd400' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.reseau-nav {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  background: #000;
  color: var(--jaune);
  border: 1px solid rgba(255, 212, 0, .35);
  text-decoration: none;
}
.reseau-nav:hover {
  background: var(--jaune);
  color: var(--noir);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(214, 41, 41, .35), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 212, 0, .22), transparent 45%),
    linear-gradient(180deg, var(--noir) 0%, var(--noir-2) 100%);
  color: var(--creme);
}
.hero .logo {
  max-width: 180px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .55));
}
.hero .badge-fondation {
  color: var(--jaune);
  border: 1px solid rgba(255, 212, 0, .6);
  background: transparent;
  letter-spacing: .12em;
  font-weight: 600;
}
.hero h1 {
  -webkit-text-stroke: 0;
}
.hero .trait-rouge {
  color: var(--rouge);
  text-shadow: 0 2px 14px rgba(214, 41, 41, .35);
}
.souligne-jaune {
  border-bottom: 3px solid var(--jaune);
  padding-bottom: .12em;
}

/* Confettis animés */
#confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.confetti-piece {
  position: absolute;
  top: -40px;
  width: 10px;
  height: 14px;
  opacity: .85;
  will-change: transform;
  animation: tomber linear infinite;
}
@keyframes tomber {
  0%   { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); }
}
.hero > .container { position: relative; z-index: 1; }

/* Annonce "site en préparation" */
.annonce-refonte {
  max-width: 620px;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(255, 212, 0, .45);
  border-left: 6px solid var(--jaune);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(4px);
  text-align: left;
  color: var(--creme);
}
.annonce-refonte .annonce-titre {
  color: var(--jaune);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
}
.annonce-refonte p { font-size: .95rem; }
.annonce-refonte p:not(.annonce-titre) { opacity: .85; }

/* ---------- Sections ---------- */
.titre-section {
  color: var(--noir);
  font-weight: 800;
}
.titre-section::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: .55rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rouge) 0 50%, var(--jaune) 50% 100%);
}
.titre-section.centre::after { margin-left: auto; margin-right: auto; }

.carte-pierrot {
  background: #fff;
  border: 1px solid rgba(20, 17, 15, .08);
  border-radius: 1.1rem;
  box-shadow: 0 12px 30px rgba(20, 17, 15, .07);
}

.section-sombre {
  background-color: var(--noir);
  color: var(--creme);
}
.section-sombre .titre-section { color: #fff; }

.btn-pierrot {
  background-color: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
  font-weight: 600;
}
.btn-pierrot:hover,
.btn-pierrot:focus {
  background-color: #b81f1f;
  border-color: #b81f1f;
  color: var(--jaune);
}
.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 600;
}
.btn-whatsapp:hover {
  background-color: #1ebe5a;
  border-color: #1ebe5a;
  color: #fff;
}

.alerte-important {
  background-color: #fff8e1;
  border-left: 6px solid var(--jaune-fonce);
  color: var(--encre);
}

.icone-contact { color: var(--rouge); }
.section-sombre .icone-contact { color: var(--jaune); }

a.lien-sombre { color: var(--encre); text-decoration: none; font-weight: 500; }
a.lien-sombre:hover { color: var(--rouge); text-decoration: underline; }

/* ---------- Footer ---------- */
footer.pied {
  background-color: var(--noir);
  color: var(--creme);
}
footer.pied h5 {
  color: var(--jaune);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
footer.pied a { color: var(--creme); text-decoration: none; }
footer.pied a:hover { color: var(--jaune); }
footer.pied .bas { border-top: 1px solid rgba(255, 255, 255, .12); }
.reseau-pied {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: .6rem;
  background: #000;
  color: var(--jaune);
  border: 1px solid rgba(255, 212, 0, .35);
  font-size: 1.25rem;
  text-decoration: none;
}
.reseau-pied:hover { background: var(--jaune); color: var(--noir); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-pierrot .navbar-nav {
    padding-top: .5rem;
    padding-bottom: .75rem;
  }
  .navbar-pierrot .nav-item .reseau-nav {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-titre {
    font-size: 2.75rem;
  }
}

@media (max-width: 575.98px) {
  .hero-titre {
    font-size: 1.9rem;
  }
  .hero .lead {
    font-size: 1.05rem;
  }
  .hero .logo {
    max-width: 120px;
  }
  .annonce-refonte {
    padding: .95rem 1.1rem;
  }
  .annonce-refonte p {
    font-size: .9rem;
  }
  footer.pied {
    text-align: center;
  }
  footer.pied .d-flex {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Accessibilité : couper l'animation si l'utilisateur la refuse */
@media (prefers-reduced-motion: reduce) {
  .confetti-piece {
    animation: none;
    display: none;
  }
}

