/* Mecatherm — site statique temporaire */

@font-face { font-family: "Neo Sans"; src: url("../fonts/NeoSansStd-Regular.woff2") format("woff2"), url("../fonts/NeoSansStd-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neo Sans"; src: url("../fonts/NeoSansStd-Bold.woff2") format("woff2"), url("../fonts/NeoSansStd-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Neo Sans"; src: url("../fonts/NeoSansStd-Black.woff2") format("woff2"), url("../fonts/NeoSansStd-Black.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  --red: #bd2334;
  --red-dark: #9a1b2a;
  --navy: #0f1d40;
  --navy-soft: #1c2c57;
  --grey: #f2f4f7;
  --grey-line: #dde2ea;
  --text: #2b3445;
  --muted: #5d6b82;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(15, 29, 64, .08);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Neo Sans", "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Titre de section avec le trait rouge oblique de la charte */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 10px; }
.kicker::before { content: ""; width: 28px; height: 12px; background: var(--navy); transform: skewX(-35deg); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border: 2px solid var(--red); border-radius: var(--radius); background: var(--red); color: var(--white); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transition: background .2s, color .2s; }
.btn::after { content: "→"; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-wire { background: transparent; color: var(--red); }
.btn-wire:hover { background: var(--red); color: var(--white); }
.btn-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- En-tête ---------- */
.pre-header { background: var(--navy); color: #c9d1e2; font-size: 13px; }
.pre-header .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 20px; min-height: 36px; }
.pre-header a { color: #c9d1e2; text-decoration: none; }
.pre-header a:hover { color: var(--white); }
.lang { display: flex; gap: 4px; }
.lang a, .lang span { padding: 2px 8px; border-radius: 2px; font-weight: 700; }
.lang [aria-current] { background: var(--red); color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--grey-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
/* Zone de protection (charte p. 7) : hauteur du « M » en haut/bas (12,1 % de la largeur du logo),
   largeur du « M » à gauche/droite (15,1 %), + 4px de confort ; à gauche la marge de page compte dans la zone. */
.logo { --logo-w: 170px; --logo-y: calc(var(--logo-w) * .121 + 4px); --logo-x: calc(var(--logo-w) * .151 + 4px); display: block; padding: var(--logo-y) var(--logo-x) var(--logo-y) 0; margin-left: max(0px, calc(var(--logo-x) - var(--gutter))); }
.logo img { width: var(--logo-w); }
.nav-toggle { display: none; }
.nav-burger { display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 0; color: var(--navy); font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .03em; white-space: nowrap; text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--red); color: var(--navy); }
.main-nav .nav-abi { display: flex; align-items: center; }
.main-nav .nav-abi a { padding: 0; border-bottom: 0; }
.main-nav .nav-abi img { display: block; width: 85px; height: auto; }

@media (max-width: 1040px) {
  .site-header .wrap { min-height: 68px; }
  .logo { --logo-w: 130px; }
  .nav-toggle { display: block; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 44px; height: 44px; margin: 0; opacity: 0; pointer-events: none; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; }
  .nav-burger span { display: block; height: 3px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: var(--shadow); display: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--grey-line); }
  .main-nav a[aria-current] { color: var(--red); border-bottom-color: var(--grey-line); }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav .nav-abi a { padding: 16px 0 4px; border-bottom: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--red); }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--grey) 0%, #e4e8ef 100%); overflow: hidden; }
.hero .wrap { padding-top: 28px; padding-bottom: 40px; }
.hero h1 { margin-bottom: 20px; }
.hero .hero-banner { display: block; width: 100%; height: auto; max-height: min(300px, 38vh); object-fit: cover; }
@media (max-width: 860px) { .hero .wrap { padding-top: 20px; padding-bottom: 32px; } }

/* En-tête de page intérieure */
.page-head { background: var(--navy); color: var(--white); padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-head h1 { color: var(--white); margin: 0; }
.page-head p { color: #c9d1e2; font-size: 19px; max-width: 40em; margin: 12px 0 0; }
.page-head::after { content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 260px; background: var(--red); transform: skewX(-25deg); opacity: .9; }
.page-head .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) { .page-head { border-bottom: 6px solid var(--red); } .page-head::after { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-grey { background: var(--grey); }
.section-navy { background: var(--navy); color: #d5dbe8; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.text-col { max-width: 50em; }
.rse-pillars { display: grid; gap: 16px; }
.rse-pillar { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; background: var(--grey); border-radius: 12px; padding: 20px; }
.rse-pillar img { width: 72px; height: 72px; border-radius: 0 16px 0 16px; }
.rse-pillar h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .02em; margin: 2px 0 12px; }
.rse-pillar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.rse-pillar li { background: var(--white); border-radius: 8px; padding: 4px 12px; font-size: 15px; color: var(--navy); }
.section-red { background: var(--red); color: var(--white); padding: 40px 0; }
.rse-axes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; }
.rse-axes li { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 20px; border: 2px solid rgba(255, 255, 255, .7); border-radius: var(--radius); text-align: center; font-size: 22px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 700px) { .rse-axes { grid-template-columns: 1fr; gap: 12px; } .rse-axes li { min-height: 0; font-size: 18px; } }
.section-head p { color: var(--muted); font-size: 18px; }
.section-navy .section-head p { color: #c9d1e2; }
.section-navy .kicker { color: #ff9aa5; }
.section-navy .kicker::before { background: var(--red); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cartes solutions */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 380 / 233; object-fit: cover; background: var(--grey); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: 15px; margin: 0; }

/* Liste de services (puces) */
.services { list-style: none; padding: 0; margin: 0 0 24px; }
.services li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--navy); font-weight: 700; }
.services li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; background: var(--red); transform: skewX(-25deg); }

/* Témoignages */
.testi { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.testi:hover { color: var(--text); }
.testi .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.testi .thumb img { width: 100%; height: 100%; object-fit: cover; }
.testi .thumb.play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; transition: transform .2s; }
.testi:hover .thumb.play::after { transform: scale(1.1); }
.testi .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.testi .country { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.testi h3 { font-size: 17px; margin: 6px 0 10px; }
.testi .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--red); }
.testi .more::after { content: " ↗"; }

/* Chiffres clés */
/* Bandeau chiffres (réassurance) */
.reassurance { background: var(--navy); color: var(--white); padding: 52px 0; }
.reassurance .wrap { display: grid; grid-template-columns: 1.25fr 1.9fr; align-items: center; gap: 32px; }
.reassurance h2 { display: flex; gap: 16px; margin: 0; max-width: 20em; color: var(--white); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; }
.reassurance h2::before { content: ""; flex: 0 0 30px; height: 18px; margin-top: .3em; background: var(--red); transform: skewX(-35deg); }
.reassurance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.reassurance li { padding: 6px 16px; border-left: 1px solid rgba(255, 255, 255, .3); text-align: center; font-size: 20px; line-height: 1.25; }
.reassurance .fig { display: block; white-space: nowrap; }
.reassurance strong { font-size: clamp(34px, 3.4vw, 50px); font-weight: 900; line-height: 1.05; }
.reassurance .unit { font-size: 20px; }
.reassurance .pre, .reassurance .post { display: block; }
@media (max-width: 960px) { .reassurance .wrap { grid-template-columns: 1fr; } .reassurance li:first-child { border-left: 0; } }
@media (max-width: 560px) { .reassurance ul { grid-template-columns: 1fr; gap: 20px; } .reassurance li { border-left: 0; } .reassurance li + li { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 20px; } }

/* Piliers */
.pillar { background: var(--white); border-top: 4px solid var(--red); padding: 24px; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); }
.pillar p { color: var(--muted); font-size: 15px; margin: 0; }
/* Page entreprise : vision / mission */
.intro { font-size: 18px; }
.statements { grid-template-columns: 1fr 1fr; }
.values-title { margin-top: 56px; }
.statement { background: var(--navy); color: var(--white); padding: 28px 32px; border-radius: var(--radius); }
.statement h2 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.statement p { font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.35; margin: 0; }
@media (max-width: 700px) { .statements { grid-template-columns: 1fr; } }

/* Citation président */
.quote { border-left: 4px solid var(--red); padding: 4px 0 4px 24px; font-size: 20px; color: var(--navy); }
.quote cite { display: block; margin-top: 12px; font-size: 15px; font-style: normal; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-boxes .box { background: var(--white); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-boxes .box.highlight { background: var(--red); color: var(--white); }
.contact-boxes .box.highlight h2, .contact-boxes .box.highlight a { color: var(--white); }
.contact-boxes h2, .contact-boxes h3 { font-size: 20px; margin-bottom: 10px; }
.contact-boxes p { margin: 0 0 6px; }
.contact-boxes a { font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-top { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) {
  .contact-top { grid-template-columns: 1fr; }
  .contact-top .box { padding: 22px 20px; }
  .contact-top a { font-size: 15px; }
}
.site-card address { font-style: normal; color: var(--muted); }
.site-card .flag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }

.region { margin-top: 44px; }
.region h3 { padding-bottom: 10px; border-bottom: 2px solid var(--grey-line); margin-bottom: 20px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.person { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.person img, .person .avatar { flex: 0 0 72px; width: 72px; height: 75px; object-fit: cover; border-radius: var(--radius); background: var(--grey); }
.person .avatar { display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--navy); }
.person h4 { font-size: 16px; margin: 0 0 2px; }
.person .role { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.person a { display: block; padding: 3px 0; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Texte long (mentions légales) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #b7c1d6; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h2 { color: var(--white); font-size: 20px; }
.site-footer h3 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #e2e7f1; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid var(--navy-soft); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; grid-template-columns: none; font-size: 13px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }
.notfound .btns { justify-content: center; }

/* Utilitaire (pas de style inline : CSP style-src 'self') */
.mt { margin-top: 32px; }
.site-footer h3.mt { margin-top: 20px; }

/* Événements (salons) */
.event { background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.event:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-2px); }
.event img { width: 100%; aspect-ratio: 277 / 155; object-fit: contain; background: var(--white); border-bottom: 1px solid var(--grey-line); }
.event .body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.event time { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.event h3 { font-size: 18px; margin: 6px 0 2px; }
.event .city { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.event .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--red); }
.event .more::after { content: " ↗"; }
