/* Fonds adaptés aux formats : horizontal sur grand écran, portrait sur tablette/téléphone. */
body:is(.home, .sopota-standard-page, .sopota-article-page) { min-height: 100vh; background-color: #f3ead2; background-image: url('/wp-content/uploads/2026/10/page-garde-horizontale.png'); background-repeat: no-repeat; background-position: center center; background-size: cover; background-attachment: fixed; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .wp-site-blocks { min-height: 100vh; padding: 8px 0 10px; background: transparent; }
body:is(.home, .sopota-standard-page, .sopota-article-page) #haut { width: 100%!important; max-width: none!important; padding-left: 0!important; padding-right: 0!important; }

/* Accueil — ordinateur. */
body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part { width: min(1120px, calc(100vw - 32px)); max-width: none; margin: 0 auto; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part > .wp-block-group.alignwide { width: 100%; max-width: none; margin: 0; padding: 4px 10px; background: transparent; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part > .wp-block-group.alignwide > .wp-block-group.alignwide { display: grid!important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr)!important; align-items: center!important; column-gap: 16px!important; width: 100%!important; max-width: none!important; min-height: 56px!important; margin: 0!important; padding: 0!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title { grid-column: 2!important; grid-row: 1!important; align-self: center!important; justify-self: end!important; width: auto!important; max-width: 100%!important; margin: 0!important; padding: 0!important; text-align: right!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title a { font-size: clamp(1.8rem, 3.3vw, 2.55rem)!important; line-height: 1.05!important; letter-spacing: -.025em!important; white-space: nowrap!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation { grid-column: 1!important; grid-row: 1!important; align-self: center!important; justify-self: end!important; width: auto!important; max-width: 100%!important; margin: 0!important; padding: 0!important; font-size: clamp(1.25rem, 1.7vw, 1.5rem)!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container { display: flex; flex-wrap: nowrap; gap: 0; width: auto; max-width: 100%; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container > li:nth-child(2) { display: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation-item__content { padding: 6px 10px; font-size: inherit; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container-open, body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container-close { display: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container, body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container:not(.is-menu-open) { position: static; display: block; visibility: visible; width: auto; height: auto; overflow: visible; background: transparent; opacity: 1; transform: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-close, body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-dialog, body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__responsive-container-content { position: static; display: block; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; background: transparent; box-shadow: none; transform: none; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search { width: min(560px, 58vw); max-width: calc(100vw - 40px); margin: 10px auto 0; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search__inside-wrapper { display: flex; width: 100%; max-width: 100%; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search__input { flex: 1 1 auto!important; min-width: 0!important; min-height: 48px!important; padding: 9px 16px!important; background: rgba(255,255,255,.25)!important; font-size: 20px!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search__button { flex: 0 0 52px; min-width: 52px; min-height: 48px; padding: 0; }
body:is(.home, .sopota-standard-page, .sopota-article-page) main.wp-block-group { display: block!important; width: min(1120px, calc(100vw - 32px))!important; max-width: none!important; margin: 6px auto 0!important; padding: 0!important; background: transparent!important; border: 0!important; border-radius: 0!important; box-shadow: none!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) main.wp-block-group > .entry-content { display: block!important; width: 100%!important; max-width: none!important; margin: 0!important; padding: 0!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-zone-contenu { display: flex!important; align-items: center!important; width: 100%!important; max-width: none!important; min-height: 280px!important; margin: 0!important; padding: 4px 0!important; background: transparent!important; border: 0!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens { display: grid!important; grid-template-columns: repeat(2, minmax(0, 1fr))!important; column-gap: clamp(20px, 2.4vw, 34px)!important; row-gap: 0!important; width: min(700px, calc(100% - 300px))!important; max-width: 700px!important; margin: 0 0 0 clamp(100px, 18vw, 210px)!important; padding: 0!important; background: transparent!important; border: 0!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens > a { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 52px!important; padding: 6px 8px!important; border: 0; border-bottom: 1px solid rgba(18,60,55,.4); border-radius: 0; background: transparent; box-shadow: none; color: #123f3a; font-size: clamp(1.25rem, 1.8vw, 1.5rem)!important; font-weight: 650!important; line-height: 1.25!important; text-decoration: none!important; text-shadow: 0 1px 4px rgba(255,255,255,.8)!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens .fleche { margin-left: 12px; font-size: 1.4rem; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-zone-publicitaire { position: relative!important; left: 50%!important; transform: translateX(-50%)!important; display: block!important; width: 100vw!important; max-width: 100vw!important; height: 64px!important; min-height: 64px!important; margin: 24vh 0 0!important; padding: 0!important; background: transparent!important; border: 0!important; border-radius: 0!important; box-shadow: none!important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1040px, calc(100vw - 80px)); margin: 5px auto 0; padding: 0; background: transparent; border: 0; }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a { color: #123f3a; font-size: 1rem; font-weight: 700; text-decoration: none; text-shadow: 0 1px 5px rgba(255,255,255,.95), 0 0 8px rgba(255,255,255,.9); }
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:hover { text-decoration: underline; }
body:is(.home, .sopota-standard-page, .sopota-article-page) footer.wp-block-template-part { display: none; }

/* Téléphone portrait : cadrage à droite sur la vahiné, une colonne, sans débordement. */
@media (max-width: 600px) and (orientation: portrait) {
  html, body:is(.home, .sopota-standard-page, .sopota-article-page) { max-width: 100%; overflow-x: hidden; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) { background-image: url('/wp-content/uploads/2026/10/fond-vahine-vertical.png'); background-position: right top; background-size: cover; background-attachment: scroll; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .wp-site-blocks { min-height: 100vh; padding: 4px 0 8px; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part { width: 100vw; max-width: 100vw; margin: 0; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part > .wp-block-group.alignwide { width: 100%!important; padding: 3px 12px!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header.wp-block-template-part > .wp-block-group.alignwide > .wp-block-group.alignwide { display: flex!important; flex-direction: column!important; align-items: stretch!important; gap: 2px!important; min-height: 0!important; grid-template-columns: none!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title { order: 1!important; grid-column: 1!important; grid-row: auto!important; justify-self: center!important; align-self: center!important; width: 100%!important; max-width: 100%!important; text-align: center!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title a { font-size: clamp(1.2rem, 5vw, 1.4rem)!important; letter-spacing: -.03em!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation { order: 2!important; grid-column: 1!important; grid-row: auto!important; justify-self: stretch!important; align-self: stretch!important; width: 100%!important; max-width: 100%!important; font-size: 1.08rem!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container { justify-content: flex-start; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation-item__content { padding: 4px 8px; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search { width: min(340px, calc(100vw - 48px)); max-width: calc(100vw - 48px); margin: 6px auto 0; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search__input { min-height: 44px!important; padding: 8px 12px!important; font-size: 20px!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-search__button { flex-basis: 48px; min-width: 48px; min-height: 44px; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) main.wp-block-group { width: calc(100vw - 20px)!important; margin: 8px 10px 0!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-zone-contenu { min-height: 0; align-items: flex-start; padding: 8px 0 0; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens { grid-template-columns: 1fr!important; width: min(82vw, 340px)!important; max-width: 82vw!important; margin: 0 0 0 10px!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens > a { min-height: 46px!important; padding: 5px 6px!important; font-size: clamp(1.05rem, 4.7vw, 1.18rem)!important; line-height: 1.2!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens .fleche { margin-left: 8px; font-size: 1.1rem; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-zone-publicitaire { width: 100vw!important; max-width: 100vw!important; height: 64px!important; min-height: 64px!important; margin: 30vh 0 0!important; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse { width: calc(100vw - 32px); margin: 5px auto 0; gap: 8px; }
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a { font-size: clamp(.78rem, 3.6vw, .92rem); white-space: nowrap; }
}

/* Journal — téléphone. */
.sopota-journal { top: calc(88.65vh - 32px); }
.sopota-journal__message { font-size: 20px; margin-right: 72px; }
.sopota-journal__track { animation-duration: 13.5s; }


/* Taille accrue sur téléphone portrait. Le bord inférieur du journal reste fixe. */
@media (max-width: 600px) and (orientation: portrait) {
  body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-accueil-liens > a { font-size: clamp(1.25rem, 5.2vw, 1.4rem) !important; }
  .sopota-journal { top: calc(88.65vh - 56px) !important; height: 88px !important; }
  .sopota-journal__message { font-size: 40px !important; line-height: 1.2 !important; }
  .sopota-journal__toggle { top: calc(50% + 12px); }
}

/* Copyright et contraste des liens de bas de page sur écran compact. */
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:first-child {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 7px rgba(0,0,0,.65) !important;
}
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:last-child {
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 7px rgba(0,0,0,.65) !important;
}
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-copyright {
  color: #123f3a !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(255,255,255,.95) !important;
}

body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container > li:first-child .wp-block-navigation-item__content { font-weight: 700 !important; }

/* Modèle commun des pages intérieures — téléphone. */
body.sopota-standard-page .sopota-standard-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 260px !important;
  padding: 12px 8px !important;
}
body.sopota-standard-page .sopota-standard-content h1 { margin: 0 !important; color: #123f3a !important; font-size: clamp(1.35rem, 5vw, 1.7rem) !important; line-height: 1.15 !important; }
body.sopota-standard-page .sopota-standard-content .wp-block-post-content { width: 100% !important; margin: 0 !important; color: #123f3a !important; font-size: 1rem !important; line-height: 1.45 !important; }
body.sopota-standard-page .sopota-retour-accueil { display:inline-flex; align-items:center; min-height:34px; padding:5px 12px; border:1px solid rgba(18,63,58,.7); border-radius:24px; background:rgba(255,255,255,.18); color:#123f3a; font-size:.9rem; font-weight:700; text-decoration:none; }
body.sopota-standard-page footer.wp-block-template-part { display:none !important; }
body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-navigation__container > li:first-child .wp-block-navigation-item__content { font-weight: 700 !important; }

/* © placé à la suite du lien « Mentions légales ». */
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse .sopota-copyright {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: inline-block !important;
  margin-left: .18em !important;
  color: inherit !important;
  font-size: .75em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-shadow: inherit !important;
  vertical-align: baseline !important;
  white-space: nowrap !important;
}
body:is(.home, .sopota-standard-page, .sopota-article-page) .sopota-navigation-basse a:last-child { font-weight: 400 !important; }

/* Modèle d’article : colonne principale et liens illustrés facultatifs à gauche. */
body.sopota-article-page { min-height:100vh; }
body.sopota-article-page .wp-site-blocks { min-height:100vh; background:transparent; }
body.sopota-article-page main.sopota-article-main { width:min(1120px, calc(100vw - 80px)); max-width:none; margin:26px auto 0; padding:0; background:transparent; }
body.sopota-article-page .sopota-article-layout { display:block; width:100%; max-width:none; margin:0; padding:0; background:transparent; }
body.sopota-article-page .sopota-article-layout:has(.sopota-liens-associes) { display:grid; grid-template-columns:minmax(112px, 170px) minmax(0, 1fr); align-items:start; gap:clamp(22px, 3vw, 48px); }
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode:empty { display:none; }
body.sopota-article-page .sopota-liens-associes { display:flex; flex-direction:column; align-items:center; gap:22px; width:100%; margin:20px 0 0; padding:0; background:transparent; }
body.sopota-article-page .sopota-article-link { display:block; width:100%; max-width:150px; padding:0; background:transparent; border:0; text-align:center; }
body.sopota-article-page .sopota-article-link__image { display:block; width:auto; max-width:100%; max-height:110px; height:auto; margin:0 auto; object-fit:contain; }
body.sopota-article-page .sopota-article-main-column { min-width:0; max-width:900px; margin:0 auto; padding:clamp(18px, 2.5vw, 36px); color:#123f3a; background:rgba(255,249,230,.86); border-radius:8px; box-shadow:0 2px 14px rgba(24,52,46,.12); }
body.sopota-article-page .sopota-article-main-column > h1 { margin:0 0 18px; color:#123f3a; font-size:clamp(2rem, 3.4vw, 3.1rem); line-height:1.12; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { max-width:760px; margin:0 auto; font-size:clamp(1.06rem, 1.35vw, 1.25rem); line-height:1.68; }
body.sopota-article-page .sopota-article-main-column .sopota-resume { margin:0 0 1.8rem; padding:1rem 1.25rem; background:rgba(255,255,255,.48); border-left:4px solid #bb8e42; }
body.sopota-article-page .sopota-article-main-column figure { margin:1.5rem auto; }
body.sopota-article-page .sopota-article-main-column figure img { display:block; max-width:100%; max-height:560px; width:auto; height:auto; margin:0 auto; object-fit:contain; }
body.sopota-article-page .sopota-article-meta { display:flex; flex-wrap:wrap; gap:.25rem .6rem; align-items:baseline; margin:2rem 0 .25rem; padding-top:.8rem; border-top:1px solid rgba(18,63,58,.28); color:#31554f; font-size:.88rem; line-height:1.4; }
body.sopota-article-page .sopota-article-meta p { margin:0; }
body.sopota-article-page .sopota-article-meta a { color:inherit; }
body.sopota-article-page .sopota-retour-accueil { display:inline-flex; align-items:center; margin:0 0 14px; color:#45625e; font-size:1rem; font-weight:700; text-decoration:none; text-shadow:0 1px 4px rgba(255,255,255,.9); }
body.sopota-article-page .sopota-retour-accueil:hover { text-decoration:underline; }
/* Sur téléphone, les liens illustrés deviennent un pied d’article facultatif. */
@media (max-width:600px) and (orientation:portrait) {
  body.sopota-article-page main.sopota-article-main { width:calc(100vw - 24px); margin:14px auto 0; }
  body.sopota-article-page .sopota-article-layout,
  body.sopota-article-page .sopota-article-layout:has(.sopota-liens-associes) { display:flex; flex-direction:column; gap:14px; }
  body.sopota-article-page .sopota-article-layout > .wp-block-shortcode { order:2; width:100%; }
  body.sopota-article-page .sopota-article-main-column { order:1; width:100%; padding:16px 14px; }
  body.sopota-article-page .sopota-liens-associes { display:flex; flex-direction:row; flex-wrap:wrap; justify-content:center; gap:16px; min-height:0; height:auto; margin:0; }
  body.sopota-article-page .sopota-article-link { width:auto; max-width:58px; }
  body.sopota-article-page .sopota-article-link__image { max-height:58px; }
  body.sopota-article-page .sopota-article-main-column > h1 { font-size:clamp(1.7rem, 8vw, 2.3rem); }
  body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { font-size:1rem; line-height:1.55; }
  body.sopota-article-page .sopota-article-main-column figure img { max-height:420px; }
  body.sopota-article-page .sopota-article-meta { gap:.15rem .45rem; font-size:.8rem; }
}

/* Article téléphone : panneau indépendant, retour et mentions toujours visibles. */
html:has(body.sopota-article-page), body.sopota-article-page { height:100%; min-height:0!important; overflow:hidden!important; }
body.sopota-article-page .wp-site-blocks { height:100vh; min-height:0!important; padding:0!important; overflow:hidden!important; }
body.sopota-article-page #haut { position:relative!important; width:100vw!important; height:100vh!important; min-height:0!important; margin:0!important; overflow:hidden!important; }
body.sopota-article-page header.wp-block-template-part { position:relative; z-index:2; }
body.sopota-article-page main.sopota-article-main { position:static!important; width:100%!important; height:0!important; min-height:0!important; margin:0!important; padding:0!important; }
body.sopota-article-page .sopota-retour-accueil { position:absolute!important; z-index:5!important; top:142px!important; left:12px!important; right:auto!important; display:inline-block!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; color:#45625e!important; font:700 15px/1.4 Manrope,sans-serif!important; text-shadow:0 1px 4px rgba(255,255,255,.9)!important; }
body.sopota-article-page .sopota-article-layout { position:absolute!important; z-index:1!important; top:178px!important; right:10px!important; bottom:clamp(112px,14vh,138px)!important; left:10px!important; display:flex!important; flex-direction:column!important; gap:12px!important; width:auto!important; height:auto!important; max-width:none!important; min-height:0!important; margin:0!important; padding:0!important; overflow:auto!important; overflow-x:hidden!important; overscroll-behavior:contain; background:transparent!important; }
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode { order:2; display:flex!important; width:100%!important; min-height:0!important; }
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode:empty { display:none!important; }
body.sopota-article-page .sopota-article-main-column { order:1; width:100%!important; max-width:none!important; min-height:0!important; margin:0!important; padding:16px 14px!important; box-sizing:border-box!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { width:100%!important; max-width:none!important; margin:0!important; }
body.sopota-article-page .sopota-zone-publicitaire { display:none!important; }
body.sopota-article-page .sopota-navigation-basse { position:absolute!important; z-index:4!important; bottom:0!important; left:0!important; transform:none!important; width:100vw!important; margin:0!important; }

/* Ajustement typographique ciblé de l’article sur téléphone. */
body.sopota-article-page .sopota-article-main-column > h1 { font-size:clamp(1.55rem,7.5vw,2.05rem)!important; font-weight:600!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { font-size:1.08rem!important; font-weight:500!important; line-height:1.58!important; }
body.sopota-article-page .sopota-article-main-column .sopota-resume { font-weight:500!important; }

/* Fenêtre de lecture : voile clair uniforme, même quand le contenu défile. */
body.sopota-article-page .sopota-article-layout { background:transparent!important; overflow:hidden!important; }
body.sopota-article-page .sopota-article-main-column { background:rgba(255,249,230,.92)!important; }
body.sopota-article-page .sopota-article-main-column { box-sizing:border-box!important; border-radius:12px!important; box-shadow:0 3px 18px rgba(24,52,46,.12)!important; }
body.sopota-article-page .sopota-article-main-column .sopota-resume { background:transparent!important; }
body.sopota-article-page .wp-block-post-content > .wp-block-media-text { display:grid!important; grid-template-columns:minmax(0,42%) minmax(0,1fr)!important; gap:clamp(16px,2vw,30px)!important; align-items:center!important; margin:2rem 0!important; }
body.sopota-article-page .wp-block-post-content > .wp-block-media-text .wp-block-media-text__media img { width:100%!important; height:auto!important; object-fit:contain!important; }
body.sopota-article-page .wp-block-post-content > .wp-block-media-text .wp-block-media-text__content { padding:0!important; }
.sopota-overlay-controls { position:fixed!important; z-index:60!important; top:36vh!important; right:clamp(70px,14vw,260px)!important; width:clamp(40px,3.5vw,58px)!important; display:flex!important; flex-direction:column!important; align-items:center!important; gap:8px!important; }
.sopota-tahitian-button { position:relative!important; z-index:1!important; display:block!important; width:100%!important; height:auto!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; opacity:.72; cursor:pointer; filter:drop-shadow(0 1px 4px rgba(255,249,230,.85)); transition:opacity .18s ease,transform .18s ease; }
.sopota-tahitian-button:hover,.sopota-tahitian-button:focus-visible { opacity:1; transform:scale(1.06); }
.sopota-tahitian-button img { display:block!important; width:100%!important; height:auto!important; margin:0!important; object-fit:contain!important; }
.sopota-tahitian-popup { position:absolute; z-index:2; top:50%; right:calc(100% + 14px); transform:translateY(-50%); width:min(400px,calc(100vw - 110px)); max-height:min(62vh,460px); overflow:auto; padding:18px 22px; border:1px solid rgba(18,63,58,.22); border-radius:12px; color:#123f3a; background:rgba(255,249,230,.94); box-shadow:0 8px 30px rgba(18,63,58,.18); font:500 1rem/1.6 Manrope,sans-serif; }
.sopota-tahitian-popup[hidden] { display:none!important; }
.sopota-tahitian-popup h2 { margin:0 0 .6rem; color:#123f3a; font-size:1.15rem; font-weight:700; }
.sopota-tahitian-popup p { margin:0; white-space:pre-line; }
.sopota-overlay-item { position:relative; display:flex; justify-content:center; width:100%; }
.sopota-info-button { display:flex!important; align-items:center!important; justify-content:center!important; width:clamp(28px,2.4vw,38px)!important; height:clamp(28px,2.4vw,38px)!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; opacity:.78; cursor:pointer; filter:drop-shadow(0 1px 4px rgba(255,249,230,.9)); }
.sopota-info-button:hover,.sopota-info-button:focus-visible { opacity:1; transform:scale(1.06); }
.sopota-info-button img { display:block!important; width:100%!important; height:100%!important; object-fit:contain!important; }
.sopota-note-download-form { display:grid; gap:8px; margin-top:14px; }
.sopota-note-download-form label { color:#123f3a; font-weight:650; }
.sopota-note-download-form input[type="email"] { box-sizing:border-box; width:100%; min-height:42px; padding:8px 10px; border:1px solid rgba(18,63,58,.38); border-radius:8px; color:#123f3a; background:rgba(255,255,255,.75); font:inherit; }
.sopota-note-download-form button { justify-self:start; min-height:42px; padding:8px 15px; border:0; border-radius:8px; color:#fff9e6; background:#123f3a; font:650 .95rem/1.2 Manrope,sans-serif; cursor:pointer; }
.sopota-note-download-form button:disabled { opacity:.65; cursor:wait; }
.sopota-note-download-status { min-height:1.4em; margin:0; font-size:.9em; }

@media (max-width:600px) and (orientation:portrait) {
 .sopota-overlay-controls { top:61vh!important; right:6vw!important; width:34px!important; }
 body.sopota-article-page .wp-block-post-content > .wp-block-media-text { grid-template-columns:minmax(0,1fr)!important; gap:10px!important; margin:1.35rem 0!important; }
 body.sopota-article-page .wp-block-post-content > .wp-block-media-text .wp-block-media-text__media,
 body.sopota-article-page .wp-block-post-content > .wp-block-media-text .wp-block-media-text__content { grid-column:1!important; }
 body.sopota-article-page .wp-block-post-content > .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { grid-column:1!important; }
 .sopota-tahitian-popup { right:calc(100% + 8px); width:min(300px,calc(100vw - 72px)); max-height:58vh; padding:15px 17px; font-size:.95rem; }
}

/* Sur téléphone, le papier et les logos facultatifs défilent ensemble dans la fenêtre. */
body.sopota-article-page .sopota-article-layout { overflow:auto!important; overflow-x:hidden!important; }
body.sopota-article-page .sopota-article-main-column { height:auto!important; min-height:0!important; max-height:none!important; overflow:visible!important; }
/* Lecture pleine largeur et images empilees sur telephone. */
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained > * { max-width:none!important; margin-left:0!important; margin-right:0!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained > figure.wp-block-image { display:block!important; float:none!important; clear:both!important; width:100%!important; max-width:100%!important; margin:1.25rem auto!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained > figure.wp-block-image img { display:block!important; width:auto!important; max-width:100%!important; height:auto!important; margin:0 auto!important; }
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content.is-layout-constrained::after { content:""; display:block; clear:both; }
.sopota-overlay-controls { right:10px!important; width:102px!important; }
.sopota-info-button { width:84px!important; height:84px!important; }
.sopota-tahitian-control .sopota-tahitian-popup { top:-56px!important; right:calc(100% + 12px)!important; transform:none!important; width:min(290px,calc(100vw - 150px))!important; max-height:42vh!important; overflow:auto!important; }
/* L’extrait tahitien est placé dans l’espace disponible sans recouvrir l’ascenseur. */
.sopota-tahitian-control .sopota-tahitian-popup { position:fixed!important; left:auto!important; right:20px!important; top:110px!important; width:min(320px,calc(100vw - 40px))!important; max-height:46vh!important; transform:none!important; }
/* Slight text adjustment; keep the icons within the phone display. */
body.sopota-article-page .sopota-article-main-column > .wp-block-post-content { font-size:1.12rem!important; }
.sopota-overlay-controls { width:102px!important; right:10px!important; }
.sopota-tahitian-control .sopota-tahitian-button { left:25px!important; width:51px!important; }
.sopota-info-button { width:clamp(120px,43vw,168px)!important; height:clamp(120px,43vw,168px)!important; transform:translateX(-24px)!important; }
/* Colonne de logos répartie dans la hauteur visible, sans déborder quand la fenêtre est basse. */
body.sopota-article-page .sopota-article-layout > .wp-block-shortcode { min-height:0!important; height:100%!important; align-self:stretch!important; }
body.sopota-article-page .sopota-liens-associes { display:flex!important; flex-direction:column!important; justify-content:space-evenly!important; align-items:center!important; gap:0!important; width:100%!important; height:100%!important; min-height:0!important; }
body.sopota-article-page .sopota-article-link { display:flex!important; flex:1 1 0!important; align-items:center!important; justify-content:center!important; width:100%!important; max-width:150px!important; min-height:0!important; }
body.sopota-article-page .sopota-article-link__image { display:block!important; width:auto!important; max-width:100%!important; max-height:100%!important; height:auto!important; object-fit:contain!important; }
body.sopota-article-page .sopota-overlay-item.sopota-info-control { width:max-content!important; flex:0 0 auto!important; }
body.sopota-article-page .sopota-info-button { flex:0 0 auto!important; }
@media (max-width:600px) {
  body.sopota-article-page .sopota-liens-associes { flex-direction:row!important; flex-wrap:wrap!important; justify-content:center!important; gap:16px!important; height:auto!important; min-height:0!important; }
  body.sopota-article-page .sopota-article-link { flex:0 0 auto!important; width:auto!important; max-width:58px!important; }
  body.sopota-article-page .sopota-article-link__image { max-height:58px!important; }
}
/* Cartes beige clair pour les logos associés, séparées et centrées dans la colonne. */
body.sopota-article-page .sopota-liens-associes { justify-content:center!important; gap:clamp(4px,1vh,12px)!important; }
body.sopota-article-page .sopota-article-link { display:flex!important; flex:1 1 0!important; align-items:center!important; justify-content:center!important; width:100%!important; max-width:none!important; min-height:0!important; background:transparent!important; border:0!important; }
body.sopota-article-page .sopota-article-link__card { display:grid!important; place-items:center!important; box-sizing:border-box!important; width:clamp(24px,min(12vh,calc((100vh - 350px)/4)),104px)!important; height:auto!important; aspect-ratio:1/1!important; padding:clamp(4px,.65vw,9px)!important; overflow:hidden!important; border:1px solid rgba(255,255,255,.72)!important; border-radius:9px!important; background:rgba(255,249,230,.92)!important; box-shadow:0 3px 10px rgba(18,63,58,.12)!important; }
body.sopota-article-page .sopota-article-link__image { display:block!important; width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important; object-fit:contain!important; mix-blend-mode:multiply; }
@media (max-width:600px) {
  body.sopota-article-page .sopota-article-link__card { width:clamp(48px,14vw,58px)!important; height:clamp(48px,14vw,58px)!important; padding:5px!important; }
}
/* Les deux commandes partagent le même axe vertical, avec une marge droite préservée. */
body.sopota-article-page .sopota-overlay-controls { right:calc(clamp(12px,5vw,82px) + clamp(6px,2vw,20px))!important; }
body.sopota-article-page .sopota-overlay-item.sopota-info-control { position:relative!important; left:clamp(30px,2.25vw,43px)!important; }
/* Le lien de retour éditorial reste évident à la fin de l’article. */
body.sopota-article-page .sopota-article-feedback { margin:2.4rem 0 1rem!important; padding-top:1rem!important; border-top:1px solid rgba(18,63,58,.24)!important; text-align:center!important; }
body.sopota-article-page .sopota-article-feedback a { display:inline-block!important; color:#123f3a!important; font-size:clamp(1.4rem,1.8vw,1.65rem)!important; font-weight:700!important; line-height:1.35!important; text-decoration:underline!important; }
@media (max-width:600px) {
  body.sopota-article-page .sopota-overlay-controls { right:58px!important; }
  body.sopota-article-page .sopota-overlay-item.sopota-info-control { left:25px!important; }
  body.sopota-article-page .sopota-info-button { transform:translateX(0)!important; }
  body.sopota-article-page .sopota-info-button:hover,
  body.sopota-article-page .sopota-info-button:focus-visible { transform:translateX(0) scale(1.06)!important; }
  body.sopota-article-page .sopota-article-feedback a { font-size:1.18rem!important; }
}
