/* ============================================================
   SERVICES PYRO-PRO — Feuille de style principale
   Palette tirée du logo : rouge pompier, jaune, noir cartoon
   ============================================================ */

:root {
  --rouge: #d7231d;
  --rouge-fonce: #a31510;
  --rouge-tres-fonce: #6e0d0a;
  --jaune: #ffc20e;
  --jaune-pale: #ffe9a8;
  --noir: #1a1a1a;
  --gris: #4c4c4c;
  --creme: #fff7ec;
  --blanc: #ffffff;
  --ombre-cartoon: 6px 6px 0 rgba(26, 26, 26, 0.9);
  --ombre-cartoon-p: 4px 4px 0 rgba(26, 26, 26, 0.9);
  --rayon: 18px;
  --police-titre: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  --police-texte: "Nunito", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--police-texte);
  color: var(--noir);
  background: var(--blanc);
  line-height: 1.65;
  font-size: 1.06rem;
}

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

.container { width: min(1160px, 92%); margin-inline: auto; }
.container-etroit { width: min(820px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--police-titre); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: .5rem; }
h3 { font-size: 1.3rem; }

a { color: var(--rouge); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--jaune);
  color: var(--noir); padding: .6rem 1rem; z-index: 300; font-weight: 800;
}
.skip-link:focus { left: 0; }

.txt-rouge { color: var(--rouge); }

.sur-titre {
  display: inline-block;
  font-family: var(--police-titre);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--rouge-fonce);
  background: var(--jaune-pale);
  border: 2px solid var(--noir);
  border-radius: 999px;
  padding: .25rem 1rem;
  margin-bottom: .9rem;
}

.section { padding: 4.5rem 0; }
.section-creme { background: var(--creme); }
.section-intro { max-width: 46rem; color: var(--gris); margin-bottom: 2.4rem; }

