/* =========================================================
   Webandroll Child · styles du header, fil d'Ariane, bloc services et footer
   Charte : noir, rouge #FE0000, Sofia Sans + IBM Plex Mono (auto-hébergées)
   ========================================================= */

/* ---------- Polices auto-hébergées (aucun appel à Google : RGPD et performance) ---------- */
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family:"Sofia Sans"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/sofia-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"Sofia Sans"; font-style:normal; font-weight:900; font-display:swap; src:url("../fonts/sofia-sans-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family:"Sofia Sans"; font-style:italic; font-weight:900; font-display:swap; src:url("../fonts/sofia-sans-latin-900-italic.woff2") format("woff2"); }

:root { --wr-red:#FE0000; --wr-red-dark:#cc0000; --wr-line:#1a1a1a; --wr-mono:"IBM Plex Mono", ui-monospace, monospace; --wr-sans:"Sofia Sans", system-ui, sans-serif; }

html { scroll-padding-top:90px; }
body { background:#000; color:#fff; margin:0; font-family:var(--wr-mono); }
.wr-wrap { max-width:1200px; margin:0 auto; padding:0 40px; box-sizing:border-box; }
.wr-header *, .wr-breadcrumb *, .wr-services *, .wr-footer * { box-sizing:border-box; }
.wr-header a, .wr-breadcrumb a, .wr-services a, .wr-footer a { text-decoration:none; }

/* Lien d'évitement (accessibilité) */
.wr-skip { position:absolute; left:-9999px; top:0; z-index:1000; background:var(--wr-red); color:#fff; padding:10px 16px; font-family:var(--wr-mono); }
.wr-skip:focus { left:16px; top:16px; }

/* Boutons */
.wr-btn { display:inline-block; font-family:var(--wr-sans); font-size:15px; font-weight:900; line-height:1.2; padding:11px 22px; border:2px solid transparent; transition:background .2s, border-color .2s, color .2s; white-space:nowrap; }
.wr-btn-red { background:var(--wr-red); border-color:var(--wr-red); color:#fff !important; }
.wr-btn-red:hover { background:var(--wr-red-dark); border-color:var(--wr-red-dark); }
.wr-btn-ghost { background:transparent; border-color:#333; color:#fff !important; }
.wr-btn-ghost:hover { border-color:var(--wr-red); color:var(--wr-red) !important; }
.wr-eyebrow { font-family:var(--wr-mono); font-size:10px; letter-spacing:.25em; text-transform:uppercase; color:#666; margin-bottom:12px; }

/* ---------- Header ---------- */
.wr-header { position:sticky; top:0; z-index:500; background:rgba(0,0,0,.92); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-bottom:1px solid var(--wr-line); }
body.admin-bar .wr-header { top:32px; }
.wr-header-in { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:72px; }
.wr-logo img { max-height:44px; width:auto; display:block; }
.wr-logo-text { font-family:var(--wr-sans); font-weight:900; font-size:26px; color:#fff !important; letter-spacing:-.01em; }
.wr-logo-text em { color:var(--wr-red); font-style:italic; }
.wr-nav { display:flex; align-items:center; gap:28px; }
.wr-nav ul { list-style:none; margin:0; padding:0; display:flex; gap:22px; }
.wr-nav li a { font-family:var(--wr-mono); font-size:12px; font-weight:500; color:#ccc !important; letter-spacing:.02em; padding:6px 0; border-bottom:1px solid transparent; transition:color .2s, border-color .2s; }
.wr-nav li a:hover, .wr-nav li a[aria-current="page"] { color:#fff !important; border-bottom-color:var(--wr-red); }
.wr-nav li a.wr-ext::after { content:" ↗"; color:var(--wr-red); }
.wr-nav-actions { display:flex; align-items:center; gap:14px; }
.wr-cart { position:relative; color:#fff !important; display:inline-flex; padding:6px; }
.wr-cart:hover { color:var(--wr-red) !important; }
.wr-cart-count { position:absolute; top:-4px; right:-6px; min-width:18px; height:18px; border-radius:9px; background:var(--wr-red); color:#fff; font-size:10px; font-family:var(--wr-mono); display:flex; align-items:center; justify-content:center; padding:0 4px; }
.wr-burger { display:none; background:none; border:1px solid #333; width:44px; height:44px; padding:0; cursor:pointer; flex-direction:column; align-items:center; justify-content:center; gap:5px; }
.wr-burger span { display:block; width:20px; height:2px; background:#fff; transition:transform .25s, opacity .25s; }
.wr-burger[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.wr-burger[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.wr-burger[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ---------- Fil d'Ariane ---------- */
.wr-breadcrumb { background:#000; border-bottom:1px solid #111; }
.wr-breadcrumb ol { list-style:none; margin:0; padding:12px 0; display:flex; flex-wrap:wrap; gap:6px; font-family:var(--wr-mono); font-size:11px; color:#777; }
.wr-breadcrumb li { display:flex; align-items:center; gap:6px; }
.wr-breadcrumb li + li::before { content:"/"; color:var(--wr-red); }
.wr-breadcrumb a { color:#aaa !important; }
.wr-breadcrumb a:hover { color:#fff !important; }
.wr-breadcrumb [aria-current="page"] { color:#fff; }

/* ---------- Bloc services ---------- */
.wr-services { background:#0a0000; border-top:1px solid #1a0000; padding:72px 0; }
.wr-services-head { display:grid; grid-template-columns:1fr auto; gap:32px; align-items:end; margin-bottom:32px; }
.wr-services-title { font-family:var(--wr-sans); font-size:42px; font-weight:900; line-height:.95; color:#fff; margin:0 0 14px; }
.wr-services-title em { color:var(--wr-red); font-style:italic; }
.wr-services-lead { font-family:var(--wr-mono); font-size:12px; color:#ccc; line-height:1.8; max-width:640px; margin:0; }
.wr-services-ctas { display:flex; gap:10px; flex-wrap:wrap; }
.wr-services-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.wr-services-grid a { display:block; border:1px solid #2a0000; background:#000; padding:18px 20px; color:#fff !important; position:relative; transition:border-color .2s; }
.wr-services-grid a::after { content:"→"; position:absolute; right:18px; top:50%; transform:translateY(-50%); color:var(--wr-red); font-family:var(--wr-mono); font-weight:700; }
.wr-services-grid a:hover { border-color:var(--wr-red); }
.wr-services-grid b { display:block; font-family:var(--wr-sans); font-size:18px; font-weight:900; }
.wr-services-grid small { display:block; font-family:var(--wr-mono); font-size:10px; color:#888; margin-top:4px; }

/* ---------- Footer ---------- */
.wr-footer { background:#000; border-top:1px solid var(--wr-line); padding:64px 0 28px; font-family:var(--wr-mono); }
.wr-footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
.wr-footer-brand p { font-size:11px; color:#999; line-height:1.8; margin:14px 0 0; max-width:340px; }
.wr-mail { color:#fff !important; border-bottom:1px solid var(--wr-red); font-size:12px; }
.wr-footer-title { font-family:var(--wr-sans); font-size:16px; font-weight:900; color:#fff; margin-bottom:14px; }
.wr-footer-col ul { list-style:none; margin:0; padding:0; }
.wr-footer-col li { margin:0 0 9px; }
.wr-footer-col a { font-size:11px; color:#999 !important; transition:color .2s; }
.wr-footer-col a:hover { color:#fff !important; }
.wr-footer-bottom { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; border-top:1px solid #111; margin-top:48px; padding-top:20px; font-size:10px; color:#666; }
.wr-footer-bottom ul { list-style:none; margin:0; padding:0; display:flex; gap:18px; flex-wrap:wrap; }
.wr-footer-bottom a { color:#888 !important; }
.wr-footer-bottom a:hover { color:#fff !important; }

/* ---------- Responsive ---------- */
@media (max-width:1100px) {
	.wr-burger { display:flex; }
	.wr-nav { position:fixed; inset:72px 0 auto 0; background:#000; border-bottom:1px solid var(--wr-line); flex-direction:column; align-items:stretch; gap:0; padding:8px 40px 28px; max-height:calc(100vh - 72px); overflow:auto; transform:translateY(-8px); opacity:0; visibility:hidden; transition:opacity .2s, transform .2s, visibility .2s; }
	body.admin-bar .wr-nav { top:104px; }
	.wr-nav.is-open { opacity:1; visibility:visible; transform:none; }
	.wr-nav ul { flex-direction:column; gap:0; }
	.wr-nav li a { display:block; font-size:15px; padding:14px 0; border-bottom:1px solid #111; }
	.wr-nav-actions { margin-top:20px; justify-content:space-between; }
	.wr-services-head { grid-template-columns:1fr; }
	.wr-footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:782px) { body.admin-bar .wr-header { top:46px; } body.admin-bar .wr-nav { top:118px; } }
@media (max-width:600px) {
	.wr-wrap { padding:0 16px; }
	.wr-nav { padding:8px 16px 24px; }
	.wr-services { padding:56px 0; }
	.wr-services-title { font-size:30px; }
	.wr-services-grid, .wr-footer-grid { grid-template-columns:1fr; }
	.wr-services-ctas .wr-btn, .wr-nav-actions .wr-btn { flex:1; text-align:center; }
}
@media (prefers-reduced-motion:reduce) { .wr-nav, .wr-burger span { transition:none; } }
