/* ============================================================
   S.S.I.D. — Protection incendie
   Feuille de style unique du site vitrine
   Palette : noir + rouge (charte de l'entreprise)
   ============================================================ */

:root {
  --ink:      #0d0e11;
  --ink-2:    #16181d;
  --red:      #d61f2b;
  --red-dk:   #b0151f;
  --green:    #1f9d55;  /* vert évacuation / sorties de secours (charte CDC) */
  --gold:     #c88d41;  /* or du logo officiel (bouclier + baseline) */
  --gold-dk:  #a06f2c;  /* variante assombrie, lisible sur fond clair */
  --paper:    #f6f5f3;
  --white:    #ffffff;
  --muted:    #6a6f77;
  --line:     rgba(13, 14, 17, .12);
  --line-lt:  rgba(255, 255, 255, .14);
  --shadow:   0 18px 40px -24px rgba(13, 14, 17, .5);
  --maxw:     1160px;
  --radius:   14px;
  --font:     "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

/* scroll-padding-top : compense le header sticky (74px) pour que les ancres (#section)
   ne se calent pas derrière le header — la cible reste bien cadrée sous la barre de nav. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--red-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(48px, 8vw, 92px) 0; }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: #33373d; max-width: 65ch; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red-dk); margin-bottom: .8rem;
}
.section--dark .eyebrow { color: #ff6069; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dk); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: var(--line-lt); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 243, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand__mark { height: 52px; width: auto; flex: none; display: block; }
.brand__txt { display: flex; flex-direction: column; align-items: flex-start; }
.brand__name { height: 35px; width: auto; display: block; }
.brand__tag { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dk); margin-top: 6px; white-space: nowrap; }
/* La baseline reste affichée à toutes les tailles (demande client) : elle rétrécit
   au lieu de disparaître, pour tenir à côté du bouton de menu sans déborder. */
@media (max-width: 1120px) {
  .brand__mark { height: 46px; }
  .brand__name { height: 30px; }
  .brand__tag  { font-size: .58rem; letter-spacing: .05em; margin-top: 5px; }
}
@media (max-width: 560px) {
  .brand { gap: 8px; }
  .brand__mark { height: 40px; }
  .brand__name { height: 24px; }
  .brand__tag  { font-size: .53rem; letter-spacing: .02em; margin-top: 4px; }
}
@media (max-width: 380px) {
  .brand__mark { height: 38px; }
  .brand__name { height: 22px; }
  .brand__tag  { font-size: .47rem; letter-spacing: .01em; }
}
@media (max-width: 340px) {
  .brand__mark { height: 34px; }
  .brand__name { height: 20px; }
  .brand__tag  { font-size: .42rem; letter-spacing: 0; }
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--red-dk); text-decoration: none; }
.nav a.is-active { color: var(--red-dk); }
.nav .btn { padding: .6em 1.15em; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(13,14,17,.92) 30%, rgba(13,14,17,.45) 100%); }
.hero__inner { position: relative; z-index: 2; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 10vw, 120px); max-width: 720px; }
.hero h1 { color: #fff; }
.hero .lead { color: #d9dbe0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero__strip { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding: 18px 0 26px; border-top: 1px solid var(--line-lt); color: #cfd2d8; font-size: .95rem; }
.hero__strip b { color: #fff; }

/* ---------- Page-titre (pages internes) ---------- */
.pagehead { background: var(--ink); color: #fff; padding: clamp(48px, 8vw, 90px) 0 clamp(36px, 5vw, 56px); }
.pagehead h1 { color: #fff; margin-bottom: .3rem; }
.pagehead p { color: #c9ccd2; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: #8b9099; margin-bottom: 1rem; }
.breadcrumb a { color: #b9bdc4; }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .18s, box-shadow .18s;
}
/* Seules les cartes-liens réagissent au survol (affordance cliquable). Les cartes
   informatives (article.card) restent statiques pour ne pas être prises pour des liens. */
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 46px; height: 46px; margin-bottom: 16px; color: var(--red); }
.card__icon--green { color: var(--green); }  /* évacuation / sorties de secours */
.card h3 { margin-bottom: .35rem; color: var(--ink); }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }
a.card::after { content: "En savoir plus →"; display: block; margin-top: 14px; font-size: .9rem; font-weight: 700; color: var(--red-dk); }
/* Cartes informatives (pas des liens) : présentation en bloc de contenu, sans
   apparence de tuile cliquable — ni bordure, ni fond, ni ombre, ni survol. */
.card--plain { background: transparent; border: 0; box-shadow: none; padding: 6px 4px; }
.card--plain:hover { transform: none; box-shadow: none; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card ul { color: var(--muted); font-size: .95rem; margin: .6rem 0 0; padding-left: 1.1em; }
.card ul li { margin-bottom: .25rem; }

/* ---------- Split média + texte ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feature-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: #33373d; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px;
  background: var(--red); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
}

/* ---------- Sections sombres / réassurance ---------- */
.section--dark { background: var(--ink); color: #e7e9ed; }
.section--dark h2 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; }
.stat__lbl { color: #aeb2ba; font-size: .95rem; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--red-dk), var(--red)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band .btn--light:hover { color: var(--red-dk); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; background: none; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,9,11,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: 3px; }
.info-item b { display: block; }
.info-item a { color: var(--ink); }
form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--red); border-color: var(--red); }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.form-check input { width: auto; margin-top: 4px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink-2); color: #c4c8cf; padding: 56px 0 28px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer a { color: #c4c8cf; }
/* Liens de contact (mail / téléphone) : soulignés au repos pour se lire comme des liens */
.site-footer a[href^="mailto"], .site-footer a[href^="tel"], .site-footer a.footer-mail {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4);
}
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: #fff; }
.footer-brand { color: #fff; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand__tag { color: var(--gold); display: block; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-lt); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #878c94; font-size: .85rem; }

/* ---------- Citation fondateur ---------- */
.quote {
  margin: 1.6rem 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red);
  font-size: 1.3rem; font-weight: 700; font-style: italic; color: var(--ink); line-height: 1.4;
}
.quote cite { display: block; margin-top: .5rem; font-size: .9rem; font-weight: 600; font-style: normal; color: var(--muted); }

/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; }
/* Animation d'apparition — activée uniquement si JS est présent (.js sur <html>).
   Sans JS, le contenu reste pleinement visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 22px 22px; transform: translateY(-120%); transition: transform .28s; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid--3, .grid--2, .footer-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