.note-centre { text-align: center; margin-top: 2.2rem; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.05rem;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  border: 3px solid var(--noir);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--ombre-cartoon-p);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(26,26,26,.9); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(26,26,26,.9); }
.btn-rouge { background: var(--rouge); color: var(--blanc); }
.btn-jaune { background: var(--jaune); color: var(--noir); }
.btn-contour { background: var(--blanc); color: var(--noir); }
.btn-blanc-contour { background: transparent; color: var(--blanc); border-color: var(--blanc); box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.btn-pleine { width: 100%; text-align: center; }

/* ---------- Barre du haut ---------- */
.topbar {
  background: var(--noir);
  color: var(--blanc);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .4rem 4%;
  font-size: .9rem;
  flex-wrap: wrap;
}
.topbar-tel { color: var(--jaune); font-weight: 800; text-decoration: none; }
.topbar-tel:hover { text-decoration: underline; }

/* ---------- Navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: var(--blanc);
  border-bottom: 3px solid var(--noir);
  transition: box-shadow .2s ease;
}
.header.ombre { box-shadow: 0 4px 14px rgba(0,0,0,.12); }

.nav { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; }

.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--police-titre); font-size: 1.25rem;
  color: var(--noir); text-decoration: none;
}
.nav-logo strong { color: var(--rouge); }
.nav-logo img { transition: transform .3s ease; }
.nav-logo:hover img { transform: rotate(-10deg) scale(1.1); }

.nav-menu { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-menu a {
  text-decoration: none; color: var(--noir); font-weight: 700; font-size: .98rem;
  padding-bottom: 2px; border-bottom: 3px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-menu a:hover, .nav-menu a.actif { color: var(--rouge); border-bottom-color: var(--jaune); }

.nav-cta {
  background: var(--rouge); color: var(--blanc) !important;
  padding: .5rem 1.1rem !important; border-radius: 999px;
  border: 2px solid var(--noir) !important; box-shadow: 3px 3px 0 rgba(26,26,26,.9);
}
.nav-cta:hover { background: var(--rouge-fonce); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--noir);
  margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.ouvert span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.ouvert span:nth-child(2) { opacity: 0; }
.nav-toggle.ouvert span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,194,14,.25), transparent 55%),
    linear-gradient(160deg, var(--rouge) 0%, var(--rouge-fonce) 70%, var(--rouge-tres-fonce) 100%);
  color: var(--blanc);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 2rem; align-items: center;
  padding: 4.5rem 0 5.5rem;
}
.hero-badge {
  display: inline-block; background: rgba(0,0,0,.28);
  border: 2px solid var(--jaune); color: var(--jaune-pale);
  border-radius: 999px; padding: .3rem 1rem; font-weight: 700; font-size: .9rem;
  margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1.1rem; }
.souligne {
  background-image: linear-gradient(transparent 62%, var(--jaune) 62%, var(--jaune) 92%, transparent 92%);
  color: var(--blanc);
}
.hero-sub { font-size: 1.15rem; max-width: 34rem; margin-bottom: 1.6rem; color: #ffeede; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-points { list-style: none; display: flex; gap: 1.4rem; flex-wrap: wrap; font-weight: 700; font-size: .95rem; }

.hero-img { display: flex; justify-content: center; }
.mascotte-hero {
  width: min(340px, 80%);
  filter: drop-shadow(10px 12px 0 rgba(0,0,0,.28));
  animation: flotte 4s ease-in-out infinite;
}
@keyframes flotte {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mascotte-hero { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-vague {
  position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
  background: var(--blanc);
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ---------- Bandeau confiance ---------- */
.confiance { background: var(--jaune); border-block: 3px solid var(--noir); }
.confiance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding: 1.6rem 0; text-align: center;
}
.conf-item { display: flex; flex-direction: column; }
.conf-chiffre { font-family: var(--police-titre); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.conf-label { font-weight: 700; font-size: .92rem; }

/* ---------- Cartes services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem;
}
.service-carte {
  background: var(--blanc);
  border: 3px solid var(--noir);
  border-radius: var(--rayon);
  padding: 1.8rem;
  box-shadow: var(--ombre-cartoon);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-carte:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 rgba(26,26,26,.9); }
.service-carte-large { grid-column: 1 / -1; }
.service-icone {
  font-size: 2rem; background: var(--jaune-pale);
  width: 64px; height: 64px; display: grid; place-items: center;
  border: 3px solid var(--noir); border-radius: 16px; margin-bottom: 1rem;
}
.service-carte h3 { margin-bottom: .8rem; color: var(--rouge-fonce); }
.service-logo { height: 64px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.service-logo-uhaul { height: 46px; margin-top: 9px; margin-bottom: 1.25rem; }
.probleme { margin-bottom: .7rem; }
.probleme strong { color: var(--rouge); }
.solution { margin-bottom: .7rem; }
.resultat {
  font-weight: 800; background: var(--jaune-pale);
  border-left: 5px solid var(--jaune);
  padding: .5rem .8rem; border-radius: 0 10px 10px 0; margin-bottom: 1rem;
}
.lien-fleche { font-weight: 800; text-decoration: none; }
.lien-fleche::after { content: " →"; transition: margin-left .15s ease; }
.lien-fleche:hover::after { margin-left: 5px; }

/* ---------- Onglets extincteurs ---------- */
.onglets { display: flex; gap: .8rem; margin-bottom: 2rem; flex-wrap: wrap; }
.onglet {
  font-family: var(--police-titre); font-weight: 600; font-size: 1rem;
  padding: .6rem 1.5rem; border-radius: 999px; cursor: pointer;
  background: var(--blanc); border: 3px solid var(--noir);
  box-shadow: var(--ombre-cartoon-p); transition: all .15s ease;
}
.onglet:hover { transform: translate(-2px,-2px); }
.onglet.actif { background: var(--rouge); color: var(--blanc); }

.panneau { display: none; }
.panneau.actif { display: block; animation: apparait .35s ease; }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.produits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem;
}
.produit {
  background: var(--blanc); border: 3px solid var(--noir); border-radius: var(--rayon);
  padding: 1.2rem; text-align: center; box-shadow: var(--ombre-cartoon-p);
  transition: transform .18s ease;
}
.produit:hover { transform: translateY(-5px); }
.produit img { height: 150px; object-fit: contain; margin: 0 auto .9rem; }
.produit h4 { color: var(--rouge-fonce); margin-bottom: .3rem; }
.produit-code { font-size: .85rem; color: var(--gris); font-weight: 700; margin-bottom: .4rem; }
.produit-usage {
  margin-top: .6rem; font-size: .92rem; font-weight: 700;
  background: var(--creme); border-radius: 10px; padding: .45rem .6rem;
}

