/*
Theme Name: Seine-et-Marne V220
Version: 220.0
Description: Migration de la maquette V219.
Requires PHP: 8.3
Text Domain: seine-marne-v220
*/
/* Thème La-Seine-et-Marne.com — 2026 — bleu de la Seine et de la Marne, vert nature */
:root{--navy:#073557;--blue:#117fc1;--green:#4a982d;--ink:#183046;--muted:#5a6d7b;--line:#e2eaf0;--pale:#f5f8fa;--water:#e3f2f7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:white}a{color:inherit;text-decoration:none}a:hover{color:#0079a8}button,input,textarea{font:inherit}.container{width:min(1240px,calc(100% - 40px));margin:auto}.draft-strip{background:#edf7ed;border-bottom:1px solid #c9dec9;color:#3b563c;font-size:12px;padding:7px;text-align:center}.site-head{background:white}.head-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:105px}.brand{display:flex;align-items:center;gap:18px;min-width:0}.brand-svg{width:190px;max-width:25vw;height:auto;flex-shrink:0}.brand-wordmark strong{font-size:clamp(19px,2.2vw,33px);line-height:1.1;display:block;color:#062f53;white-space:nowrap;letter-spacing:-.8px}.brand-wordmark span{font-size:clamp(11px,1.3vw,16px);font-style:italic;color:#0b3554}.head-actions{display:flex;align-items:center;gap:20px}.search{display:flex;border:1px solid #c8d2da;border-radius:11px;overflow:hidden}.search input{border:0;padding:10px 14px;width:235px;outline:none}.search button{border:0;background:#f2f5f7;padding:8px 13px;cursor:pointer}.social{display:flex;gap:8px}.social a{border-radius:7px;padding:4px 8px;background:#15588a;color:white;font-size:13px;font-weight:800}.nav{background:var(--navy);color:white}.nav-inner{display:flex;align-items:center;flex-wrap:wrap;gap:0}.nav a{padding:14px 19px;display:inline-block;font-weight:700;font-size:14px}.nav a:hover,.nav a:focus{background:#125582;color:white}.nav .home-icon{font-size:19px}.hero{background:linear-gradient(115deg,#0c3c5e 0%,#095e81 62%,#3b844a 120%);position:relative;color:white;overflow:hidden}.hero:after{content:'';position:absolute;right:-40px;top:-100px;width:560px;height:400px;border:60px solid #ffffff13;border-radius:50%;transform:rotate(-15deg)}.hero .container{padding:73px 0;position:relative;z-index:1}.hero h1{font-size:clamp(38px,5vw,64px);max-width:630px;line-height:1.08;margin:0 0 17px}.hero p{max-width:560px;font-size:20px;line-height:1.45}.btn{border:0;display:inline-flex;align-items:center;gap:9px;background:#4a982d;color:#fff;border-radius:25px;padding:11px 23px;font-weight:750;font-size:15px;cursor:pointer}.btn:hover{color:white;background:#397a20}.hero .placeholder-note{font-size:12px;color:#c5e2ee;margin-top:20px}.quick{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-top:15px}.quick a{display:block;text-align:center;min-height:100px;background:var(--pale);border-radius:10px;padding:20px 8px 12px;font-size:13px;font-weight:750;line-height:1.25}.quick .ico{display:block;font-size:27px;margin-bottom:8px;color:#115179}.content-section{padding:56px 0}.content-section.alt{background:var(--pale)}.section-title{font-size:32px;line-height:1.18;margin:0 0 12px;color:#072f52}.accent{width:55px;height:4px;border-radius:5px;background:var(--green);margin:12px 0 24px}.intro{max-width:780px;color:#466072;font-size:18px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{display:block;border:1px solid var(--line);border-radius:11px;background:white;overflow:hidden;box-shadow:0 2px 12px #10394a0b}.photo-slot{min-height:174px;background:linear-gradient(135deg,#dfeeee,#ecf2f9);display:flex;align-items:center;justify-content:center;color:#607b88;text-align:center;font-size:13px;padding:24px}.card-inner{padding:19px}.card h3{margin:0 0 9px;color:#082f51;font-size:20px;line-height:1.25}.card p{color:#536877;font-size:14px;margin:0 0 12px}.more{color:#2e802a;font-size:14px;font-weight:750}.editorial-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px}.article-body{max-width:800px}.article-body h2{font-size:25px;color:#0d3757;margin:34px 0 11px}.article-body p{margin:0 0 17px}.article-body h3{font-size:19px;color:#0d3757;margin:22px 0 8px}.side-panel{background:#f2f7f8;padding:25px;border-radius:13px;align-self:start}.side-panel h3{margin:0 0 12px}.side-panel a{display:block;border-bottom:1px solid #d7e5e9;padding:10px 0;color:#0d4b72}.bread{font-size:13px;padding:20px 0;color:#607281}.page-heading{padding:42px 0 45px;background:#f2f8fa}.page-heading h1{font-size:clamp(32px,4vw,49px);margin:7px 0 13px;line-height:1.12;color:#092f4f}.page-heading p{max-width:780px;font-size:19px;margin:0;color:#3e586b}.overline{letter-spacing:1.7px;text-transform:uppercase;font-size:12px;font-weight:800;color:#438e2d}.article-list{list-style:none;padding:0;margin:15px 0}.article-list li{margin:0;border-bottom:1px solid var(--line)}.article-list a{padding:11px 0;display:block;color:#0d5a87}.legal-warning{background:#fff7e8;border:1px solid #e5c990;border-radius:9px;padding:15px 18px;font-size:14px;color:#6a4a1b;margin-bottom:22px}.legal-warning b{display:block}.ad-slot{max-width:760px;border:1px dashed #cbd7df;border-radius:10px;color:#73828c;text-align:center;font-size:12px;padding:14px;margin:32px auto 0}.site-footer{background:#082d4d;color:#e3eff3;padding:43px 0}.footer-cols{display:grid;grid-template-columns:1fr 2fr;gap:28px}.footer-links{display:flex;gap:13px;flex-wrap:wrap}.footer-links a{font-size:13px;color:#dbe7ed}.footer-sub{font-size:12px;color:#b4c7d3;margin-top:16px}.notice{border-left:4px solid var(--green);background:#f3f8f3;padding:15px 18px;margin:20px 0}.indexlinks{columns:2;column-gap:25px}.indexlinks a{display:block;break-inside:avoid;border-bottom:1px solid #e0e9ee;padding:8px 0;color:#136185}.search-results{padding:40px 0}.search-results li{margin-bottom:14px}.skip{position:absolute;top:-60px;left:10px;background:white;padding:8px;z-index:20}.skip:focus{top:10px}@media(max-width:1000px){.head-inner{flex-wrap:wrap;padding:14px 0}.head-actions{margin-left:auto}.brand-svg{width:125px}.quick{grid-template-columns:repeat(4,1fr)}.nav a{padding:10px 13px}.editorial-grid{grid-template-columns:1fr}.side-panel{max-width:none}}@media(max-width:660px){.container{width:min(100% - 28px,1240px)}.brand{gap:9px}.brand-svg{width:82px}.brand-wordmark strong{font-size:18px;white-space:normal}.brand-wordmark span{font-size:11px}.head-actions{width:100%}.search{width:100%}.search input{flex:1;width:50%}.social{display:none}.nav a{padding:10px;font-size:12px}.hero .container{padding:50px 0}.hero h1{font-size:37px}.quick{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr}.content-section{padding:38px 0}.section-title{font-size:27px}.footer-cols{grid-template-columns:1fr}.indexlinks{columns:1}}
/* Mise en page éditoriale : justification des paragraphes sur grands écrans. */
.article-body p,.intro,.page-heading p{text-align:justify;hyphens:auto;overflow-wrap:break-word;text-justify:inter-word}
@media(max-width:660px){.article-body p,.intro,.page-heading p{text-align:left;hyphens:auto}}

/* V5 — images originales identifiées, crédit apparent, typographie de lecture */
.article-body p{text-align:justify;hyphens:auto;text-wrap:pretty}
.editorial-photo{margin:26px 0 31px;background:#f6f8f9;border:1px solid #e7eaee;border-radius:12px;overflow:hidden}
.editorial-photo img{display:block;width:100%;max-height:465px;object-fit:cover}
.editorial-photo figcaption{font-size:13px;color:#41586b;padding:9px 15px;text-align:right}
.home-card-photo{height:185px;position:relative;overflow:hidden;background:#eaf1f5}
.home-card-photo img{width:100%;height:100%;object-fit:cover;display:block}
.photo-credit{position:absolute;bottom:7px;right:9px;background:#08283cbd;border-radius:4px;color:#fff;padding:2px 7px;font-size:12px}
@media(max-width:680px){.article-body p{text-align:left}.home-card-photo{height:200px}}

/* Visuels de couverture en attente de la sélection du propriétaire. */
.home-card-photo.photo-pending{min-height:180px;background:linear-gradient(125deg,#eaf0f3,#f7f9fa);border:1px solid #e0e8eb;}

/* V8 : vrais paragraphes de plusieurs phrases, justifiés sur écrans larges. */
@media(min-width:681px){.article-body p{text-align:justify;text-justify:inter-word;hyphens:auto}}
@media(max-width:680px){.article-body p{text-align:left}}

/* Annuaire des communes — navigation alphabétique et listes lisibles */
.alphabet-nav{display:flex;flex-wrap:wrap;gap:.45rem;margin:1.25rem 0 2rem;padding:1rem;background:#edf4f8;border-radius:12px}
.alphabet-nav a{min-width:2.1rem;text-align:center;padding:.4rem .55rem;background:white;border:1px solid #cddde6;border-radius:7px;color:#143d5c;text-decoration:none;font-weight:700}
.alphabet-nav a:hover,.alphabet-nav a:focus{background:#0b4165;color:white}
.communes-section{scroll-margin-top:25px;margin:1.5rem 0 2.2rem}
.communes-section h3{border-bottom:2px solid #e0eae9;padding-bottom:.4rem;margin-bottom:1rem}
.article-body .communes-list{list-style:none;padding-left:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem 1.1rem;text-align:left}
.article-body .communes-list li{display:flex;align-items:baseline;gap:.65rem;padding:.32rem 0;border-bottom:1px solid #e8eeee;break-inside:avoid}
.communes-list .cp{font-variant-numeric:tabular-nums;color:#466f85;font-weight:700;font-size:.88em;flex-shrink:0}
@media(max-width:900px){.article-body .communes-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.article-body .communes-list{grid-template-columns:1fr}}
.article-body p{text-align:justify;hyphens:auto}

/* V12 — photographies retenues, paragraphs journalistiques */
.article-body p {text-align:justify;text-justify:inter-word;hyphens:auto;line-height:1.75;margin:0 0 1.2rem;}
.article-body h2 {margin:2.1rem 0 .75rem;}
.article-body figure {margin:1.7rem 0;}
.article-body .v12-photo img {display:block;width:100%;max-height:490px;object-fit:cover;border-radius:13px;}
.article-body figcaption {font-size:.83rem;color:#617080;padding-top:.35rem;}
.home-card-photo img {width:100%;height:100%;object-fit:cover;display:block;}
.home-card-photo.has-photo {min-height:170px;overflow:hidden;}
@media(max-width:680px){.article-body p{text-align:left;hyphens:auto;}}

.editorial-photo{margin:1.6rem 0 2rem;max-width:780px;}
.editorial-photo img{display:block;width:100%;height:auto;max-height:480px;object-fit:cover;border-radius:8px;}
.editorial-photo figcaption{font-size:.83rem;color:#536577;text-align:right;margin-top:.35rem;}
.article-body p{text-align:justify;hyphens:auto;}
@media(max-width:620px){.article-body p{text-align:left;}}

/* Formulaires et choix d'audience */
.portal-form{padding:1.4rem;margin:1.2rem 0 2rem;background:#f4f8fa;border:1px solid #d7e3e8;border-radius:14px}
.portal-form label{display:flex;flex-direction:column;gap:.35rem;font-weight:650;color:#173e59;margin:0 0 1.1rem}
.portal-form input,.portal-form textarea,.portal-form select{font:inherit;background:#fff;width:100%;padding:.75rem;border:1px solid #a8bac7;border-radius:7px;color:#193b52}
.portal-form input:focus,.portal-form textarea:focus,.portal-form select:focus{outline:3px solid #80b9dc;outline-offset:1px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.form-privacy{font-size:.9rem}.form-feedback{font-size:.9rem;color:#214e68;margin-top:1rem}
.trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1rem 0 1.4rem}
.pricing-grid div{background:#eef4f7;border:1px solid #d6e4ea;border-radius:9px;padding:.8rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.pricing-grid span{font-weight:700}
.consent-panel{position:fixed;bottom:1rem;left:1rem;right:1rem;z-index:10000;max-width:610px;padding:1rem 1.25rem;background:#fff;color:#16354c;border:1px solid #abc2d0;border-radius:12px;box-shadow:0 9px 32px #0d2e3c44}
.consent-panel[hidden]{display:none}.consent-panel p{margin:0 0 .8rem;line-height:1.5}
.consent-panel>div{display:flex;gap:1rem}.consent-panel button{cursor:pointer;border-radius:7px;border:1px solid #145278;background:#fff;padding:.65rem 1.3rem;color:#15405a;font:inherit}
.consent-panel button[data-choice="accept"]{background:#145278;color:#fff}
.cookie-settings-link{font:inherit;border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer;padding:0;text-align:left}
@media(max-width:680px){.form-grid,.pricing-grid{grid-template-columns:1fr}.portal-form{padding:1rem}}

/* Articles documentaires révisés */
.article-body{line-height:1.75;text-align:justify;hyphens:auto;overflow-wrap:break-word;}
.article-body h2{text-align:left;line-height:1.3;margin:1.8em 0 .55em;color:#16324d;}
.article-body p{margin:0 0 1.15em;}
.catalogue-scroll{overflow-x:auto;margin:1.6em 0 2em;}
.catalogue-table{width:100%;border-collapse:collapse;font-size:.93rem;text-align:left;}
.catalogue-table th,.catalogue-table td{border-bottom:1px solid #dce6e9;padding:.5em .6em;text-align:left;vertical-align:top;}
.catalogue-table th{background:#eef5f6;position:sticky;top:0;}
.doc-back{margin:2em 0 0;}
@media(max-width:650px){.article-body{text-align:left;hyphens:none}.catalogue-table{font-size:.82rem;min-width:620px;}}

.article-document .article-body{max-width:860px;margin:auto}.article-document .container>h1{line-height:1.2}.article-document .site-footer{text-align:left}

/* Éléments des pages professionnelles et tableau des annonces */
.expertise-infographie{max-width:720px;margin:1.8rem auto 2rem;text-align:center;}
.expertise-infographie img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:8px;}
.expertise-logo-cne{max-width:155px;margin:1rem 0 1.4rem;}
.expertise-logo-cne img{width:100%;height:auto;display:block;}
.logos-partenaires{display:flex;gap:2.2rem;align-items:center;flex-wrap:wrap;margin:1.3rem 0 1.7rem;}
.logos-partenaires figure{margin:0;max-width:190px;flex:1 1 155px;}
.logos-partenaires img{display:block;width:100%;height:auto;object-fit:contain;max-height:125px;}
.tarifs-table-wrap{width:100%;overflow-x:auto;margin:1.2rem 0 1.8rem;}
.tarifs-table{width:100%;border-collapse:collapse;text-align:left;font-size:.94rem;}
.tarifs-table th,.tarifs-table td{padding:.85rem .7rem;text-align:left;vertical-align:top;border-bottom:1px solid #d8e1e7;}
.tarifs-table thead th{background:#eaf1f5;color:#0e3855;}
.tarifs-table tbody th{font-weight:700;white-space:nowrap;}
.tarifs-table tbody tr:nth-child(even){background:#f8fafb;}
.tarifs-table td:last-child{white-space:nowrap;font-weight:700;}
@media(max-width:640px){.tarifs-table{min-width:610px;}.expertise-infographie{margin:1.1rem auto;}.logos-partenaires{gap:1rem;}}

/* Carte départementale : afficher toute la hauteur sans rognage. */
.editorial-photo.carte-departement-complete img { width: 100%; max-width: 550px; height: auto; max-height: none; object-fit: contain; margin-left: auto; margin-right: auto; }


/* Gestion détaillée des préférences : GA4 et AdSense */
.consent-panel--choices{max-width:680px;max-height:min(90vh,760px);overflow-y:auto;padding:1.25rem 1.4rem}
.consent-panel--choices h2{font-size:1.27rem;margin:0 0 .55rem;color:#11394f}
.consent-panel--choices .consent-purpose{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-top:1px solid #dce5e9;padding:.72rem .1rem;margin:0}
.consent-panel--choices .consent-purpose strong{display:block;font-size:.99rem}
.consent-panel--choices .consent-purpose small{display:block;color:#4d6674;font-size:.88rem;line-height:1.4;margin-top:.2rem}
.consent-panel--choices .consent-required{color:#386b48;font-size:.8rem;white-space:nowrap}
.consent-panel--choices .consent-option{justify-content:flex-start;cursor:pointer}
.consent-panel--choices .consent-option input{width:20px;height:20px;flex:none;accent-color:#145278;margin:0}
.consent-panel--choices .consent-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.8rem}
.consent-panel--choices .consent-actions button{flex:1 1 150px;padding:.65rem .7rem;border-radius:7px}
.consent-panel--choices .consent-actions button[data-cookie-action="save"]{background:#145278;color:#fff}
.consent-panel--choices .consent-explain{font-size:.82rem;color:#526575;margin:.45rem 0}
.consent-panel--choices .consent-policy{font-size:.85rem;margin:.65rem 0 0}
@media(max-width:560px){.consent-panel--choices{left:.5rem;right:.5rem;bottom:.5rem;padding:1rem;max-height:90vh}.consent-panel--choices .consent-actions{gap:.4rem}}

/* BAM V31 : photographies et mentions professionnelles */
.article-body .bam-photo { margin: 1.8rem 0 1.4rem; max-width: 100%; }
.article-body .bam-photo img { display:block; width:100%; height:auto; object-fit:contain; border-radius:10px; }
.article-body .bam-photo figcaption { font-size:.78rem; color:#526271; text-align:right; margin-top:.3rem; }
.article-body .bam-photo a { display:block; }
.article-body .bam-photo a:focus-visible { outline:3px solid #167dc3; outline-offset:3px; }
.article-body .bam-visite-virtuelle { margin:.2rem 0 1.8rem; overflow-wrap:anywhere; }
.article-body .bam-activites-professionnelles { margin-top:1.15rem; }
.article-body .bam-mentions .bam-mention-detail-titre { font-size:1rem; line-height:1.35; margin-top:1.25rem; margin-bottom:.45rem; }
.article-body .bam-mentions p.bam-mention-detail { font-size:.84rem; line-height:1.55; margin:.4rem 0 .65rem; }
@media(max-width:600px) { .article-body .bam-activites-professionnelles { margin-top:1.15rem; } }

/* V36 : photographies Disneyland et carte réduite */
.editorial-photo.disney-photo{max-width:820px;margin:2.2rem auto 2.4rem;}
.editorial-photo.disney-photo img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:8px;}
.editorial-photo.disney-photo figcaption{font-size:.79rem;text-align:right;margin-top:.35rem;color:#536474;}
.carte-marne-la-vallee-reduite{display:block;width:auto!important;max-width:min(100%,440px)!important;max-height:340px!important;object-fit:contain!important;margin:0 auto;}
@media(max-width:540px){.carte-marne-la-vallee-reduite{max-width:90%!important;max-height:290px!important}}

/* V37 : visuel Hollywood Tower sur la carte Disneyland de l’accueil. */
.disney-home-card{position:relative;overflow:hidden;}
.disney-home-card img{display:block;width:100%;height:100%;object-fit:cover;}
.disney-home-credit{position:absolute;right:7px;bottom:5px;background:rgba(7,20,35,.7);color:#fff;font-size:10px;padding:2px 5px;border-radius:3px;}

/* V43 : vidéo Happy Val d’Europe déclenchée sur demande (pas d’iframe avant le clic). */
.happy-val-video{max-width:760px;margin:1.5rem auto 2rem;text-align:center;}
.happy-val-video figure{margin:0 auto 1rem;max-width:500px;}
.happy-val-video figure img{display:block;width:100%;height:auto;margin:auto;border-radius:6px;}
.happy-val-video figcaption{font-size:.82rem;color:#526271;text-align:right;margin-top:.28rem;}
.happy-val-video .happy-video-intro{margin:.9rem 0;}
.happy-video-launch{background:#174e7d;color:#fff;padding:.75rem 1.3rem;border:0;border-radius:7px;font-weight:700;cursor:pointer;font-size:1rem;}
.happy-video-launch:hover,.happy-video-launch:focus-visible{background:#0b6ca5;outline-offset:3px;}
.happy-video-frame{position:relative;aspect-ratio:16/9;width:100%;margin:1rem 0;}
.happy-video-frame[hidden]{display:none;}
.happy-video-frame iframe{position:absolute;inset:0;border:0;width:100%;height:100%;}
.happy-video-link{margin:.9rem 0 0;font-size:.9rem;}

/* V65 — mise en page des photographies et lexiques briards */
.article-body .editorial-photo.panorama-reduit{width:min(100%,740px);max-width:740px;margin-left:auto;margin-right:auto}
.article-body .editorial-photo.panorama-reduit img{width:100%;height:auto;max-height:310px;object-fit:contain}
.lexique-deux-colonnes{columns:2;column-gap:38px;white-space:pre-line;line-height:1.8;overflow-wrap:anywhere}
.lexique-deux-colonnes h2{break-after:avoid;break-inside:avoid;column-span:none;margin:22px 0 7px;background:#eef5f7;padding:5px 10px;border-radius:5px;font-size:20px}
@media(max-width:650px){.lexique-deux-colonnes{columns:1}.article-body .editorial-photo.panorama-reduit img{max-height:none}}

/* V70 : photographie de couverture validée */
.hero.hero-photo-v70{background:linear-gradient(90deg,rgba(3,32,53,.86) 0%,rgba(3,32,53,.6) 43%,rgba(3,32,53,.08) 100%),url("../../uploads/v219/images/bandeau-fontainebleau-pierre-villecourt.webp") center 48%/cover no-repeat;min-height:450px}
.hero.hero-photo-v70:after{content:none}
.hero.hero-photo-v70 .container{padding:90px 0 105px}
.hero.hero-photo-v70 h1,.hero.hero-photo-v70 p{text-shadow:0 2px 12px rgba(0,0,0,.22)}
.hero.hero-photo-v70:before{content:"© Pierre Villecourt / Adobe Stock";position:absolute;right:16px;bottom:9px;z-index:2;color:white;font-size:11px;text-shadow:0 1px 4px #000}
@media(max-width:650px){.hero.hero-photo-v70{min-height:380px;background-position:57% center}.hero.hero-photo-v70 .container{padding:58px 0 82px}.hero.hero-photo-v70 p{font-size:17px}}

/* V72 : liens transversaux et notices historiques */
.article-document .pour-poursuivre-v72{max-width:920px;margin:32px auto 0;padding:24px;border-radius:14px;background:#f0f5f7}
.article-document .pour-poursuivre-v72 a{display:block;padding:9px 0;border-bottom:1px solid #d8e3e8;text-decoration:none;color:#0b4467}
.monuments-notice{background:#f4f8f9;padding:20px;border-left:4px solid #408c37;margin:30px 0}
.ville-monument-majeure{font-weight:750}

/* V73 : photographies des recettes et uniformisation des inventaires de monuments */
.recipe-photo { margin: 0 0 2rem; }
.recipe-photo img { display:block; width:100%; height:auto; max-height:520px; object-fit:cover; border-radius:12px; }
.recipe-photo figcaption { padding-top:.5rem; color:#536579; font-size:.85rem; }
.monuments-table-scroll { width:100%; max-width:100%; overflow-x:auto; margin:1.2rem 0; }
.monuments-table { width:100%; min-width:680px; table-layout:fixed; border-collapse:collapse; box-sizing:border-box; }
.monuments-table td, .monuments-table th { padding:.55rem .65rem; vertical-align:top; border:1px solid #d9e2e8; overflow-wrap:break-word; }
.monuments-table tr:nth-child(even) { background:#f5f8fa; }
@media (max-width:720px) { .monuments-table { min-width:650px; } }

/* V79 : inventaire des monuments historiques de Fontainebleau */
.fontainebleau-monuments-section{margin:2rem 0 2.3rem}
.fontainebleau-monuments-section h2{margin-bottom:.9rem}
.fontainebleau-table{font-size:.94rem;min-width:720px}
.fontainebleau-table td:first-child,.fontainebleau-table th:first-child{text-align:center}
.fontainebleau-inventory-link{margin:.65rem 0 1.2rem;font-weight:700}
.fontainebleau-inventory-link a{color:#267a36}

/* V91 : emplacements réservés, non chargés tant qu'une CMP certifiée n'est pas intégrée */
.lsm-ad-placement { display:none; }

/* V100 — Inventaire A à L : panneau de navigation en haut à droite */
.monuments-article-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:28px;align-items:start}
.monuments-article-layout>.article-body{min-width:0;max-width:none}
.monuments-article-layout>.side-panel{position:sticky;top:20px;margin:0;align-self:start}
@media(max-width:1100px){.monuments-article-layout{grid-template-columns:minmax(0,1fr)}.monuments-article-layout>.side-panel{position:static}}

/* V104 : lisibilité des liens et cohérence des cartes */
.article-body a:not(.btn):not(.card), .portal-form a, .sitemap-sections a, main .side-panel a{color:#0865a3;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.article-body a:hover, .portal-form a:hover, .sitemap-sections a:hover{color:#034a78;text-decoration-thickness:2px}
a:focus-visible{outline:3px solid #dc9f24;outline-offset:3px;border-radius:3px}
.no-break-name{white-space:nowrap}
.content-section .cards>.card{display:flex;flex-direction:column;height:100%}
.content-section .cards>.card .card-inner{display:flex;flex-direction:column;flex:1}
.content-section .cards>.card .card-inner .more{margin-top:auto}
.quick a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:112px}
.sitemap-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:2.2rem;row-gap:1rem;align-items:start}
.sitemap-sections>section{min-width:0;break-inside:avoid}
.sitemap-sections>section h2{margin-top:0}
.partenaire-logo-inline{width:70px;height:55px;object-fit:contain;flex-shrink:0;margin-right:12px}
.partenaire-logo-bam,.partenaire-logo-cne{max-width:86px!important;width:86px!important;height:65px!important;object-fit:contain!important}
.partenaire-logo{object-fit:contain}
.portal-form button.form-submit:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:660px){.sitemap-sections{grid-template-columns:1fr}.no-break-name{white-space:normal}}

/* V105 — Composition de l'accueil et photos de recettes */
.hero .intro-align-v105{max-width:650px;text-wrap:pretty;hyphens:none;}
.hero .intro-align-v105 .no-break-name{white-space:nowrap;}
.photo-ajout-v105{max-width:780px;margin:18px 0 26px;}
.photo-ajout-v105 img{width:100%;height:auto;display:block;border-radius:10px;}
.photo-ajout-v105 figcaption{margin-top:7px;color:#536579;font-size:.88rem;}
@media(max-width:620px){.hero .intro-align-v105 .no-break-name{white-space:normal;}}

/* V106 – alignement des deux inventaires et navigation latérale */
.monuments-article-layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(235px, 280px); align-items:start; gap:28px; }
.monuments-article-layout > article { min-width:0; }
.monuments-article-layout > aside.side-panel { align-self:start; position:sticky; top:18px; }
@media(max-width:840px){.monuments-article-layout{display:flex;flex-direction:column}.monuments-article-layout > aside.side-panel{position:static;width:100%;order:2}}

.monuments-article-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:start;width:100%}
.monuments-article-layout>.article-body{min-width:0;max-width:none}
.monuments-article-layout>aside.side-panel{grid-column:2;grid-row:1;align-self:start;margin:0;position:sticky;top:18px;max-width:270px;z-index:1}
@media(max-width:1080px){.monuments-article-layout{grid-template-columns:minmax(0,1fr)}.monuments-article-layout>aside.side-panel{grid-column:1;grid-row:auto;position:static;max-width:none}}


/* V112 — présentation des anciens articles reclassés (pages validées exclues) */
.article-document .legacy-page-container{width:min(1240px,calc(100% - 40px));max-width:1240px;margin-inline:auto;}
.article-document .legacy-breadcrumb{padding:0;margin:0 0 20px;line-height:1.5;color:#607281;font-size:14px;}
.article-document .legacy-breadcrumb a{color:#0d5a87;text-decoration:underline;text-underline-offset:3px;}
.article-document .legacy-article-heading{background:#f2f8fa;border-radius:12px;padding:28px 32px;margin:0 0 35px;}
.article-document .legacy-article-heading h1{color:#092f4f;font-size:clamp(30px,3.3vw,46px);line-height:1.17;margin:0;}
.article-document .legacy-editorial-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:36px;align-items:start;}
.article-document .legacy-editorial-grid > .article-body{max-width:none;min-width:0;}
.article-document .legacy-editorial-grid > aside.side-panel{grid-column:2;grid-row:1;position:sticky;top:20px;align-self:start;max-width:none;width:auto;margin:0;padding:25px;}
.article-document .legacy-single-article{max-width:920px;}
@media(max-width:1000px){.article-document .legacy-editorial-grid{grid-template-columns:minmax(0,1fr)}.article-document .legacy-editorial-grid > aside.side-panel{grid-column:1;grid-row:2;position:static;max-width:none;width:100%;}}
@media(max-width:660px){.article-document .legacy-page-container{width:calc(100% - 28px)}.article-document .legacy-article-heading{padding:22px 18px;margin-bottom:23px}}

/* V171 — espace sous le bandeau, référence Château de Champs-sur-Marne */
.page-heading + .content-section { padding-top:35px; }
.page-heading + .content-section > .editorial-grid { align-items:start; }
.page-heading + .content-section .article-body,
.legacy-article-heading + .legacy-editorial-grid > .article-body,
.legacy-article-heading + .monuments-article-layout > .article-body { margin-top:0; }
.article-body > :first-child,
.article-body > section:first-child > :first-child { margin-top:0; }
@media(max-width:660px){
  .page-heading + .content-section { padding-top:23px; }
}

/* V172 — bandeaux intérieurs : modèle Babar, sans modification de l’accueil. */
.page-heading{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:28px 32px;background:#f2f8fa;border-radius:12px;}
.page-heading > .container{width:100%;max-width:none;margin:0;padding:0;}
.page-heading h1,.article-document .legacy-article-heading h1{color:#092f4f;font-size:clamp(30px,3.3vw,46px);line-height:1.17;margin:0;}
.page-heading > .container > p,.article-document .legacy-article-heading > p{max-width:780px;margin:10px 0 0;font-size:18px;line-height:1.4;color:#3e586b;text-align:left;}
main > .bread:has(+ .page-heading){padding:0;margin-top:44px;margin-bottom:20px;line-height:1.5;font-size:14px;}
main > .bread:has(+ .page-heading) a{color:#0d5a87;text-decoration:underline;text-underline-offset:3px;}
@media(max-width:660px){.page-heading{width:calc(100% - 28px);padding:22px 18px;}}

/* V184 : centrage horizontal des photographies, sans changement de dimensions ni de position dans le contenu. */
.article-body figure.editorial-photo,
.article-body figure.vaux-figure,
.article-body figure.expertise-infographie { margin-left:auto; margin-right:auto; }
.article-body figure.v12-photo img { margin-left:auto; margin-right:auto; }
