/* Global safeguards against off-screen widgets and wide content. */
html, body { max-width: 100%; }
#outer-wrap, #wrap { max-width: 100%; }
.entry-content img, .wp-block-image img { max-width:100%; height:auto; }
.entry-content figure, .wp-block-table { max-width:100%; }
.wp-block-table { overflow-x:auto; -webkit-overflow-scrolling:touch; }
/* WordPress/OceanWP header: keep mobile navigation anchored to viewport. */
@media (max-width: 1024px) {
 html, body { width:100%; max-width:100%; overflow-x:clip; }
 #outer-wrap, #wrap, #main, #content-wrap, #content, #primary, .content-area, .entry-content, .single-page-article {
   max-width:100%; min-width:0; box-sizing:border-box;
 }
 #site-header { width:100%; max-width:100%; box-sizing:border-box; }
 #site-header-inner, #site-header .container, #site-header .container.clr {
   position:relative; box-sizing:border-box; width:100%; max-width:100%; min-width:0;
   margin-left:auto; margin-right:auto; padding-left:16px!important; padding-right:16px!important;
 }
 #site-logo { float:left; max-width:min(57vw,210px)!important; width:min(57vw,210px)!important; }
 #site-logo a { display:block; width:100%!important; max-width:100%!important; }
 #site-logo img { max-width:100%!important; height:auto!important; }
 #oceanwp-mobile-menu-icon, #mobile-menu, #mobile-menu-toggle, .oceanwp-mobile-menu-icon,
 #site-header .oceanwp-mobile-menu-icon, #site-header #oceanwp-mobile-menu-icon {
   position:relative; z-index:999; box-sizing:border-box; max-width:44vw;
 }
 #oceanwp-mobile-menu-icon, .oceanwp-mobile-menu-icon { float:right!important; right:auto!important; margin-right:0!important; }
 #mobile-dropdown { box-sizing:border-box; max-width:100vw; width:100%; left:0; right:0; }
 #mobile-dropdown ul, #mobile-dropdown li, #mobile-dropdown a { max-width:100%; box-sizing:border-box; }
 .wp-block-columns, .ci-split, .ci-home .ci-grid, .ci-home .ci-hero .ci-wrap {
   max-width:100%; min-width:0;
 }
 .ci-home .ci-hero-photo, .ci-home .ci-brand-preview, .ci-home .ci-card { max-width:100%; min-width:0; }
 .ci-tlouch, .ci-tools, .ci-olim-tool, [class*="ci-calc"], [class*="ci-cr-"] { max-width:100%; box-sizing:border-box; }
 input, select, textarea { max-width:100%; }
}
@media (max-width: 767px) {
 #site-logo { max-width:min(58vw,190px)!important; width:min(58vw,190px)!important; }
 #site-logo a { height:56px!important; }
 .ci-home .ci-hero .ci-wrap { padding-left:20px!important; padding-right:20px!important; }
 #site-header-inner { padding-left:14px!important; padding-right:14px!important; }
 .entry-content table { display:block; overflow-x:auto; max-width:100%; }
}
/* Tablet widths need the same compact navigation as phones: long French labels
   otherwise move the hamburger off-screen on OceanWP. */
@media (min-width: 960px) and (max-width: 1199px) {
 body #site-header #site-navigation-wrap { display:none!important; }
 body #site-header #oceanwp-mobile-menu-icon,
 body #site-header .oceanwp-mobile-menu-icon { display:block!important; float:right!important; position:relative!important; right:0!important; max-width:42vw!important; }
 body #site-header #oceanwp-mobile-menu-icon a,
 body #site-header .oceanwp-mobile-menu-icon a { display:inline-flex!important; align-items:center; justify-content:flex-end; }
 body #site-header #site-header-inner { display:block!important; }
}
@media (max-width: 1199px) {
 html, body { width:100%!important; max-width:100%!important; overflow-x:clip!important; }
 body #outer-wrap, body #wrap, body #main, body #content-wrap { width:100%!important; max-width:100%!important; }
 body #site-header #site-header-inner { max-width:100%!important; width:100%!important; padding-left:16px!important; padding-right:16px!important; box-sizing:border-box!important; }
 body #site-header #site-logo { width:min(58vw,200px)!important; max-width:min(58vw,200px)!important; }
 body #site-header #site-logo a { width:100%!important; max-width:100%!important; height:60px!important; }
 body #site-header #oceanwp-mobile-menu-icon { margin:0!important; padding:0!important; right:0!important; }
 body #mobile-dropdown { left:0!important; right:0!important; width:100%!important; max-width:100vw!important; }
}
@media (max-width: 767px) {
 body #site-header #site-logo { width:min(58vw,185px)!important; max-width:min(58vw,185px)!important; }
 body #site-header #site-logo a { height:54px!important; }
}

/* Contact sans widgets latéraux OceanWP */
body.page-id-16 #right-sidebar,body.page-id-16 #secondary{display:none!important;}
body.page-id-16 #primary,body.page-id-16 .content-area{width:100%!important;max-width:100%!important;float:none!important;}
body.page-id-16 .ci-contact-paths,body.page-id-12 .ci-entry-paths{min-width:0;max-width:100%;}

/* Footer juridique discret et lisible, même sur smartphone. */
.ci-legal-footer{padding:18px 12px 24px;text-align:center;color:#53657a;background:#f6f8fa;font-size:13px;line-height:1.9;border-top:1px solid #e3eaf2}
.ci-legal-footer a{color:#194b72;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.ci-legal-footer small{display:block;color:#66778a;font-size:12px}
@media(max-width:600px){.ci-legal-footer{padding:17px 10px 24px}.ci-legal-footer a{display:inline-block;padding:0 2px}}


/* Logo de marque plus lisible — 2026-11-17. Image source 520x66 (bannière large).
   Augmenter la largeur réelle et ne pas seulement étirer sa boîte verticale. */
@media (min-width: 1200px) {
 body #site-header #site-logo { width:265px!important;max-width:265px!important; }
 body #site-header #site-logo a { width:265px!important;max-width:265px!important;height:68px!important;background-size:contain!important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
 body #site-header #site-logo { width:min(68vw,285px)!important;max-width:min(68vw,285px)!important; }
 body #site-header #site-logo a { width:100%!important;max-width:100%!important;height:70px!important;background-size:contain!important; }
}
@media (max-width: 767px) {
 body #site-header #site-header-inner { padding-left:12px!important;padding-right:12px!important;min-height:76px!important; }
 body #site-header #site-logo {
    width:min(74vw,300px)!important;
    max-width:min(74vw,300px)!important;
    min-width:0!important;
 }
 body #site-header #site-logo a {
    width:100%!important;max-width:100%!important;
    height:76px!important;
    background-size:contain!important;
    background-position:left center!important;
 }
 body #site-header #oceanwp-mobile-menu-icon,
 body #site-header .oceanwp-mobile-menu-icon {
    max-width:21vw!important;
    min-width:38px!important;
 }
}
@media (max-width: 360px) {
 body #site-header #site-logo {width:70vw!important;max-width:70vw!important;}
}