/* ---------- Tableau entretien ---------- */
.tableau-enveloppe { overflow-x: auto; }
.tableau-entretien {
  width: 100%; border-collapse: collapse;
  border: 3px solid var(--noir); border-radius: var(--rayon);
  overflow: hidden; box-shadow: var(--ombre-cartoon);
  background: var(--blanc);
}
.tableau-entretien th, .tableau-entretien td {
  padding: 1rem 1.2rem; text-align: left; border-bottom: 2px solid #eee;
}
.tableau-entretien thead th {
  background: var(--noir); color: var(--jaune);
  font-family: var(--police-titre); font-weight: 600;
}
.tableau-entretien tbody th { font-weight: 800; background: var(--creme); }
.tableau-entretien tbody tr:last-child th,
.tableau-entretien tbody tr:last-child td { border-bottom: none; }

/* ---------- Premiers soins ---------- */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.4rem;
}
.categorie {
  background: var(--blanc); border: 3px solid var(--noir); border-radius: var(--rayon);
  padding: 1.3rem; box-shadow: var(--ombre-cartoon-p); text-align: center;
  transition: transform .18s ease;
}
.categorie:hover { transform: translateY(-5px); }
.categorie img { height: 130px; object-fit: contain; margin: 0 auto 1rem; }
.categorie h3 { font-size: 1.1rem; color: var(--rouge-fonce); margin-bottom: .5rem; }
.categorie p { font-size: .94rem; color: var(--gris); }

/* ---------- SST ---------- */
.sst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.sst-carte {
  background: var(--blanc); border: 3px solid var(--noir); border-radius: var(--rayon);
  padding: 1.6rem; box-shadow: var(--ombre-cartoon-p);
}
.sst-carte h3 { margin-bottom: .9rem; color: var(--rouge-fonce); }
.sst-carte ul { margin: 0 0 .9rem 1.2rem; }
.sst-carte li { margin-bottom: .3rem; font-weight: 600; }
.sst-carte p { font-size: .94rem; color: var(--gris); }

/* ---------- Équipe ---------- */
.equipe-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem;
}
.membre {
  background: var(--blanc); border: 3px solid var(--noir); border-radius: var(--rayon);
  overflow: hidden; box-shadow: var(--ombre-cartoon-p);
  transition: transform .18s ease;
}
.membre:hover { transform: translateY(-5px); }
.membre img { width: 100%; height: 240px; object-fit: cover; object-position: top; border-bottom: 3px solid var(--noir); }
.membre h3, .membre p, .membre a { padding-inline: 1.1rem; }
.membre h3 { margin-top: 1rem; color: var(--rouge-fonce); }
.membre-role {
  font-weight: 800; color: var(--noir); font-size: .88rem;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem;
}
.membre p:not(.membre-role) { font-size: .93rem; color: var(--gris); }
.membre a { display: inline-block; margin: .6rem 0 1.1rem; font-weight: 700; font-size: .9rem; word-break: break-all; }

/* ---------- Historique ---------- */
.historique { margin-top: 3.5rem; }
.historique-titre { text-align: center; font-size: 1.6rem; margin-bottom: 1.8rem; }
.chrono { list-style: none; max-width: 720px; margin-inline: auto; position: relative; padding-left: 1.4rem; }
.chrono::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 4px; background: var(--rouge); border-radius: 2px;
}
.chrono li { position: relative; padding: 0 0 1.1rem 1.4rem; }
.chrono li::before {
  content: ""; position: absolute; left: -1.4rem; top: .45rem;
  width: 14px; height: 14px; background: var(--jaune);
  border: 3px solid var(--noir); border-radius: 50%;
}
.annee {
  font-family: var(--police-titre); font-weight: 700; color: var(--rouge);
  margin-right: .6rem;
}

