/* Abers Protection Incendie — feuille de styles du site
   Couleurs : rouge #DB0506 (survol #B00405), gris logo #616671, anthracite #1F2328
   Police : DM Sans, hébergée sur le serveur (aucun appel à Google Fonts) */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('../fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rouge: #DB0506;
  --rouge-fonce: #B00405;
  --rouge-clair: #FDECEC;
  --gris: #616671;
  --texte: #1F2328;
  --texte-doux: #4F5560;
  --fond: #F5F6F7;
  --bordure: #E3E5E8;
  --rayon: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: #FFFFFF;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge); }
a:hover { color: var(--rouge-fonce); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--texte); color: #FFFFFF; padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; color: #FFFFFF; }

/* Boutons */
.btn, .btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
  white-space: nowrap;
}
.btn { background: var(--rouge); color: #FFFFFF; border: 0; }
.btn:hover { background: var(--rouge-fonce); color: #FFFFFF; }
.btn2 { border: 1.5px solid var(--texte); color: var(--texte); background: #FFFFFF; }
.btn2:hover { background: var(--texte); color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--bordure); }
.header .wrap { max-width: 1320px; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 104px; }
.logo img { height: 80px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--texte); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.nav a:hover { color: var(--rouge); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.tel { display: flex; align-items: center; gap: 8px; color: var(--texte); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; align-items: center; justify-content: center; cursor: pointer; color: var(--texte); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--fond); }
.section-dark { background: var(--texte); color: #FFFFFF; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rouge); }
.section-dark .eyebrow { color: #FF6B6B; }
.h2 { font-size: 36px; }
.lead { color: var(--texte-doux); }
.intro { max-width: 640px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 64px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.photo { width: 100%; object-fit: cover; border-radius: var(--rayon); }

/* Bannière */
.hero { padding: 80px 0 96px; }
.hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -0.02em; }
.hero .sub { font-size: 20px; color: var(--texte-doux); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.atouts { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; color: var(--texte-doux); }
.atouts li { display: flex; align-items: center; gap: 8px; }
.atouts li::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--rouge); }
.hero .photo { height: 480px; }

/* Cartes métiers */
.grid { display: grid; gap: 20px; }
.grid-metiers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { border: 1px solid var(--bordure); border-radius: var(--rayon); background: #FFFFFF; }
.metier { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.metier h3 { font-size: 17px; line-height: 1.3; }
.metier p { font-size: 14px; line-height: 1.55; color: var(--texte-doux); }
.ico { width: 36px; height: 36px; flex: none; }

/* Entreprise */
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.chiffres div { border-left: 3px solid var(--rouge); padding-left: 16px; }
.chiffres strong { display: block; font-size: 28px; line-height: 1.2; }
.chiffres span { font-size: 15px; color: var(--texte-doux); }
.entreprise .photo { height: 440px; object-position: center 30%; }

/* Engagements */
.grid-engagements { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 40px 32px; }
.engagement { display: flex; flex-direction: column; gap: 10px; }
.engagement h3 { font-size: 17px; }
.engagement p { font-size: 14px; line-height: 1.55; color: #C9CDD3; }
.engagement svg { width: 32px; height: 32px; }

/* Secteurs */
.grid-secteurs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.secteur { padding: 18px 22px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.secteur::before { content: ''; width: 6px; height: 6px; border-radius: 3px; background: var(--rouge); flex: none; }

/* Maintenance */
.split-top { align-items: start; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 16px; }
.checks li::before { content: '✓'; color: var(--rouge); font-weight: 700; }
.etapes { display: flex; flex-direction: column; gap: 16px; counter-reset: etape; }
.etape { padding: 24px; display: flex; gap: 20px; align-items: flex-start; }
.etape::before { counter-increment: etape; content: counter(etape); flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--rouge); color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.etape h3 { font-size: 17px; margin-bottom: 4px; }
.etape p { font-size: 14px; line-height: 1.55; color: var(--texte-doux); }

/* Zone */
.departements { display: flex; flex-wrap: wrap; gap: 10px; }
.departements li { padding: 8px 16px; border-radius: 999px; background: var(--fond); font-weight: 600; font-size: 15px; }
.departements li:first-child { background: var(--rouge-clair); color: var(--rouge-fonce); }
.carte { border: 1px solid var(--bordure); border-radius: var(--rayon); width: 100%; }

/* Conseils */
.grid-conseils { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.conseil { overflow: hidden; display: flex; flex-direction: column; }
.conseil img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--bordure); }
.conseil div { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.conseil .tag { font-size: 12px; font-weight: 600; color: var(--rouge); text-transform: uppercase; letter-spacing: .06em; }
.conseil h3 { font-size: 17px; line-height: 1.35; }
.conseil p { font-size: 14px; line-height: 1.55; color: var(--texte-doux); }

/* Contact */
.grid-contact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.contact-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--gris); }
.contact-big { font-size: 28px; font-weight: 700; color: var(--texte); text-decoration: none; line-height: 1.2; }
.contact-mail { font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.contact-big:hover { color: var(--rouge); }
.contact-note { font-size: 14px; color: var(--texte-doux); }
.adresse { margin-top: 24px; font-size: 15px; color: var(--texte-doux); }
.adresse strong { color: var(--texte); }

/* Pied de page */
.footer { background: var(--fond); border-top: 1px solid var(--bordure); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.footer img { height: 60px; width: auto; margin-bottom: 16px; mix-blend-mode: multiply; }
.footer-title { font-weight: 700; margin-bottom: 12px; color: var(--texte); }
.footer-list { display: flex; flex-direction: column; gap: 6px; color: var(--texte-doux); }
.footer-list a, .footer address a { color: var(--texte-doux); text-decoration: none; }
.footer-list a:hover { color: var(--rouge); }
.footer address { font-style: normal; color: var(--texte-doux); }
.footer address a.tel-footer { color: var(--texte); font-weight: 600; }
.footer-bas { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bordure); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--gris); }
.footer-bas nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bas a { color: var(--gris); }

/* Groupe Ouest Prévention */
.groupe { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--bordure); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.groupe-intro { display: flex; align-items: center; gap: 20px; max-width: 460px; }
.footer img.groupe-op { height: 72px; width: auto; margin: 0; mix-blend-mode: normal; flex: none; }
.groupe-op-lien { flex: none; display: block; border-radius: 6px; transition: opacity .15s; }
.groupe-op-lien:hover { opacity: .75; }
.groupe-intro p { color: var(--texte-doux); font-size: 15px; }
.groupe-logos { flex: 1 1 520px; max-width: 640px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.groupe-logos a { display: flex; align-items: center; justify-content: center; height: 88px; padding: 10px 12px; background: #FFFFFF; border: 1px solid var(--bordure); border-radius: 8px; transition: border-color .15s, transform .15s; }
.groupe-logos a:hover { border-color: var(--rouge); transform: translateY(-2px); }
.footer .groupe-logos img { height: 64px; width: auto; max-width: 100%; object-fit: contain; margin: 0; mix-blend-mode: normal; }

/* Barre d'appel mobile */
.barre-mobile { display: none; }

/* Pages de contenu (mentions légales, confidentialité) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: 40px; margin-bottom: 12px; }
.page .maj { color: var(--gris); font-size: 15px; margin-bottom: 40px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; }
.page p, .page li { color: var(--texte-doux); }
.page p + p { margin-top: 12px; }
.page ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.page dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; color: var(--texte-doux); }
.page dt { font-weight: 600; color: var(--texte); }
.page dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.a-completer { background: #FFF4CC; color: #5C4400; padding: 0 4px; border-radius: 3px; }
.fil { font-size: 14px; color: var(--gris); margin-bottom: 24px; }
.fil a { color: var(--gris); }

/* Tablette et mobile */
@media (max-width: 1360px) {
  .header-actions .tel { display: none; }
}
@media (max-width: 1120px) {
  .nav { gap: 16px; font-size: 14px; }
  .header-actions .btn { padding: 0 14px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .header .wrap { height: 76px; }
  .logo img { height: 56px; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; gap: 0; background: #FFFFFF; border-bottom: 1px solid var(--bordure);
    padding: 8px 20px 16px; font-size: 17px; box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--bordure); }
  .nav a:last-child { border-bottom: 0; }
  .section { padding: 56px 0; }
  .hero { padding: 32px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero .sub { font-size: 17px; }
  .hero .photo { height: 240px; }
  .h2 { font-size: 26px; }
  .intro { margin-bottom: 28px; }
  .split { gap: 32px; }
  .entreprise .photo { height: 240px; }
  .entreprise .split > img { order: -1; }
  .chiffres strong { font-size: 22px; }
  .contact-card { padding: 24px; }
  .groupe-intro { flex-direction: column; align-items: flex-start; }
  .groupe-logos { flex-basis: 100%; max-width: none; gap: 8px; }
  .groupe-logos a { height: 64px; padding: 6px; }
  .footer .groupe-logos img { height: 44px; }
  .grid-metiers { gap: 12px; }
  .metier { padding: 20px; gap: 6px; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; }
  .metier .ico { width: 28px; height: 28px; grid-row: span 2; }
  .metier h3 { font-size: 16px; }
  .contact-big { font-size: 24px; }
  .contact-mail { font-size: 16px; }
  .page h1 { font-size: 30px; }
  .page dl { grid-template-columns: 1fr; gap: 2px; }
  .page dt { margin-top: 12px; }
  .footer { padding-bottom: 96px; }
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #FFFFFF; border-top: 1px solid var(--bordure); box-shadow: 0 -4px 12px rgba(0,0,0,.06);
  }
  .barre-mobile a { min-height: 46px; }
}
@media (max-width: 480px) {
  .actions .btn, .actions .btn2 { width: 100%; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
