/*
Theme Name: Cirque Métropole
Theme URI: https://cirquemetropole.com/
Author: Cirque Métropole
Description: Thème immersif responsive pour Cirque Métropole. Navigation et contenus éditables.
Version: 1.4.9
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cirque-metropole
*/
:root{--red:#790008;--dark:#350006;--gold:#ffd45e;--blue:#090b5c}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#fff;background:#08042e;font-family:Georgia,'Times New Roman',serif}a{color:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid #fff;outline-offset:3px}.skip{position:absolute;left:-9999px;z-index:100}.skip:focus{left:8px;top:8px;background:#fff;color:#111;padding:12px}.scene{position:relative;max-width:1670px;min-height:980px;margin:auto;background: url('assets/decor-reference.webp') center top / 100% auto no-repeat,linear-gradient(140deg,#0a115c,#4e0010 50%,#070b53);padding:0 0 80px}.site-header{position:relative;z-index:10;width:100%;aspect-ratio:1670/190;background:url('assets/bandeau.webp') center top / 100% 100% no-repeat}.desktop-nav{position:absolute;inset:0}.nav-link{position:absolute;top:37%;height:58%;display:block;text-indent:-9999px;overflow:hidden;border-radius:14px}.nav-link[aria-current=page]{box-shadow:inset 0 0 0 2px rgba(255,214,85,.6)}.nav-link:hover{background:rgba(255,210,60,.13)}.nav-link:nth-child(1){left:3%;width:7%}.nav-link:nth-child(2){left:11%;width:9%}.nav-link:nth-child(3){left:20%;width:8%}.nav-link:nth-child(4){left:28%;width:8%}.nav-link:nth-child(5){left:39%;width:22%;height:95%;top:0}.nav-link:nth-child(6){left:65%;width:7%}.nav-link:nth-child(7){left:72%;width:7%}.nav-link:nth-child(8){left:79%;width:6%}.nav-link:nth-child(9){left:85%;width:8%}.nav-link:nth-child(10){left:93%;width:6%}.mobile-header{display:none}.central-panel{position:relative;z-index:1;width:min(62%,1010px);margin:48px auto 0;padding:24px 32px 28px;border:4px solid #ffcf4c;border-radius:54px;background:linear-gradient(135deg,rgba(112,0,6,.98),rgba(75,0,5,.99));box-shadow:0 0 0 4px #a30a07,0 0 26px #ffb600, inset 0 0 28px #ae260a}.central-panel h1{color:#ffdc73;text-align:center;font-size:clamp(1.8rem,3.1vw,3.25rem);line-height:1.12;text-shadow:0 3px 3px #2b0000;margin:0 0 12px}.lead{text-align:center;font-size:clamp(1rem,1.5vw,1.3rem);margin:0 0 18px}.hero-image{display:block;width:100%;max-height:355px;object-fit:cover;border-radius:25px;border:3px solid #ffd65d;box-shadow:0 0 16px #ffa900}.intro{font-size:1.07rem;line-height:1.5;max-width:840px;margin:18px auto;text-align:center}.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.tile{text-decoration:none;display:block;border:2px solid #ffd75d;border-radius:18px;overflow:hidden;background:#7d0008;box-shadow:0 0 9px #ffb300;text-align:center}.tile:hover,.tile:focus-visible{transform:translateY(-2px);box-shadow:0 0 17px #ffdc52}.tile img{display:block;width:100%;aspect-ratio:1.6;object-fit:cover}.tile span{display:block;padding:8px 5px;font-size:1rem;font-weight:bold}.carousel-row{display:flex;align-items:center;gap:8px}.carousel-window{overflow:hidden;flex:1}.carousel-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.arrow{flex:0 0 42px;height:48px;border:2px solid #ffd75d;background:#a0000d;color:#fff;border-radius:50%;font-size:1.7rem;box-shadow:0 0 10px #ffb900}.dots{text-align:center;margin:10px}.dots span{display:inline-block;width:9px;height:9px;margin:0 3px;background:#ffd65a;border-radius:50%}.cta-row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:16px 0}.cta{display:inline-block;background:linear-gradient(#bd0b10,#650008);border:2px solid #ffcf4d;border-radius:30px;padding:11px 20px;text-decoration:none;font-weight:bold;box-shadow:0 0 10px #ffa800}.cta:hover{background:#c42120}.content-panel{min-height:540px}.content-panel .entry-content{font-size:1.13rem;line-height:1.7;overflow-wrap:anywhere}.content-panel .entry-content img{max-width:100%;height:auto;border-radius:15px}.content-panel .entry-content a:not(.cta){color:#ffe087}.content-panel h2{color:#ffe087}.content-panel .wp-block-columns{gap:20px}.content-panel p{margin:0 0 1em}.content-panel ul{padding-left:1.5em}.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.zoom-photo{padding:0;border:2px solid #ffce53;border-radius:14px;overflow:hidden;background:none}.zoom-photo img{width:100%;display:block}.site-footer{text-align:center;padding:25px;background:#2d0007;color:#ffe09a}.lightbox[aria-hidden=true]{display:none}.lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:55px 10px 20px}.lightbox img{max-width:95vw;max-height:82vh;object-fit:contain}.lightbox-controls{position:absolute;top:10px;display:flex;gap:16px}.lightbox button{background:#81000b;color:#fff;border:1px solid #ffd55e;border-radius:9px;padding:10px 14px}.screen-reader-text{position:absolute;left:-9999px}.no-results{margin:20px auto;max-width:900px}
@media(max-width:1050px){.scene{min-height:100vh;background-size:120% auto}.central-panel{width:78%;margin-top:24px;padding:20px;border-radius:28px}.tiles,.carousel-track{grid-template-columns:repeat(2,minmax(0,1fr))}.carousel-track .tile:nth-child(n+3){display:none}.site-header{aspect-ratio:1670/190}}
@media(max-width:700px){.scene{background:radial-gradient(ellipse at 50% 10%,#152bb0 0,#0c0645 35%,#4c0012 100%);min-height:100vh;padding-bottom:32px}.site-header{height:auto;aspect-ratio:auto;background:none;position:sticky;top:0;z-index:100}.desktop-nav{display:none}.mobile-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;background:linear-gradient(#ae0711,#540008);border-bottom:3px solid #ffce47;box-shadow:0 0 12px #ffa500}.mobile-brand{text-decoration:none;color:#ffe17e;font-weight:bold;font-size:1.12rem;text-shadow:1px 1px #000;line-height:1.1}.mobile-brand small{display:block;font-size:.66rem;color:#fff}.menu-toggle{min-height:44px;border:2px solid #ffd75d;background:#80000a;color:#fff;border-radius:10px;padding:8px 14px;font-weight:bold}.mobile-links{display:none;flex-basis:100%;grid-template-columns:1fr 1fr;gap:7px}.mobile-header.open .mobile-links{display:grid}.mobile-links a{padding:12px 9px;text-decoration:none;border:1px solid #dca943;border-radius:9px;background:#70000b;font-size:.94rem}.mobile-links a[aria-current=page]{color:#ffe067}.central-panel{width:calc(100% - 20px);margin:16px auto 0;padding:18px 12px;border-width:2px;border-radius:23px;box-shadow:0 0 13px #ffa800}.central-panel h1{font-size:clamp(1.55rem,6.2vw,2.1rem)}.hero-image{max-height:260px}.intro{font-size:1rem}.tiles,.carousel-track{gap:8px}.tile span{font-size:.88rem}.arrow{flex-basis:36px;height:42px}.cta{width:100%;text-align:center;min-height:46px}.content-panel .entry-content{font-size:1.04rem;line-height:1.6}.content-panel .wp-block-columns{display:block}.site-footer{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

/* v0.8 : cadre resserré pour dégager Elena et le jongleur, accueil distinct du décor */
@media(min-width:1051px){.scene-home .central-panel{width:min(62%,1010px);margin-top:36px}.scene:not(.scene-home) .central-panel{width:min(62%,1010px)}}
.scene-home .central-panel{background:linear-gradient(135deg,rgba(91,0,9,.96),rgba(47,0,9,.98));box-shadow:0 0 0 4px #a30a07,0 0 30px #ffb600,inset 0 0 24px #df3e0a}
.scene-home .hero-image{max-height:none;aspect-ratio:16/9;object-fit:cover;object-position:center;border:4px solid #ffda66;box-shadow:0 0 24px #ffbd00,0 0 5px #fff}
@media(min-width:701px) and (max-width:1050px){.central-panel{width:70%}}
@media(max-width:700px){.central-panel,.scene-home .central-panel{width:calc(100% - 20px)}.scene-home .hero-image{aspect-ratio:4/3}}

/* v0.9 — Référence graphique n°2 conservée sans retouche dans assets/maquette-2-reference.webp.
   Les éléments réellement cliquables restent HTML, jamais des textes incrustés dans une image.
   Le décor et le menu sont communs à toutes les pages. */
@media(min-width:1051px){
 .central-panel,.scene-home .central-panel,.scene:not(.scene-home) .central-panel{width:min(60%,990px);margin-top:30px}
 .scene{background-position:center top;background-size:100% auto}
}
@media(min-width:701px) and (max-width:1050px){
 .central-panel,.scene-home .central-panel{width:70%}
}
@media(max-width:700px){
 .central-panel,.scene-home .central-panel{width:calc(100% - 20px)}
}

/* v1.0 — fond sans cadre ni boutons incrustes; bandeau valide conserve a l'identique */
@media(min-width:1051px){
.scene{background-image:url('assets/decor-reference.webp'),linear-gradient(140deg,#0a115c,#4e0010 50%,#070b53);background-size:100% auto;background-position:center top;background-repeat:no-repeat;min-height:100vh}
.central-panel,.scene-home .central-panel,.scene:not(.scene-home) .central-panel{width:min(59%,985px);margin-top:42px}
}
@media(min-width:701px) and (max-width:1050px){
.scene{background-image:url('assets/decor-reference.webp'),linear-gradient(140deg,#0a115c,#4e0010 50%,#070b53);background-size:100% auto;background-position:center top;background-repeat:no-repeat}
.central-panel,.scene-home .central-panel{width:65%;margin-top:24px}
}
@media(max-width:700px){
.scene{background-image:linear-gradient(to bottom,rgba(4,5,37,.1),rgba(35,0,18,.9) 85%),url('assets/decor-reference.webp');background-size:100% 100%,auto 580px;background-position:center top,center 0;background-repeat:no-repeat;background-color:#10052f}
.central-panel,.scene-home .central-panel{width:calc(100% - 20px)}
}

.cm-home-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0 8px;padding:0;list-style:none}.cm-home-buttons li{min-width:0;margin:0;list-style:none}.cm-home-buttons a{display:flex;align-items:center;justify-content:center;min-height:76px;height:100%;padding:14px;text-align:center;color:#ffe5a0;background:linear-gradient(#ad1018,#650008);border:2px solid #ffcf4d;border-radius:18px;box-shadow:0 0 9px #ffb300;text-decoration:none;font-weight:bold;overflow-wrap:anywhere}.cm-home-buttons a:hover{background:#b51b22}.cm-home-buttons a:focus-visible{outline:3px solid white;outline-offset:3px}@media(max-width:700px){.cm-home-buttons{grid-template-columns:minmax(0,1fr);gap:12px}.cm-home-buttons a{min-height:56px}}

.cm-home-buttons a{box-sizing:border-box;flex-direction:column;gap:10px;min-height:104px}.cm-home-buttons .cm-home-icon{display:block;width:38px;height:38px;flex:none;color:#ffda80;filter:drop-shadow(0 0 3px #e9a438)}.cm-home-buttons a span{max-width:100%}@media(max-width:700px){.cm-home-buttons a{flex-direction:row;min-height:64px;justify-content:flex-start;text-align:left;gap:14px}.cm-home-buttons .cm-home-icon{width:30px;height:30px}}

/* Accueil : pictogrammes ivoire, style du bandeau traditionnel. */
.scene-home .cm-home-buttons{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.scene-home .cm-home-buttons a{flex-direction:column;justify-content:center;text-align:center;gap:5px;min-height:100px;padding:10px 8px;color:#fff4dc;background:radial-gradient(ellipse at 50% 0%,#d8290d 0%,transparent 70%),linear-gradient(180deg,#a90908,#640605 75%,#410805);border:1px solid #b66b39;border-radius:10px;box-shadow:inset 0 1px 2px #ed7a40;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.2;text-shadow:0 1px 2px #380000}
.scene-home .cm-home-buttons .cm-home-icon{width:44px;height:44px;color:#fff4dc;filter:none}
.scene-home .cm-home-buttons a:hover{background:linear-gradient(#c62b13,#800908);border-color:#ffcf65;box-shadow:0 0 7px #dba64d}
@media(max-width:700px){.scene-home .cm-home-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.scene-home .cm-home-buttons a{font-size:1rem;min-height:94px}.scene-home .cm-home-buttons .cm-home-icon{width:36px;height:36px}}
@media(max-width:340px){.scene-home .cm-home-buttons{grid-template-columns:1fr}}

/* v1.3.0 — navigation tactile, indépendante du bandeau graphique PC. */
@media(max-width:1199px){
 body .site-header{aspect-ratio:auto!important;height:auto!important;background:none!important;position:relative;top:auto;z-index:10}
 .site-header .desktop-nav{display:none}
 .site-header .mobile-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:16px clamp(10px,3vw,28px);background:radial-gradient(ellipse at top,#b71c13,transparent 75%),linear-gradient(#790008,#350006);border-bottom:2px solid #e9b94f;box-shadow:0 4px 14px #230007}
 .mobile-header .mobile-brand{flex:1 1 100%;text-align:center;font-size:clamp(1.25rem,3vw,2rem);color:#ffdc73;letter-spacing:.035em;line-height:1.2}
 .mobile-header .mobile-brand small{font-size:.72rem;font-style:italic;letter-spacing:0;margin-top:4px}
 .cm-mobile-actions{display:flex;gap:10px;width:100%;max-width:560px}
 .mobile-header .menu-toggle,.mobile-header .cm-mobile-ticket{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px;color:#fff4dc;border:1px solid #e9b94f;border-radius:9px;background:linear-gradient(#a91b0d,#650008);font: bold 1rem Georgia,serif;text-decoration:none}
 .mobile-header .cm-mobile-ticket{color:#ffdc73}.cm-mobile-ticket svg{width:24px;height:24px;flex:none}
 .mobile-header .mobile-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;flex-basis:100%;max-width:850px;margin:auto}
 .mobile-header.cm-js:not(.open) .mobile-links{display:none}
 .mobile-header:not(.cm-js) .menu-toggle{display:none}
 .mobile-header .mobile-links a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:82px;padding:9px 4px;text-align:center;color:#fff4dc;font:bold clamp(.83rem,1.8vw,1.1rem)/1.2 Georgia,serif;overflow-wrap:anywhere;background:radial-gradient(ellipse at top,#c62810,transparent 80%),linear-gradient(#930b08,#500604);border:1px solid #b66b39;border-radius:9px;text-decoration:none;box-shadow:inset 0 1px 2px #d66b37}
 .mobile-links a .cm-home-icon{width:32px;height:32px;flex:none;color:#fff4dc}
 .mobile-header .mobile-links a[aria-current=page]{border-color:#ffdc73;color:#ffdc73;box-shadow:inset 0 0 0 1px #ffdc73}
 .mobile-header .mobile-links a:hover{border-color:#ffdc73;background:#a91b0d}
 .central-panel,.scene-home .central-panel,.scene:not(.scene-home) .central-panel{width:min(calc(100% - 28px),900px);padding:clamp(14px,3vw,28px);margin-top:24px;min-width:0;border-radius:24px}
}
@media(min-width:701px) and (max-width:1199px){.mobile-header .mobile-links{grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-header .mobile-links a{min-height:92px}}
@media(max-width:350px){.mobile-header .mobile-links{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:1199px){.mobile-header .mobile-brand{display:flex;justify-content:center;align-items:center}.mobile-header .mobile-brand img{display:block;width:336px;max-width:100%;height:auto;object-fit:contain}}

/* v1.3.8 — écrin du logo original, uniquement sur écrans tactiles. */
@media(max-width:1199px){
 .site-header .mobile-header{background:radial-gradient(ellipse at 50% 0%,#a92119 0%,transparent 65%),linear-gradient(110deg,#350006,#790008 45%,#350006);padding-top:18px}
 .mobile-header .mobile-brand{flex:0 1 370px;max-width:100%;padding:8px;position:relative;isolation:isolate;border:2px solid #e9b94f;border-radius:18px;background:linear-gradient(135deg,#410006,#a31713 45%,#410006);box-shadow:0 0 0 3px #490006,0 0 0 4px #9c682a,0 5px 16px #210003,inset 0 0 10px #f1a447;}
 .mobile-header .mobile-brand img{width:336px;max-width:100%;height:auto;flex-shrink:1;border-radius:0;filter:none;}
 .cm-mobile-actions{flex-basis:100%;margin-top:4px}
}
@media(max-width:380px){.mobile-header .mobile-brand{padding:5px;border-radius:12px}}

/* v1.3.8 — seul le logo possède un écrin; navigation indépendante. */
@media(max-width:1199px){
 .site-header .mobile-header{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;gap:18px;padding:18px clamp(12px,3vw,28px) 8px;background:none;border:0;box-shadow:none}
 .mobile-header .mobile-brand{flex:0 0 auto;width:370px;max-width:100%;margin:0 auto;}
 .mobile-header .cm-mobile-actions{flex:0 0 auto;width:100%;max-width:560px;margin:0 auto;gap:12px}
 .mobile-header .menu-toggle,.mobile-header .cm-mobile-ticket{flex:1 1 0;min-width:0;min-height:50px;border-radius:12px;box-shadow:0 3px 9px #230007,inset 0 1px 0 #d77b40;}
 .mobile-header .cm-mobile-ticket{border:2px solid #ffcf4d}
 .mobile-header .mobile-links{flex:0 0 auto;margin:0 auto;width:100%;}
 .mobile-header .menu-toggle:hover,.mobile-header .cm-mobile-ticket:hover{background:linear-gradient(#c42a18,#790008)}
}

@media(max-width:1199px){body .scene{background: url(assets/fond-tablet.webp) center top / 100% auto no-repeat #450009;}}
@media(max-width:700px){body .scene{background-image:url(assets/fond-mobile.webp);}}
.cm-news-card{padding:clamp(12px,3vw,24px);margin:0 0 22px;border:1px solid #cda451;border-radius:14px;overflow-wrap:anywhere}.cm-news-card img{max-width:100%;height:auto;border-radius:8px}.cm-news-date{font-size:.9em;opacity:.85}.cm-news-card .cma-gallery img{aspect-ratio:4/3;object-fit:contain;background:#280008}

/* Navigation: stretch incomplete final rows, without changing photo grids. */
.cm-home-buttons > li:last-child:nth-child(odd),.cma-nav > a:last-child:nth-child(odd){grid-column:1/-1}
@media(max-width:350px){.mobile-header .mobile-links > a:last-child:nth-child(odd){grid-column:1/-1}}
@media(min-width:351px) and (max-width:700px){.mobile-header .mobile-links > a:last-child:nth-child(3n+1){grid-column:span 3}.mobile-header .mobile-links > a:nth-last-child(2):nth-child(3n+1){grid-column:span 2}}
@media(min-width:701px) and (max-width:1199px){.mobile-header .mobile-links > a:last-child:nth-child(5n+1){grid-column:span 5}.mobile-header .mobile-links > a:nth-last-child(2):nth-child(5n+1){grid-column:span 3}.mobile-header .mobile-links > a:last-child:nth-child(5n+2){grid-column:span 2}.mobile-header .mobile-links > a:nth-last-child(3):nth-child(5n+1),.mobile-header .mobile-links > a:nth-last-child(2):nth-child(5n+2){grid-column:span 2}.mobile-header .mobile-links > a:nth-last-child(4):nth-child(5n+1){grid-column:span 2}}


/* 1.3.10 — grille mobile en flux naturel, esthétique du bureau conservée. */
@media(max-width:700px){
 body .scene{background:radial-gradient(ellipse at top,#9d1018 0%,#540008 45%,#260713 100%);padding-bottom:24px;min-height:100vh}
 body .site-header .mobile-header{gap:12px;padding:12px 12px 4px}
 body .mobile-header .mobile-brand{width:290px;padding:5px;border-radius:12px;box-shadow:0 2px 8px #280006}
 body .mobile-header .cm-mobile-actions{gap:8px}
 body .mobile-header .menu-toggle,body .mobile-header .cm-mobile-ticket{min-height:46px;font:700 16px/1.25 Georgia,serif;border-radius:10px;box-shadow:0 2px 5px #350006}
 body .mobile-header .mobile-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body .mobile-header .mobile-links>a{grid-column:auto;grid-row:auto;min-height:64px;padding:9px 6px;gap:5px;flex-direction:column;justify-content:center;text-align:center;font:700 15px/1.25 Georgia,serif;background:radial-gradient(ellipse at top,#c62810,transparent 85%),linear-gradient(#930b08,#500604);border:1px solid #d0a354;border-radius:10px;box-shadow:inset 0 1px 2px #d66b37;color:#fff4dc}
 body .mobile-header .mobile-links>a:last-child:nth-child(odd){grid-column:1/-1}
 body .mobile-header .mobile-links>a svg{width:26px;height:26px;color:#ffe5a0}
 body .scene .central-panel{width:calc(100% - 24px);margin:16px auto 0;padding:16px 12px;border:2px solid #dca84c;border-radius:18px;box-shadow:0 2px 12px #310006;background:linear-gradient(135deg,#700006,#3b0009);min-height:0}
 body .central-panel h1{font:700 clamp(23px,6vw,30px)/1.2 Georgia,serif;text-shadow:0 1px 2px #280006;margin:0 0 10px}
 body .central-panel .lead{font:400 16px/1.45 system-ui,sans-serif;margin:0 0 14px;text-align:center}
 body .scene-home .hero-image{aspect-ratio:16/9;max-height:none;border:2px solid #eac05d;border-radius:12px;box-shadow:0 2px 8px #300006}
 body .central-panel .intro{font:400 16px/1.55 system-ui,sans-serif;text-align:left;margin:14px 0 16px}
 body .central-panel .entry-content{font:400 16px/1.55 system-ui,sans-serif;overflow-wrap:anywhere}
 body .central-panel .entry-content h2{font-size:22px;line-height:1.25}body .central-panel .entry-content h3{font-size:19px;line-height:1.3}
 body .central-panel .cm-home-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 0;padding:0}
 body .central-panel .cm-home-buttons a{min-height:86px;padding:10px 6px;gap:6px;flex-direction:column;justify-content:center;text-align:center;font:700 15px/1.25 Georgia,serif;background:radial-gradient(ellipse at top,#d8290d,transparent 80%),linear-gradient(#a90908,#410805);border:1px solid #d0a354;border-radius:10px;box-shadow:inset 0 1px 2px #ed7a40;text-shadow:0 1px 2px #380000;color:#fff4dc}
 body .central-panel .cm-home-buttons .cm-home-icon{width:30px;height:30px;color:#fff4dc;filter:none}
 body .central-panel .entry-content img{max-width:100%;height:auto}body .central-panel .entry-content iframe{max-width:100%}body .central-panel .wp-block-table{overflow-x:auto}body .central-panel .entry-content input:not([type=checkbox]):not([type=radio]),body .central-panel .entry-content select,body .central-panel .entry-content textarea{max-width:100%;min-width:0;font-size:16px}
 body .site-footer{padding:16px;font-size:13px}
}

/* Accueil : navigation réellement située après la présentation. */
.cm-home-mobile-navigation{display:none}
@media(max-width:1199px){
.cm-home-mobile-navigation{display:flex;flex-direction:column;gap:9px;margin:16px 0 0;align-items:stretch}
.cm-home-mobile-navigation .cm-mobile-actions{max-width:none;margin:0}
.cm-home-mobile-navigation .mobile-links{max-width:none;margin:0}
}
@media(max-width:700px){
body .scene-home .central-panel .intro{font:400 15px/1.5 Georgia,serif;text-align:center;margin:12px 0 14px}
body .scene-home .central-panel .lead{font:400 15px/1.4 Georgia,serif}
body .scene-home .central-panel h1{font-size:clamp(22px,5.8vw,28px)}
body .cm-home-mobile-navigation .cm-mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body .cm-home-mobile-navigation .menu-toggle,body .cm-home-mobile-navigation .cm-mobile-ticket{min-height:76px;flex-direction:column;gap:5px;font:700 15px/1.25 Georgia,serif;background:radial-gradient(ellipse at top,#d8290d,transparent 80%),linear-gradient(#a90908,#410805);border:1px solid #d0a354;border-radius:10px;color:#fff4dc;box-shadow:inset 0 1px 2px #ed7a40}
body .scene-home .central-panel .cm-home-buttons a{min-height:76px}
}
@media(max-width:700px){
body .cm-home-mobile-navigation .menu-toggle span{font-size:26px;line-height:1}
body .cm-home-mobile-navigation .cm-mobile-ticket svg{width:30px;height:30px}
body .cm-home-mobile-navigation .menu-toggle{display:flex}
body .cm-home-mobile-navigation:not(.cm-js) .menu-toggle{display:none}
}

/* 1.3.13 — navigation commune après le contenu, y compris les vues des extensions. */
@media(max-width:1199px){
 body .cm-inner-mobile-navigation{width:min(calc(100% - 24px),900px);margin:0 auto 16px;padding:12px;background:linear-gradient(135deg,#700006,#3b0009);border:1px solid #dca84c;border-radius:14px;box-shadow:none}
 body .cm-inner-mobile-navigation .cm-mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media(max-width:700px){
 body .central-panel.content-panel h2{font:700 22px/1.25 Georgia,serif;margin:16px 0 10px}
 body .central-panel.content-panel h3{font:700 19px/1.3 Georgia,serif}
 body .central-panel .cm-news-card{padding:12px;margin-bottom:14px;min-width:0}
 body .central-panel .cm-news-card h2{margin:0 0 10px}
 body .central-panel .cm-news-date{font:400 14px/1.4 Georgia,serif}
 body .cm-home-mobile-navigation .menu-toggle,body .cm-home-mobile-navigation .cm-mobile-ticket{min-width:0;text-align:center;overflow-wrap:anywhere}
}

/* Mobile: neutralise also the important background rules of Espaces & Décors. */
@media(max-width:1199px){
 html body .scene{background:linear-gradient(180deg,#a5090b,#450009 65%,#350006)!important;}
 html body .site-header{background-image:none!important;}
}
/* Only the Prestations navigation, not the quote or other action buttons. */
body .content-panel .entry-content .cm-prestations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 24px;}
body .content-panel .entry-content .cm-prestations-grid>a.cta{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;min-height:100px;padding:10px 8px;text-align:center;font:700 clamp(15px,1.5vw,19px)/1.25 Georgia,serif;color:#fff4dc;background:radial-gradient(ellipse at top,#d8290d,transparent 80%),linear-gradient(#a90908,#410805);border:1px solid #d0a354;border-radius:10px;box-shadow:inset 0 1px 2px #ed7a40;text-shadow:0 1px 2px #380000;text-decoration:none;overflow-wrap:anywhere;}
body .content-panel .entry-content .cm-prestations-grid>a.cta svg{width:30px;height:30px;flex:none;color:#ffe5a0;}
body .content-panel .entry-content .cm-prestations-grid>a.cta:hover{background:linear-gradient(#c62b13,#800908);border-color:#ffcf65;}
body .content-panel .entry-content .cm-prestations-grid>a.cta:last-child:nth-child(odd){grid-column:1/-1;}
@media(max-width:700px){body .content-panel .entry-content .cm-prestations-grid{gap:9px;}body .content-panel .entry-content .cm-prestations-grid>a.cta{min-height:76px;padding:9px 5px;font-size:15px;}body .content-panel .entry-content .cm-prestations-nav h2{text-align:center;}}

/* 1.3.14 — palette mobile continue et boutons de navigation / action unifiés. */
@media(max-width:1199px){
 html,html body{background:#650009!important;}
 html body .scene,html body .site-header,html body .site-header .mobile-header,html body .cm-inner-mobile-navigation,html body .site-footer{background:#650009!important;background-image:none!important;}
 html body .cm-inner-mobile-navigation{border:0;box-shadow:none;padding:0;margin:0 auto 16px;}
 html body .site-footer{border-top:1px solid #d0a354;}
 html body .scene .central-panel{background:#650009!important;box-shadow:none;}
 html body .mobile-header .menu-toggle,html body .mobile-header .cm-mobile-ticket,html body .mobile-header .mobile-links a,html body .central-panel .cm-home-buttons a,html body .central-panel .entry-content a.cta,html body .central-panel .entry-content .cm-prestations-grid>a.cta,html body .central-panel .entry-content .wp-block-button__link,html body .central-panel .entry-content button:not(.zoom-photo):not(.arrow):not(.cmb-client-ticket-download),html body .central-panel .entry-content input[type=submit]{background:radial-gradient(ellipse at top,#d8290d,transparent 80%),linear-gradient(#a90908,#410805)!important;border:1px solid #d0a354!important;border-radius:10px!important;box-shadow:inset 0 1px 2px #ed7a40!important;color:#fff4dc!important;text-shadow:0 1px 2px #380000;font:700 15px/1.25 Georgia,serif;text-align:center;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:normal;hyphens:auto;}
 html body .central-panel .entry-content a.cta{display:flex;align-items:center;justify-content:center;padding:12px 8px;text-decoration:none;}
 html body .central-panel .entry-content .cm-prestations-grid>a.cta{min-height:76px;font-size:clamp(12px,3.5vw,15px);padding:8px 4px;}
 html body .central-panel .entry-content button:disabled,html body .central-panel .entry-content input[type=submit]:disabled{opacity:.5;cursor:not-allowed;}
 html body .central-panel .entry-content a.cta:focus-visible,html body .central-panel .entry-content button:focus-visible{outline:3px solid #fff;outline-offset:2px;}
}

@media(min-width:1200px){.scene-home.cm-home-style-compact .central-panel .cm-home-buttons a{min-height:64px;flex-direction:row}.scene-home.cm-home-style-oval .central-panel .cm-home-buttons a{border-radius:40px;border:2px solid #ffd45e}.scene-home.cm-home-style-outline .central-panel .cm-home-buttons a{background:#650009;border:2px solid #ffd45e;box-shadow:none}}

@media(min-width:1200px){.scene-home.cm-home-style-gold .central-panel .cm-home-buttons a{background:linear-gradient(#ffe7a1,#d6a443);color:#3b0908;text-shadow:none;border-color:#ffe7a1}.scene-home.cm-home-style-gold .cm-home-buttons .cm-home-icon{color:inherit}.scene-home.cm-home-style-gold .central-panel .cm-home-buttons a:hover{background:#ffe7a1}}
