/* Correctifs de disposition : conserver le bandeau, les couleurs et les contenus. */
#container {max-width:1200px;width:calc(100% - 32px);margin:0 auto;padding:24px 0;min-height:300px}
#blockHome {display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start;width:100%;padding:0}
#wrapCLeftHome,#mInsideHome {width:auto;min-width:0;padding:0;margin:0}
#mInsideHome > iframe {display:block;width:100%!important;max-width:100%;height:518px;border:0;margin:0 0 24px}
#mInsideHome #gNewsHome {display:none}
#mInsideHome h2,#mInsideHome > ul > li > h3 {box-sizing:border-box;width:100%;height:auto;min-height:42px;line-height:1.35;padding:10px 12px;font-size:18px;background-size:100% 100%}
#mInsideHome h2 img {width:30px;height:auto;vertical-align:middle;margin-right:8px}
#mInsideHome > ul {margin:0;padding:0;list-style:none}
#mInsideHome > ul > li {margin:0 0 20px}
#mInsideHome ul ul {padding:8px 12px;line-height:1.55}
#englobeTopicHome {display:grid;grid-template-columns: minmax(200px,34%) minmax(0,1fr);width:100%;height:auto;min-height:370px;margin:0}
#listeTopicHome {width:auto;height:auto;margin:0;position:relative;box-sizing:border-box}
#titreTopicHome {width:auto;height:auto;min-height:48px;box-sizing:border-box}
#globalTopicHome,#listingTopicHome {width:auto;margin:0;padding:0}
#listingTopicHome .unTopic {box-sizing:border-box;width:100%;min-height:80px;height:auto;padding:12px;cursor:pointer}
#globalTopicHome {position:static;height:auto;padding-bottom:52px}
#englobeButtonTopicHome {width:100%;bottom:0;box-sizing:border-box}
#topicPShow {width:100%;height:auto;min-height:370px;position:relative;overflow:hidden}
#topicPShow .imageTopicHome {position:relative!important;width:100%;height:auto;min-height:370px;margin:0!important;opacity:1!important;display:none!important}
#topicPShow .imageTopicHome.topicSelected {display:block!important}
#topicPShow .imageTopicHome img {display:block;width:100%;height:280px;object-fit:contain;background:#f5f4ee}
#topicPShow .imageTopicHome > div {max-width:100%;box-sizing:border-box}
#topicPShow .imageTopicHome p {margin:0;padding:12px;line-height:1.5}
#listFonctionnaliteHome {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%;margin:24px 0}
#listFonctionnaliteHome .fonctionHome {width:100%;min-width:0;margin:0!important;box-sizing:border-box}
#listFonctionnaliteHome table {width:100%;font-size:13px;table-layout:fixed}
#listFonctionnaliteHome td {white-space:normal;overflow-wrap:anywhere;padding:6px}
#listFonctionnaliteHome h2,#listFonctionnaliteHome h3 {width:auto;box-sizing:border-box}
#listFonctionnaliteHome img {max-width:100%;height:auto}
#mainBGeneral {width:100%;box-sizing:border-box;min-height:220px}
#mainBGeneral .page {max-width:100%;box-sizing:border-box}
#mainBGeneral article {line-height:1.65;overflow-wrap:break-word}
#mainBGeneral article img {max-width:100%;height:auto}
.tourriers-empty,.tourriers-sections {margin:24px auto 48px;padding:24px;max-width:860px;line-height:1.65;background:#faf9f4;box-sizing:border-box}
.tourriers-sections ul {padding-left:24px;line-height:2}
.tourriers-empty a,.tourriers-sections a {text-decoration:underline;text-underline-offset:3px}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible {outline:3px solid #571d54;outline-offset:3px}
@media(max-width:1000px){
 #blockHome{grid-template-columns:minmax(0,1fr) 260px;gap:16px}
 #englobeTopicHome{grid-template-columns:1fr}
 #listingTopicHome{display:flex;flex-wrap:wrap}#listingTopicHome .unTopic{flex:1;min-width:150px}
 #globalTopicHome{padding-bottom:40px}#topicPShow,#topicPShow .imageTopicHome{min-height:320px}
 #listFonctionnaliteHome{grid-template-columns:1fr}
}
@media(max-width:760px){
 #container{width:calc(100% - 24px);padding:16px 0}
 #blockHome{grid-template-columns:minmax(0,1fr)}
 #listFonctionnaliteHome{grid-template-columns:1fr;gap:20px}
 #mInsideHome{width:100%}#mInsideHome > iframe{max-width:430px;margin:0 auto 24px}
 #mainBGeneral .columns{max-width:100%;box-sizing:border-box}
 #mainBGeneral table{max-width:100%;display:block;overflow-x:auto}
 #footer{max-width:100%;box-sizing:border-box}
 #footer .leftFooter,#footer .rightFooter{float:none;width:100%;box-sizing:border-box}
 #footer .globalMenuBottomFoot{display:flex;flex-wrap:wrap;gap:16px}
}

#topicPShow{margin:0;box-sizing:border-box;min-width:0}
#container:has(.tourriers-empty) #mainBGeneral,#container:has(.tourriers-sections) #mainBGeneral{min-height:0}

/* Homepage: intrinsic heights and touch-friendly flow, scoped to home blocks. */
#englobeTopicHome,#listeTopicHome,#globalTopicHome,#topicPShow,
#topicPShow .imageTopicHome {min-height:0;height:auto}
#englobeTopicHome {align-items:stretch;border:1px solid #ddd8d5;box-sizing:border-box}
#listeTopicHome {display:flex;flex-direction:column;border:0}
#titreTopicHome {display:flex;align-items:center;gap:8px;padding:10px 12px;min-height:52px}
#titreTopicHome img {width:34px;height:auto;margin:0;position:static}
#titreTopicHome h2 {margin:0;padding:0;font-size:23px;line-height:1.2}
#globalTopicHome {display:flex;flex-direction:column;flex:1;padding:0}
#globalTopicHome>li {list-style:none}
#listingTopicHome .unTopic {height:auto!important;min-height:0;padding:14px 12px;border-bottom:1px solid #ddd8d5;line-height:1.45;background-image:none}
#listingTopicHome .unTopicSelected {background:#f0f1d9;color:#302b30;box-shadow:inset 0 0 0 2px #89962f}
#listingTopicHome figure {margin:0;padding:0}
#listingTopicHome .titreTopicHome {display:block;font-weight:700;font-size:16px;line-height:1.35;margin-bottom:5px}
#listingTopicHome figcaption {font-size:13px;line-height:1.45}
#englobeButtonTopicHome {position:static;margin-top:auto;width:100%;height:auto;padding:0}
#englobeButtonTopicHome a {display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px;box-sizing:border-box;width:100%;height:auto}
#topicPShow .imageTopicHome img {height:auto;max-height:320px;aspect-ratio:16/9;object-fit:contain}
#topicPShow .descriptionTopicHome {position:static!important;height:auto!important;min-height:0;overflow:visible;width:100%;background:#fff;color:#302b30}
#topicPShow .imageTopicHome p {font-size:15px;line-height:1.5;padding:16px}
#topicPShow .lireSuite {position:static!important;float:none;height:auto;margin:0;padding:0;text-align:right;background:none;border-radius:0}
#topicPShow .lireSuite a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;background:#b35b13;color:#fff;box-sizing:border-box}
#listFonctionnaliteHome .fonctionHome {height:auto;align-self:start}
#listFonctionnaliteHome table {font-size:14px;line-height:1.4}
#listFonctionnaliteHome th {padding:0}
#listFonctionnaliteHome h2,#listFonctionnaliteHome h3 {height:auto;min-height:42px;line-height:1.3;padding:10px;margin:0}
#listFonctionnaliteHome .imPortfolio {height:auto;position:relative}
#listFonctionnaliteHome .imPortfolio img {display:block;width:100%;height:180px;object-fit:cover}
#listFonctionnaliteHome .imPortfolio a {min-height:44px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
#listFonctionnaliteHome .mapHome {height:auto}
#listFonctionnaliteHome .mapHome iframe {display:block;height:224px!important;min-height:0!important}
#mInsideHome ul ul a {display:inline-block;padding:6px 0;line-height:1.45}
@media(max-width:1100px){
 #blockHome{grid-template-columns:minmax(0,1fr);gap:24px}
 #englobeTopicHome{grid-template-columns:minmax(220px,34%) minmax(0,1fr)}
 #listingTopicHome{display:block}
 #listFonctionnaliteHome{grid-template-columns:repeat(3,minmax(0,1fr))}
 #mInsideHome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 24px}
 #mInsideHome>h2{grid-column:1/-1;margin:0}
 #mInsideHome>iframe{height:518px;margin:0 auto;max-width:430px}
 #mInsideHome>ul{grid-column:2}
}
@media(max-width:600px){
 #englobeTopicHome{grid-template-columns:minmax(0,1fr)}
 #listingTopicHome{display:block}
 #listingTopicHome .unTopic{width:100%;min-width:0}
 #listingTopicHome figcaption{font-size:14px}
 #topicPShow .imageTopicHome img{max-height:none;aspect-ratio:16/9}
 #listFonctionnaliteHome{grid-template-columns:minmax(0,1fr);gap:20px}
 #listFonctionnaliteHome table{font-size:16px}
 #listFonctionnaliteHome td{padding:8px}
 #listFonctionnaliteHome .imPortfolio img{height:auto;aspect-ratio:16/9}
 #mInsideHome{display:block}
 #mInsideHome>h2{margin-bottom:12px}
 #mInsideHome>iframe{margin:0 auto 24px;height:518px}
 #mInsideHome ul ul{font-size:16px}
 #blockHome{font-size:16px;line-height:1.5}
}

#listingTopicHome{height:auto!important;max-height:none!important;overflow:visible}
#globalTopicHome>li{height:auto!important}
#globalTopicHome>li:last-child{margin-top:auto}
#buttonTousTopicHome{position:static!important;width:100%;height:auto;margin:0;padding:0}
#buttonTousTopicHome a{display:flex;align-items:center;justify-content:center;min-height:44px;height:auto;width:100%;padding:10px;box-sizing:border-box}
