/* Public content blocks and staff-only visual editor. */
.pdp-custom-section{background:var(--pdp-custom-bg,#fff);color:var(--pdp-custom-fg,#10233d);padding:clamp(52px,7vw,104px) 0;}
.pdp-custom-inner{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(24px,4vw,58px);align-items:center;}
.pdp-custom-section--split .pdp-custom-inner{grid-template-columns:repeat(2,minmax(0,1fr));}
.pdp-custom-section--split.pdp-custom-section--left .pdp-custom-media{order:0;}
.pdp-custom-section--split.pdp-custom-section--left .pdp-custom-copy{order:1;}
.pdp-custom-section--split.pdp-custom-section--right .pdp-custom-media{order:1;}
.pdp-custom-section--split.pdp-custom-section--right .pdp-custom-copy{order:0;}
.pdp-custom-copy h2{font:500 clamp(30px,4vw,54px)/1.12 Georgia,serif;letter-spacing:-.025em;margin:12px 0 20px;color:inherit;}
.pdp-custom-copy h2 em{font-style:italic;}
.pdp-custom-body{font-size:16px;line-height:1.85;max-width:760px;white-space:normal;}
.pdp-custom-copy .btn{display:inline-flex;margin-top:24px;}
.pdp-custom-media img,.pdp-custom-figure img,.pdp-custom-banner-image img{display:block;width:100%;height:auto;max-height:620px;object-fit:cover;}
.pdp-custom-media img{aspect-ratio:4/3;border-radius:3px;}
.pdp-custom-figure{margin:0;}
.pdp-custom-figure img{max-height:720px;object-fit:contain;}
.pdp-custom-figure figcaption{font-size:12px;opacity:.75;margin-top:10px;}
.pdp-custom-section--banner{padding:clamp(42px,6vw,78px) 0;}
.pdp-custom-section--banner .pdp-custom-inner{max-width:none;text-align:center;}
.pdp-custom-section--banner .pdp-custom-copy{max-width:920px;margin:auto;}
.pdp-custom-banner-image{width:100%;margin-top:26px;}
.pdp-custom-banner-image img{max-height:360px;}
.pdp-custom-section--image .pdp-custom-inner{max-width:1200px;}

.pdp-editor-toolbar{position:fixed;z-index:2147483000;left:14px;right:14px;bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#002654;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:13px;box-shadow:0 12px 40px rgba(0,0,0,.28);font:13px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;}
.pdp-editor-brand{display:flex;flex-direction:column;gap:2px;min-width:170px;}
.pdp-editor-brand strong{font-size:13px;letter-spacing:.02em;}
.pdp-editor-brand span{font-size:11px;color:#d8e7f5;max-width:260px;}
.pdp-editor-tools{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;}
.pdp-editor-toolbar button,.pdp-editor-close{appearance:none;border:1px solid #52759a;background:#123b68;color:#fff;border-radius:7px;padding:8px 11px;min-height:34px;font:600 12px system-ui,sans-serif;text-decoration:none;cursor:pointer;}
.pdp-editor-toolbar button:hover,.pdp-editor-close:hover{background:#234e79;color:#fff;}
.pdp-editor-toolbar button.is-active{background:#fff;color:#002654;border-color:#fff;}
.pdp-editor-toolbar button:disabled{opacity:.38;cursor:not-allowed;}
.pdp-editor-divider{height:24px;width:1px;background:#52759a;margin:0 4px;}
.pdp-editor-close{background:#a80d2b;border-color:#a80d2b;}
.pdp-editor-close:hover{background:#c2183c;}
body[data-cms-editor="1"][data-cms-mode="text"] [data-cms-text-key]{cursor:text;}
body[data-cms-editor="1"][data-cms-mode="elements"] [data-cms-element-key],
body[data-cms-editor="1"][data-cms-mode="style"] [data-cms-element-key],
body[data-cms-editor="1"][data-cms-mode="section"] section[data-cms-section-key]{cursor:pointer;}
body[data-cms-editor="1"][data-cms-mode="text"] [data-cms-text-key]:hover,
body[data-cms-editor="1"][data-cms-mode="elements"] [data-cms-element-key]:hover,
body[data-cms-editor="1"][data-cms-mode="style"] [data-cms-element-key]:hover,
body[data-cms-editor="1"][data-cms-mode="section"] section[data-cms-section-key]:hover{outline:1px dashed #d69a35;outline-offset:2px;}
body[data-cms-editor="1"] [contenteditable="true"]{outline:2px solid #d69a35!important;outline-offset:3px;background:rgba(255,255,255,.86);color:#10233d!important;min-width:12px;}
body[data-cms-editor="1"] .pdp-cms-selected-section{outline:3px solid #d69a35!important;outline-offset:4px;}
body[data-cms-editor="1"] section[data-cms-hidden="1"]{display:block!important;visibility:visible!important;opacity:.38!important;outline:2px dashed #b40824!important;outline-offset:4px;}
body[data-cms-editor="1"] section[data-cms-hidden="1"]::before{content:"SECTION MASQUÉE · visible uniquement dans l’éditeur";display:block;background:#b40824;color:#fff;font:600 11px/1.4 system-ui,sans-serif;padding:5px 10px;}
body[data-cms-editor="1"] [data-cms-hidden="1"]:not(section){visibility:visible!important;opacity:.38!important;outline:2px dashed #b40824!important;outline-offset:3px;}
body[data-cms-editor="1"] .pdp-cms-selected-element{outline:2px solid #d69a35!important;outline-offset:3px;}
@media(max-width:900px){.pdp-editor-toolbar{align-items:flex-start;flex-direction:column;}.pdp-editor-tools{justify-content:flex-start;width:100%;}.pdp-editor-brand span{max-width:none;}.pdp-custom-section--split .pdp-custom-inner{grid-template-columns:1fr;}}
@media(max-width:560px){.pdp-editor-toolbar{left:7px;right:7px;bottom:7px;padding:9px;border-radius:10px;}.pdp-editor-toolbar button,.pdp-editor-close{padding:7px 9px;font-size:11px;}.pdp-editor-brand{min-width:0;}.pdp-editor-divider{display:none;}.pdp-custom-section{padding:44px 0;}}
main section[data-cms-bg="1"]{background-color:var(--pdp-visual-bg)!important;}
main section[data-cms-fg="1"]{color:var(--pdp-visual-fg)!important;}
main section[data-cms-fg="1"] :is(h1,h2,h3,h4,p,.eyebrow,.micro,.display-title,.lead-text,.intro-index,.text-link:not(.btn)){color:var(--pdp-visual-fg)!important;}

/* V6.10.1 — each property is applied only when explicitly selected. */
body [data-cms-style-background-color="1"] { background-color: var(--pdp-cms-background) !important; }
body [data-cms-style-text-color="1"] { color: var(--pdp-cms-color) !important; }
body [data-cms-style-font-size="1"] { font-size: var(--pdp-cms-font-size) !important; }
body [data-cms-style-font-weight="1"] { font-weight: var(--pdp-cms-font-weight) !important; }
body [data-cms-style-font-family="1"] { font-family: var(--pdp-cms-font-family) !important; }
body [data-cms-style-text-align="1"] { text-align: var(--pdp-cms-text-align) !important; }
body [data-cms-style-line-height="1"] { line-height: var(--pdp-cms-line-height) !important; }
body [data-cms-style-padding="1"] { padding: var(--pdp-cms-padding) !important; }
body [data-cms-style-margin-top="1"] { margin-top: var(--pdp-cms-margin-top) !important; }
body [data-cms-style-margin-bottom="1"] { margin-bottom: var(--pdp-cms-margin-bottom) !important; }
body [data-cms-style-border-radius="1"] { border-radius: var(--pdp-cms-radius) !important; }
body [data-cms-style-border-width="1"] { border-style: solid !important; border-width: var(--pdp-cms-border-width) !important; }
body [data-cms-style-border-color="1"] { border-style: solid !important; border-color: var(--pdp-cms-border-color) !important; }
body [data-cms-style-max-width="1"] { max-width: var(--pdp-cms-max-width) !important; }
body [data-cms-style-width="1"] { width: var(--pdp-cms-width) !important; }
body [data-cms-style-letter-spacing="1"] { letter-spacing: var(--pdp-cms-letter-spacing) !important; }
body [data-cms-style-text-transform="1"] { text-transform: var(--pdp-cms-text-transform) !important; }
body img[data-cms-style-object-fit="1"] { object-fit: var(--pdp-cms-object-fit) !important; }
body img[data-cms-style-object-position="1"] { object-position: var(--pdp-cms-object-position) !important; }
body[data-cms-editor="1"] [data-cms-hidden="1"] { outline: 2px dashed #b40824 !important; outline-offset: 3px; }
.pdp-editor-dialog {
  width: min(680px, calc(100vw - 28px)); max-width: 680px; max-height: min(86vh, 760px);
  padding: 0; border: 1px solid #d9e0e8; border-radius: 18px; color: #10233d;
  background: #fff; box-shadow: 0 24px 90px #07182d55;
}
.pdp-editor-dialog::backdrop { background: #07182d99; backdrop-filter: blur(3px); }
.pdp-editor-dialog-form { padding: 24px; }
.pdp-editor-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.pdp-editor-dialog-head h2 { margin:3px 0 0; color:#10233d; font:600 25px/1.2 Georgia,serif; }
.pdp-editor-dialog-kicker { margin:0; color:#b40824; font:700 10px/1.4 Arial,sans-serif; letter-spacing:.16em; }
.pdp-editor-dialog-head button { width:36px; height:36px; border:1px solid #d7e0e9; border-radius:50%; background:#f5f7fa; color:#10233d; font-size:23px; cursor:pointer; }
.pdp-editor-style-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.pdp-editor-style-grid label,.pdp-editor-full-field { display:flex; flex-direction:column; gap:7px; color:#34465b; font:600 12px/1.4 Arial,sans-serif; }
.pdp-editor-style-grid input[type=color] { width:100%; height:42px; padding:4px; border:1px solid #d6dee8; border-radius:8px; background:#fff; }
.pdp-editor-style-grid select,.pdp-editor-full-field input,.pdp-editor-full-field textarea { width:100%; min-height:40px; padding:9px 11px; border:1px solid #d6dee8; border-radius:8px; background:#fff; color:#10233d; font:14px Arial,sans-serif; }
.pdp-editor-full-field { margin:15px 0; }
.pdp-editor-full-field textarea { resize:vertical; }
.pdp-editor-dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; padding-top:17px; border-top:1px solid #e7ebf0; }
.pdp-editor-dialog-actions button { min-height:42px; padding:0 16px; border-radius:8px; font:700 13px Arial,sans-serif; cursor:pointer; }
.pdp-editor-secondary { border:1px solid #d5dde7; background:#f5f7fa; color:#10233d; }
.pdp-editor-primary { border:1px solid #002654; background:#002654; color:#fff; }
@media(max-width:560px) {
  .pdp-editor-dialog-form { padding:17px; }
  .pdp-editor-style-grid { grid-template-columns:1fr; }
  .pdp-editor-dialog-head h2 { font-size:21px; }
}
