/* CCG — en-tête et pied de page indépendants d'OceanWP. */
body.ccg-custom-chrome { --ccg-ink: #0b324b; --ccg-blue: #0e94d2; --ccg-focus: #f5b93c; }
body.ccg-custom-chrome #ccg-site-header,
body.ccg-custom-chrome #ccg-site-footer { font-family: inherit; }
#ccg-site-header *, #ccg-site-header *::before, #ccg-site-header *::after,
#ccg-site-footer *, #ccg-site-footer *::before, #ccg-site-footer *::after { box-sizing: border-box; }
#ccg-site-header a, #ccg-site-footer a { text-decoration: none; }
#ccg-site-header a:focus-visible, #ccg-site-header summary:focus-visible,
#ccg-site-footer a:focus-visible { outline: 3px solid var(--ccg-focus); outline-offset: 3px; }

/* Header ------------------------------------------------- */
#ccg-site-header { position: relative; z-index: 50; width: 100%; margin: 0; background: #fff; border-bottom: 1px solid #dce9f0; box-shadow: 0 3px 18px rgba(6,46,72,.045); }
#ccg-site-header .ccg-site-header__inner { display:flex; align-items:center; gap: clamp(12px,1.65vw,26px); width:calc(100% - 40px); max-width:1240px; margin:auto; min-height:92px; padding: 7px 0; }
#ccg-site-header .ccg-site-header__brand { display:flex; flex: 0 0 auto; align-items:center; width:clamp(200px, 19vw, 246px); min-width:0; }
#ccg-site-header .ccg-site-header__brand img { display:block; width:100%; max-width:100%; height:auto; max-height:82px; object-fit:contain; }
#ccg-site-header .ccg-site-header__nav { flex:1 1 auto; min-width:0; }
#ccg-site-header .ccg-nav-list { display:flex; flex-wrap:nowrap; align-items:center; justify-content:center; gap:clamp(3px, .45vw, 8px); margin:0; padding:0; list-style:none; }
#ccg-site-header .ccg-nav-list > li { position:relative; float:none; margin:0; padding:0; list-style:none; }
#ccg-site-header .ccg-nav-list > li > a { display:block; padding:11px clamp(6px,.7vw,11px); border-radius:10px; font-size:13px; line-height:1.35; color:#375064; font-weight:750; white-space:nowrap; transition:color .18s,background-color .18s; }
#ccg-site-header .ccg-nav-list > li > a:hover,
#ccg-site-header .ccg-nav-list > li.current-menu-item > a,
#ccg-site-header .ccg-nav-list > li.current-menu-ancestor > a,
#ccg-site-header .ccg-nav-list > li.current_page_item > a { color:#037bb6; background:#eaf7fd; }
#ccg-site-header .ccg-nav-list ul.sub-menu { display:none; position:absolute; z-index:70; top:100%; left:0; min-width:190px; margin:0; padding:8px; list-style:none; border:1px solid #dbeaf2; background:#fff; border-radius:12px; box-shadow:0 12px 28px rgba(12,50,70,.12); }
#ccg-site-header .ccg-nav-list li:hover > ul.sub-menu,
#ccg-site-header .ccg-nav-list li:focus-within > ul.sub-menu { display:block; }
#ccg-site-header .ccg-nav-list ul.sub-menu a { display:block; padding:9px 10px; color:#274961; font-size:13px; border-radius:8px; }
#ccg-site-header .ccg-nav-list ul.sub-menu a:hover { background:#edf7fd; color:#007cb8; }
#ccg-site-header .ccg-site-header__actions { display:flex; flex:0 0 auto; align-items:center; gap:9px; }
#ccg-site-header details { position:relative; margin:0; padding:0; border:0; }
#ccg-site-header details > summary { display:flex; justify-content:center; align-items:center; gap:5px; list-style:none; cursor:pointer; user-select:none; }
#ccg-site-header summary::-webkit-details-marker { display:none; }
#ccg-site-header .ccg-levels-dropdown > summary { background:var(--ccg-blue); color:#fff; padding:10px 12px; min-height:41px; font-size:13px; font-weight:750; border-radius:10px; white-space:nowrap; transition:background-color .18s; }
#ccg-site-header .ccg-levels-dropdown > summary:hover { background:#087bad; }
#ccg-site-header .ccg-levels-dropdown__panel,
#ccg-site-header .ccg-search-dropdown__panel { position:absolute; z-index:85; top:calc(100% + 13px); right:0; background:#fff; border:1px solid #dce7ed; border-radius:14px; box-shadow:0 14px 30px rgba(10,47,70,.14); }
#ccg-site-header .ccg-levels-dropdown__panel { min-width:154px; padding:8px; }
#ccg-site-header .ccg-levels-dropdown__panel a { display:block; padding:10px 12px; color:var(--ccg-ink); font-weight:750; font-size:14px; border-radius:8px; }
#ccg-site-header .ccg-levels-dropdown__panel a:hover { background:#eef8fe; color:#0086c4; }
#ccg-site-header .ccg-search-dropdown > summary { width:42px; height:42px; border-radius:11px; color:var(--ccg-ink); background:#f0f6f9; }
#ccg-site-header .ccg-search-dropdown > summary:hover { background:#dff2fc; }
#ccg-site-header .ccg-search-dropdown__panel { width:min(340px,calc(100vw - 36px)); padding:16px; }
#ccg-site-header .ccg-search-dropdown__panel form,
#ccg-site-header .ccg-mobile-nav__search form { display:flex; gap:7px; align-items:center; margin:0; }
#ccg-site-header .ccg-search-dropdown__panel input[type="search"],
#ccg-site-header .ccg-mobile-nav__search input[type="search"] { flex:1 1 auto; min-width:0; width:auto; height:43px; border:1px solid #c9dce7; border-radius:9px; padding:10px; box-shadow:none; background:#fff; color:#153b52; font-size:13px; }
#ccg-site-header .ccg-search-dropdown__panel button[type="submit"],
#ccg-site-header .ccg-mobile-nav__search button[type="submit"] { width:auto; min-width:0; height:43px; padding:0 10px; margin:0; border:0; background:var(--ccg-blue); color:#fff; font-size:12px; font-weight:750; border-radius:9px; text-transform:none; }
#ccg-site-header .ccg-mobile-nav { display:none; }

/* Footer ------------------------------------------------- */
#ccg-site-footer { position:relative; isolation:isolate; background:#073551; color:#e5f4fb; margin:0; padding:0; border-top:5px solid #0e94d2; }
#ccg-site-footer .ccg-site-footer__inner { display:grid; grid-template-columns: minmax(240px,1.55fr) minmax(130px,.8fr) minmax(110px,.8fr) minmax(130px,.8fr); gap:clamp(25px,4vw,60px); max-width:1240px; width:calc(100% - 40px); margin:auto; padding:60px 0 54px; }
#ccg-site-footer .ccg-site-footer__logo { display:inline-flex; background:#fff; padding:15px 17px; border-radius:16px; box-shadow:0 10px 27px rgba(0,20,35,.17); }
#ccg-site-footer .ccg-site-footer__logo img { display:block; width:245px; max-width:100%; height:auto; }
#ccg-site-footer .ccg-site-footer__brand > p { max-width:310px; margin:18px 0 15px; line-height:1.65; font-size:14px; color:#d4e9f4; }
#ccg-site-footer .ccg-site-footer__motto { display:inline-block; font-size:12px; font-weight:750; letter-spacing:.01em; color:#ffcf68; }
#ccg-site-footer .ccg-site-footer__column h2 { font-size:15px; font-weight:800; line-height:1.4; color:#fff; padding:0 0 14px; margin:5px 0 11px; border-bottom:1px solid rgba(255,255,255,.18); }
#ccg-site-footer .ccg-site-footer__column ul { list-style:none; padding:0; margin:0; }
#ccg-site-footer .ccg-site-footer__column li { margin:0; padding:0; line-height:1.5; }
#ccg-site-footer .ccg-site-footer__column a { display:inline-block; color:#dcecf4; font-size:14px; padding:6px 0; transition:color .16s,transform .16s; }
#ccg-site-footer .ccg-site-footer__column a:hover { color:#ffcf68; transform:translateX(3px); }
#ccg-site-footer .ccg-site-footer__bottom { background:#04273d; border-top:1px solid rgba(255,255,255,.1); }
#ccg-site-footer .ccg-site-footer__bottom-inner { display:flex; align-items:center; justify-content:space-between; gap:15px; max-width:1240px; width:calc(100% - 40px); margin:auto; padding:17px 0; }
#ccg-site-footer .ccg-site-footer__bottom p { margin:0; font-size:12px; line-height:1.5; color:#b9d6e7; }

/* Navigation mobile natif <details>, sans JS ------------ */
@media (max-width:1100px) {
 #ccg-site-header .ccg-site-header__inner { min-height:78px; }
 #ccg-site-header .ccg-site-header__brand { width:210px; }
 #ccg-site-header .ccg-site-header__nav, #ccg-site-header .ccg-site-header__actions { display:none; }
 #ccg-site-header .ccg-mobile-nav { display:block; margin-left:auto; }
 #ccg-site-header .ccg-mobile-nav > summary { gap:9px; font-size:14px; line-height:1.2; font-weight:800; background:#eaf6fc; color:#0b405d; padding:12px 16px; border-radius:11px; min-height:44px; }
 #ccg-site-header .ccg-mobile-nav[open] > summary { background:#0e94d2; color:#fff; }
 #ccg-site-header .ccg-mobile-nav__panel { position:absolute; z-index:100; left:0; right:0; top:calc(100% - 1px); background:#fff; border-top:1px solid #e1ebf0; border-bottom:1px solid #d4e5ed; box-shadow:0 20px 30px rgba(8,49,72,.12); max-height:calc(100vh - 80px); overflow:auto; padding:12px max(20px,calc((100vw - 1240px)/2)); }
 #ccg-site-header .ccg-mobile-nav__list, #ccg-site-header .ccg-mobile-nav__panel .ccg-nav-list { display:block; list-style:none; margin:0; padding:0; }
 #ccg-site-header .ccg-mobile-nav__list li, #ccg-site-header .ccg-mobile-nav__panel .ccg-nav-list li { display:block; list-style:none; margin:0; }
 #ccg-site-header .ccg-mobile-nav__list a, #ccg-site-header .ccg-mobile-nav__panel .ccg-nav-list a { display:block; padding:12px; border-bottom:1px solid #edf2f5; color:#1a435b; font-weight:700; font-size:14px; }
 #ccg-site-header .ccg-mobile-nav__list li.current-menu-item > a { color:#0784be; background:#eaf7fe; }
 #ccg-site-header .ccg-mobile-nav__list ul.sub-menu { margin:0; padding-left:14px; list-style:none; }
 #ccg-site-header .ccg-mobile-nav__heading { font-weight:800; font-size:14px; margin:18px 0 8px; color:#0c3b58; }
 #ccg-site-header .ccg-mobile-nav__levels { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
 #ccg-site-header .ccg-mobile-nav__levels a { text-align:center; padding:11px 0; background:#edf8ff; color:#0a78af; border-radius:9px; font-weight:800; font-size:14px; }
 #ccg-site-header .ccg-mobile-nav__search { padding:18px 0 8px; }
}
@media (max-width:800px) {
 #ccg-site-footer .ccg-site-footer__inner { grid-template-columns:repeat(2,minmax(0,1fr)); padding:45px 0; gap:32px; }
 #ccg-site-footer .ccg-site-footer__brand { grid-column:1/-1; }
}
@media (max-width:500px) {
 #ccg-site-header .ccg-site-header__inner { width:calc(100% - 28px); min-height:74px; }
 #ccg-site-header .ccg-site-header__brand { width:190px; }
 #ccg-site-header .ccg-mobile-nav > summary { padding:10px 12px; }
 #ccg-site-header .ccg-mobile-nav__panel { padding-left:14px; padding-right:14px; }
 #ccg-site-footer .ccg-site-footer__inner { width:calc(100% - 32px); grid-template-columns:1fr 1fr; gap:26px 22px; padding:38px 0; }
 #ccg-site-footer .ccg-site-footer__brand { grid-column:1/-1; }
 #ccg-site-footer .ccg-site-footer__column:last-child { grid-column:1/-1; }
 #ccg-site-footer .ccg-site-footer__logo img { width:230px; }
 #ccg-site-footer .ccg-site-footer__bottom-inner { flex-direction:column; text-align:center; gap:5px; padding:14px 0; }
}
@media (prefers-reduced-motion:reduce) { #ccg-site-header a, #ccg-site-footer a { transition:none!important; } }
