/* En-tête et pied de page Digit Communication (repris de la maquette). */

/* Jetons de secours : sur les pages Elementor, les variables globales du kit prennent le relais. */
:root{--bg:#000000;--surface:#0b0b0c;--surface-raised:#151517;--line:#2a2a2e;--line-strong:#6b6b73;--text:#f9f9f9;--text-muted:#a9a9b0;--gold:#f0c83f;--gold-hover:#f5d466;--on-gold:#0a0a0a;--gold-text:#f0c83f;--ring:#f0c83f;--spot:#f0c83f29;--shadow-lift:0 12px 32px rgba(0,0,0,.55);--shadow-glow:0 8px 40px rgba(240,200,63,.22)}

/* Le fond de page suit le thème : l'en-tête translucide reste noir (ou clair) en haut de page. */
html body{background-color:var(--bg)}

/* ------------------------------------------------------------ En-tête */
.dc-hd{position:-webkit-sticky;position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:999;background:color-mix(in srgb,var(--bg) 84%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line);color:var(--text);font-family:"DM Sans",system-ui,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
.dc-hd *,.dc-ft *{box-sizing:border-box}
.dc-hd a,.dc-ft a{color:inherit;text-decoration:none}
.dc-hd a:focus,.dc-hd summary:focus,.dc-hd a:active{outline:0;box-shadow:none}
.dc-hd .dc-nl:focus:not(:hover):not([aria-current=page]){border-bottom-color:transparent}
.dc-ft a:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.dc-hdw{max-width:1400px;margin:0 auto;padding:0 64px;display:flex;align-items:center;justify-content:space-between;height:112px;gap:32px}
.dc-logo{display:block;flex:0 0 auto;line-height:0}
.dc-logo-img{display:block;max-width:none}
.dc-logo-txt{font-family:"Outfit",sans-serif;font-weight:700;font-size:20px;line-height:1.2;color:var(--text)}
.dc-nav{position:relative;display:flex;align-items:center;gap:26px}
.dc-hd .dc-nl{font-family:"Outfit",sans-serif;font-weight:500;font-size:16px;color:var(--text);padding:10px 4px;border-bottom:2px solid transparent;white-space:nowrap}
.dc-hd .dc-nl:hover,.dc-hd .dc-nl[aria-current=page]{color:var(--text);border-bottom-color:var(--gold)}
.dc-dd{position:relative}
.dc-dd>.dc-nl{display:inline-flex;align-items:center;gap:6px}
.dc-dd>.dc-nl svg{transition:transform 250ms ease}
.dc-dd:hover>.dc-nl svg,.dc-dd:focus-within>.dc-nl svg{transform:rotate(180deg)}
.dc-ddm{position:absolute;left:-40px;top:100%;width:700px;padding:14px;margin-top:6px;display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--surface);border:1px solid var(--line-strong);border-radius:20px;box-shadow:var(--shadow-lift);opacity:0;visibility:hidden;translate:0 10px;transition:opacity 220ms ease,translate 220ms ease,visibility 0s linear 220ms;z-index:60}
.dc-ddm::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.dc-dd:hover .dc-ddm,.dc-dd:focus-within .dc-ddm{opacity:1;visibility:visible;translate:0 0;transition-delay:0s}
.dc-hd .dc-dall{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin:0 0 6px;border-radius:12px;border:1px solid var(--line);background:var(--surface-raised);transition:border-color 200ms ease,background 200ms ease}
.dc-hd .dc-dall b{display:block;font-family:"Outfit",sans-serif;font-size:16px;font-weight:600;color:var(--text)}
.dc-hd .dc-dall small{display:block;font-size:13px;color:var(--text-muted)}
.dc-hd .dc-dall-arr{font-family:"Outfit",sans-serif;font-size:20px;font-weight:600;color:var(--gold-text);transition:translate 200ms ease}
.dc-hd .dc-dall:hover{border-color:var(--gold)}
.dc-hd .dc-dall:hover .dc-dall-arr{translate:4px 0}
.dc-hd .dc-di{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:12px;color:var(--text);transition:background 180ms ease}
.dc-hd .dc-di:hover,.dc-hd .dc-di:focus-visible{background:var(--surface-raised);color:var(--text)}
.dc-dic{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;border:1.5px solid var(--line-strong);color:var(--gold-text);transition:background 200ms ease,color 200ms ease,border-color 200ms ease,transform 300ms ease}
.dc-di:hover .dc-dic,.dc-di:focus-visible .dc-dic{background:var(--gold);color:var(--on-gold);border-color:var(--gold);transform:rotate(-6deg)}
.dc-di b{display:block;font-family:"Outfit",sans-serif;font-weight:600;font-size:16px;line-height:1.2}
.dc-di small{display:block;font-size:13px;color:var(--text-muted);line-height:1.3;margin-top:2px}
.dc-hrt{display:flex;align-items:center;gap:24px}
.dc-hut{display:flex;align-items:center;gap:12px}
.dc-lang{font-family:"Outfit",sans-serif;font-weight:600;font-size:14px;letter-spacing:.08em;color:var(--text-muted);white-space:nowrap}
.dc-hd .dc-lang a,.dc-ft .dc-lang a{display:inline-block;padding:10px 2px;color:var(--text-muted)}
.dc-hd .dc-lang a:hover,.dc-hd .dc-lang a[aria-current]{color:var(--text)}
.dc-hd .dc-lang a[aria-current]{border-bottom:2px solid var(--gold)}
.dc-tgl{position:relative;display:inline-flex;align-items:center;width:76px;height:44px;margin:0;border-radius:999px;background:var(--surface-raised);border:1.5px solid var(--line-strong);cursor:pointer;flex:0 0 auto;transition:border-color 200ms ease}
.dc-tgl:hover{border-color:var(--gold)}
.dc-tgl input{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.dc-tgl i{position:absolute;top:3px;left:3px;width:34px;height:34px;border-radius:50%;background:var(--gold);color:var(--on-gold);display:flex;align-items:center;justify-content:center;transition:transform 350ms cubic-bezier(.4,0,.2,1);pointer-events:none}
.dc-tgl:has(input:checked) i{transform:translateX(32px)}
.dc-tgl svg{display:block}
.dc-tgl .dc-sun{display:none}
.dc-tgl:has(input:checked) .dc-sun{display:block}
.dc-tgl:has(input:checked) .dc-moon{display:none}
.dc-tgl:has(input:focus-visible){outline:2px solid var(--ring);outline-offset:3px}
/* Logo : version claire (parties blanches passées en noir, or conservé) affichée en thème clair. */
.dc-logo-clair{display:none!important}
:root:has(#thm:checked) .dc-logo-sombre{display:none!important}
:root:has(#thm:checked) .dc-logo-clair{display:block!important}
.dc-hd .dc-hbtn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:999px;background:var(--gold);color:var(--on-gold);font-family:"Outfit",sans-serif;font-size:16px;font-weight:600;letter-spacing:.01em;line-height:1;white-space:nowrap;transition:background 200ms ease,transform 200ms ease}
.dc-hd .dc-hbtn:hover{background:var(--gold-hover);color:var(--on-gold);transform:translateY(-2px)}
/* menu mobile */
.dc-hdm{display:none}
.dc-hdm>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1.5px solid var(--line-strong);border-radius:50%;cursor:pointer;color:var(--text)}
.dc-hdm summary::-webkit-details-marker{display:none}
.dc-hdm .dc-x-ico{display:none}
.dc-hdm[open] .dc-x-ico{display:block}
.dc-hdm[open] .dc-bg-ico{display:none}
.dc-hdmp{position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:1px solid var(--line);padding:16px 24px 28px;display:flex;flex-direction:column;gap:2px;max-height:80vh;overflow:auto}
.dc-hdmp>a,.dc-hdmp summary.dc-ms{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-family:"Outfit",sans-serif;font-weight:600;font-size:20px;color:var(--text);border-bottom:1px solid var(--line);cursor:pointer;list-style:none}
.dc-hdmp summary.dc-ms::-webkit-details-marker{display:none}
.dc-hdmp summary.dc-ms svg{transition:transform 250ms ease}
.dc-hdmp details[open]>summary.dc-ms svg{transform:rotate(180deg)}
.dc-hdmp details a{display:flex;align-items:center;gap:12px;min-height:46px;padding-left:8px;color:var(--text-muted);font-size:16px}
.dc-hdmp details a:hover{color:var(--gold-text)}
.dc-hdmp>a.dc-hbtn-m{justify-content:center;margin-top:20px;border-bottom:0;font-size:16px;min-height:52px}
.dc-hdmp>.dc-lang{margin-top:16px;text-align:center}
@media (max-width:1180px){
.dc-hdw{padding:0 32px;gap:20px}
.dc-nav{gap:16px}
.dc-ddm{width:600px;left:-120px}
}
@media (max-width:1024px){
.dc-nav,.dc-hrt>.dc-hbtn,.dc-hut>.dc-lang{display:none}
.dc-hdm{display:block}
.dc-hdw{height:72px;padding:0 24px;gap:16px}
.dc-hrt{gap:12px}
.dc-logo-img{width:96px!important}
}

/* -------------------------------------------------------- Pied de page */
.dc-ft{padding:80px 0 40px;background:var(--bg);border-top:1px solid var(--line);color:var(--text);font-family:"DM Sans",system-ui,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
.dc-ft-wrap{max-width:1400px;margin:0 auto;padding:0 64px}
@media (max-width:1180px){.dc-ft-wrap{padding:0 32px}}
.dc-ftw{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr) minmax(0,1.1fr) minmax(0,1.1fr);gap:48px;align-items:start}
.dc-ft-brand{display:flex;flex-direction:column;gap:20px;min-width:0}
.dc-ft .dc-fl{min-width:0;overflow-wrap:anywhere}
.dc-ft-logo{display:block;line-height:0}
.dc-ft p{margin:0;color:var(--text-muted)}
.dc-ft-soc{display:flex;gap:10px;margin-top:4px}
.dc-ft .dc-ft-so{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1.5px solid var(--line-strong);border-radius:50%;color:var(--text);transition:background 200ms ease,color 200ms ease,border-color 200ms ease,transform 250ms ease}
.dc-ft .dc-ft-so:hover{background:var(--gold);color:var(--on-gold);border-color:var(--gold);transform:translateY(-3px)}
.dc-fl{display:flex;flex-direction:column;gap:12px}
.dc-fl h4{margin:0 0 4px;font-family:"Outfit",sans-serif;font-size:18px;font-weight:600;line-height:1.3;color:var(--text)}
.dc-fl span{color:var(--text-muted)}
.dc-ft .dc-fl a,.dc-ft .dc-fl-inline a{color:var(--text-muted)}
.dc-ft .dc-fl a:hover,.dc-ft .dc-fl-inline a:hover{color:var(--gold-text)}
.dc-ft-bottom{margin-top:56px;padding-top:24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;font-size:14px;color:var(--text-muted)}
.dc-ft .dc-ft-credit{color:var(--text);font-weight:600;border-bottom:1px solid var(--gold)}
@media (max-width:1024px){.dc-ftw{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px}.dc-ft-wrap{padding:0 24px}}
@media (max-width:900px){
.dc-ft{padding:64px 0 32px}
.dc-ft-wrap{padding:0 24px}
}
@media (max-width:600px){.dc-ftw{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){.dc-hd *,.dc-ft *{transition:none!important}}
