/* Les Nettoyeurs — feuille de style principale */
:root {
  --black: #000000;
  --text: #1F1F1E;
  --text-soft: #5A5A57;
  --white: #FFFFFF;
  --stone: #EDEDEA;
  --line: #CFCFCA;
  --danger: #B3261E;
  --ok: #1E6B3A;
  --radius: 6px;
  --font-display: 'Comfortaa', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--black); color: var(--white); padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* En-tête */
.site-header { background: var(--white); border-bottom: 1px solid var(--stone); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.site-header .logo img { height: 72px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-weight: 600; font-size: 15px; }
.main-nav a { text-decoration: none; padding: 8px 0; }
.main-nav a:not(.btn):hover { text-decoration: underline; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Boutons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; border-radius: var(--radius); padding: 14px 24px; cursor: pointer; border: 2px solid var(--black); line-height: 1.2; }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #333333; border-color: #333333; color: var(--white); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--stone); }
.main-nav .btn { padding: 10px 18px; color: var(--white); }

/* Titres et textes */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; color: var(--black); }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; max-width: 13em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.02em; max-width: 22em; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.55; max-width: 32em; }
.muted { color: var(--text-soft); }
.intro { max-width: 40em; margin-top: 14px; }

/* Bandeau d'alerte (envoi de formulaire) */
.notice { margin-top: 24px; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }
.notice-ok { background: #E3F1E7; color: var(--ok); }
.notice-error { background: #F8E1DF; color: var(--danger); }

/* Accueil : en-tête de page */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; margin-top: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; padding-bottom: 8px; }
.figures { font-size: 17px; color: var(--text-soft); max-width: 30em; }
.figures strong { color: var(--black); font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--radius); background: var(--stone); }
.hero-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--text-soft); }

/* En-tête des pages intérieures */
.page-head { padding-top: clamp(40px, 7vw, 88px); }
.story { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; max-width: 40em; }
.h1-page { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }

/* Blocs de contenu */
.block { padding-top: clamp(64px, 8vw, 104px); }

.values { margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 48px; }
.values div { max-width: 26em; }
.values dt { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--black); }
.values dd { margin: 6px 0 0; color: var(--text-soft); }

.services { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.service-main { display: flex; flex-direction: column; gap: 18px; }
.service-main .muted { max-width: 36em; }
.list-cols { margin: 6px 0 0; padding-left: 20px; columns: 2 16em; column-gap: 40px; font-weight: 600; }
.list-cols li { break-inside: avoid; padding: 3px 0; }
.aside-note { margin-top: 8px; padding-left: 16px; border-left: 3px solid var(--black); color: var(--text-soft); max-width: 40em; }
.aside-note strong { color: var(--black); }
.service-side { background: var(--stone); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service-side ul { margin: 4px 0 0; padding-left: 20px; color: var(--text-soft); }

/* Léon */
.leon { background: var(--black); color: #E6E6E3; margin-top: clamp(64px, 8vw, 104px); }
.leon-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start; }
.leon-text { display: flex; flex-direction: column; gap: 16px; max-width: 36em; }
.leon h2 { color: var(--white); margin-bottom: 6px; }
.leon a { color: var(--white); }
.leon-mascot { width: 92px; margin-bottom: 8px; filter: invert(1); }

.mail-thread { display: flex; flex-direction: column; gap: 14px; }
.mail { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 18px 20px; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.mail-reply { margin-left: 32px; }
.mail-head { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 1.45; color: var(--text-soft); }
.mail-date { flex: none; }
.mail-subject { font-weight: 800; color: var(--black); }
.mail-file { align-self: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 6px 10px; font-size: 13px; font-weight: 700; }
.mail-file::before { content: ""; display: inline-block; width: 10px; height: 12px; margin-right: 8px; background: #B3261E; vertical-align: -1px; border-radius: 1px; }

/* Sections centrées (Qui sommes-nous) */
.centered { text-align: center; }
.centered h2, .centered .intro { margin-left: auto; margin-right: auto; }
.centered .values, .centered .team { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 48px; }
.centered .values > div { flex: 0 1 300px; max-width: 320px; }
.centered .team > div { flex: 0 1 240px; max-width: 260px; }
main > section.block:last-child { padding-bottom: clamp(64px, 8vw, 104px); }
.centered .team p { margin-left: auto; margin-right: auto; }

/* Organisation */
.team { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px 56px; }
.team h3 { margin-bottom: 6px; }
.team p { color: var(--text-soft); max-width: 30em; }

/* Logos clients */
.clients { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 96px); }
.clients h2 { font-size: 24px; }
.logos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 40px; align-items: center; }
.logos li { height: 76px; display: flex; align-items: center; justify-content: center; }
.logos img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }

/* Recrutement et contact */
.stone { background: var(--stone); margin-top: clamp(64px, 8vw, 104px); }
.stone.page-band, .clients + .stone { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.split-text { display: flex; flex-direction: column; gap: 16px; }
.split-text .muted { max-width: 32em; }
.split-logo { height: 64px; width: auto; align-self: flex-start; margin-bottom: 12px; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.contact-lines .muted { font-weight: 500; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 2px var(--black); }
.form input[type="file"] { border-style: dashed; font-size: 15px; }
.form textarea { resize: vertical; }
.form .hint { font-weight: 400; color: var(--text-soft); font-size: 13px; }
.form button { align-self: flex-start; }
.gate { max-width: 480px; background: var(--stone); border-radius: var(--radius); padding: 28px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 13px !important; color: var(--text-soft); }
.consent input { width: auto; margin-top: 3px; }

/* Pied de page */
.site-footer { background: var(--black); color: #CFCFCA; font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 48px; padding-bottom: 24px; }
.site-footer .brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer .brand img { height: 60px; width: auto; align-self: flex-start; margin-bottom: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #CFCFCA; }
.site-footer a:hover { color: var(--white); }
.copyright { color: #9A9A96; font-size: 13px; padding-bottom: 32px; }

/* Formation */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 36px 28px; }
.video-card { display: flex; flex-direction: column; }
.video-frame { aspect-ratio: 16 / 9; background: var(--black); border-radius: var(--radius); overflow: hidden; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-meta { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.video-meta .title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--black); }
.video-theme { font-size: 14px; color: var(--text-soft); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.placeholder { min-height: 200px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); }

/* Pages de texte (mentions légales) */
.prose { max-width: 760px; padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 24px; margin-top: 16px; }

@media (max-width: 860px) {
  .hero-grid, .services, .leon-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; }
  .mail-reply { margin-left: 16px; }
}
@media (max-width: 640px) {
  .site-header .logo img { height: 54px; }
  .main-nav { gap: 2px 18px; font-size: 14px; }
  .hero-grid { margin-top: 28px; }
  .mail-head { flex-direction: column; gap: 2px; }
  .mail-reply { margin-left: 12px; }
}