/* ---------- FAQ ---------- */
.faq-liste { display: grid; gap: 1rem; margin-top: 1.6rem; }
.faq-item {
  background: var(--blanc); border: 3px solid var(--noir);
  border-radius: 14px; box-shadow: var(--ombre-cartoon-p);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; font-family: var(--police-titre); font-weight: 600;
  font-size: 1.05rem; padding: 1rem 1.3rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--rouge);
  transition: transform .2s ease; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--jaune-pale); border-bottom: 2px dashed var(--noir); }
.faq-item p { padding: 1rem 1.3rem 1.2rem; }

/* ---------- Bande CTA ---------- */
.cta-bande {
  background: linear-gradient(150deg, var(--rouge) 0%, var(--rouge-fonce) 100%);
  color: var(--blanc); border-block: 3px solid var(--noir);
  padding: 3.2rem 0;
}
.cta-bande-int { display: flex; align-items: center; gap: 2.5rem; }
.cta-mascotte { width: 130px; flex-shrink: 0; filter: drop-shadow(6px 6px 0 rgba(0,0,0,.3)); }
.cta-bande h2 { margin-bottom: 1.4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; margin-top: 2rem; }
.info-bloc { margin-bottom: 1.6rem; }
.info-bloc h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.info-bloc a { font-weight: 700; }

.contact-form {
  background: var(--creme); border: 3px solid var(--noir); border-radius: var(--rayon);
  padding: 2rem; box-shadow: var(--ombre-cartoon);
}
.contact-form h3 { margin-bottom: 1.2rem; color: var(--rouge-fonce); }
.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-weight: 800; margin-bottom: .3rem; font-size: .95rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: .75rem .9rem; font-family: var(--police-texte); font-size: 1rem;
  border: 2.5px solid var(--noir); border-radius: 12px; background: var(--blanc);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 3px solid var(--jaune); outline-offset: 1px;
}
.champ input.invalide, .champ textarea.invalide { border-color: var(--rouge); background: #fff0ef; }
.form-statut { margin-top: .9rem; font-weight: 800; text-align: center; }
.form-note { margin-top: .7rem; font-size: .85rem; color: var(--gris); text-align: center; }
.footer-slogan { margin-top: .9rem; color: var(--jaune); font-weight: 700; }
.form-statut.ok { color: #1a7a2e; }
.form-statut.erreur { color: var(--rouge); }

/* ---------- Pied de page ---------- */
.footer { background: var(--noir); color: #f2f2f2; padding-top: 3.2rem; }
.footer a { color: var(--jaune); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem;
}
.footer-marque img { margin-bottom: .8rem; }
.footer-fb { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; text-decoration: none; font-weight: 700; }
.footer h4 { color: var(--jaune); margin-bottom: .8rem; font-size: 1.05rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: .4rem; }
.footer-nav a { text-decoration: none; color: #f2f2f2; }
.footer-nav a:hover { color: var(--jaune); }
.footer-contact p { margin-bottom: .5rem; }
.footer-bas {
  border-top: 1px solid #3a3a3a; padding: 1.1rem 0; text-align: center; font-size: .88rem; color: #bbb;
}

/* ---------- Bouton haut de page ---------- */
.haut-page {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--jaune); border: 3px solid var(--noir);
  font-size: 1.4rem; font-weight: 900; cursor: pointer;
  box-shadow: var(--ombre-cartoon-p);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.haut-page.visible { opacity: 1; pointer-events: auto; transform: none; }
.haut-page:hover { background: var(--jaune-pale); }

/* ---------- Animations au défilement ---------- */
.revele { opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s ease; }
.revele.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revele { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 3.2rem 0 4.2rem; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-img { order: -1; }
  .mascotte-hero { width: min(220px, 55%); }
  .services-grid { grid-template-columns: 1fr; }
  .sst-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .confiance-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cta-bande-int { flex-direction: column; text-align: center; }

  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
    background: var(--blanc); flex-direction: column; justify-content: center;
    gap: 1.8rem; border-left: 3px solid var(--noir);
    transform: translateX(100%); transition: transform .28s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,.18);
  }
  .nav-menu.ouvert { transform: none; }
  .nav-menu a { font-size: 1.15rem; }
}

@media (max-width: 520px) {
  .topbar { justify-content: center; text-align: center; }
  .confiance-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.2rem 0; }
}
