/* Socle visuel commun du Blog Phase 1. */
.sopota-contact-title { flex: none; margin: 0 !important; padding-bottom: 16px; border-bottom: 1px solid rgba(18,63,58,.2); text-align: center; color: #123f3a; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; line-height: 1.2; }
.sopota-contact-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 12px 0 0; margin-top: 16px; color: #123f3a; font-size: 20px; font-weight: 650; line-height: 1.5; }
.sopota-contact-scroll p { margin: 0 0 14px; }
.sopota-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.sopota-contact-fields[hidden] { display: none; }
.sopota-contact-wide { grid-column: 1 / -1; }
.sopota-contact-fields label { display: block; margin-bottom: 5px; font-weight: 750; }
.sopota-contact-fields label span { font-size: .85em; font-weight: 500; }
.sopota-contact-fields input, .sopota-contact-fields textarea { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #54746d; border-radius: 6px; background: #fffdf7; color: #123f3a; font: inherit; font-weight: 500; }
.sopota-contact-fields textarea { resize: none; }
.sopota-contact-fields .sopota-contact-email-error { margin: 5px 0 0; color: #902c1b; font-size: 17px; font-weight: 650; }
.sopota-contact-fields input[aria-invalid="true"] { border: 2px solid #902c1b; }
.sopota-contact-fields input::placeholder, .sopota-contact-fields textarea::placeholder { color: #586e67; opacity: 1; }
.sopota-contact-scroll .sopota-contact-help { font-size: 17px; margin-top: 12px; }
.sopota-contact-preview { padding: 12px; border-left: 4px solid #54746d; background: rgba(18,63,58,.06); font-size: 16px; font-weight: 500; }
.sopota-contact-submit { display: block; max-width: 100%; margin: 16px auto; padding: 12px 22px; border: 0; border-radius: 6px; background: #123f3a; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.sopota-contact-submit:hover { background: #22675d; }
.sopota-contact-submit:disabled { opacity: .6; cursor: default; }
.sopota-contact-fields :is(input, textarea):focus-visible, .sopota-contact-submit:focus-visible, .sopota-legal-actions a:focus-visible { outline: 3px solid #b66b13; outline-offset: 3px; }
#sopota-contact-status:not(:empty) { padding: 12px; border: 1px solid #54746d; border-radius: 6px; font-size: 18px; }
body.home nav.sopota-navigation-basse { justify-content: space-between !important; gap: 20px; }
body.home nav.sopota-navigation-basse a.sopota-information-link { display: inline-block !important; font-weight: 700 !important; }
body.home nav.sopota-navigation-basse a { font-weight: 700 !important; }
@media (max-width: 600px) {
  .sopota-contact-fields { grid-template-columns: minmax(0, 1fr); }
  .sopota-contact-scroll { font-size: 18px; padding-right: 4px; }
  body.home nav.sopota-navigation-basse { gap: 12px; align-items: flex-end !important; }
  body.home nav.sopota-navigation-basse a:last-child { text-align: right; max-width: 55%; }
}
body:is(.page-id-20, .page-id-19) .wp-site-blocks {
  height: 100dvh;
  min-height: 0 !important;
  padding-top: 8px !important;
}
body:is(.page-id-20, .page-id-19) #haut.sopota-legal-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding-bottom: 24px;
}
body:is(.page-id-20, .page-id-19) #haut > header { flex: none; }
body:is(.page-id-20, .page-id-19) main.sopota-legal-panel {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: min(900px, calc(100vw - 40px)) !important;
  margin: 16px auto 0 !important;
  padding: 24px !important;
  overflow: hidden;
  background: rgba(255, 249, 235, .94) !important;
  border: 1px solid rgba(18, 63, 58, .18) !important;
  border-radius: 10px !important;
}
.sopota-legal-heading {
  display: flex;
  flex: none;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(18, 63, 58, .2);
}
.sopota-legal-heading img { display: block; flex: none; object-fit: contain; }
.sopota-legal-heading h1 { margin: 0; color: #123f3a; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; }
body:is(.page-id-20, .page-id-19) .sopota-legal-text {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 16px 0 0;
  padding-right: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  color: #123f3a;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.6;
}
.sopota-legal-text section { margin: 0 0 1.8em; }
.sopota-legal-text h2 { margin: 0 0 .8em; font-size: 1.2em; line-height: 1.3; }
.sopota-legal-text p { margin: 0 0 .9em; }
.sopota-legal-text a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
.sopota-legal-date { font-size: .9em; }
@media (min-width: 1001px) {
  body:is(.page-id-20, .page-id-19) .sopota-legal-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 0;
  }
  body:is(.page-id-20, .page-id-19) .sopota-legal-heading img {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 160px;
    height: 160px;
    max-width: none;
  }
  body:is(.page-id-20, .page-id-19) .sopota-legal-heading h1 {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 800;
  }
  body:is(.page-id-20, .page-id-19) .sopota-legal-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.55;
  }
  body:is(.page-id-20, .page-id-19) .sopota-legal-text h2 {
    font-weight: 800;
  }
}
.sopota-legal-actions { flex: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(18, 63, 58, .2); text-align: center; }
.sopota-legal-actions a { display: inline-block; padding: 10px 18px; border-radius: 6px; background: #123f3a; color: #fff; font-weight: 650; line-height: 1.4; text-decoration: none; }
.sopota-legal-actions a:hover { background: #22675d; }
body:is(.page-id-20, .page-id-19) .sopota-navigation-basse { display: none !important; }
@media (max-width: 600px) {
  body:is(.page-id-20, .page-id-19) main.sopota-legal-panel { width: calc(100vw - 24px) !important; margin-top: 10px !important; padding: 16px !important; }
  .sopota-legal-heading { gap: 12px; padding-bottom: 12px; }
  .sopota-legal-heading img { width: 56px; height: 56px; }
  body:is(.page-id-20, .page-id-19) .sopota-legal-text { padding-right: 8px; }
}

body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title a {
  font-size: clamp(3.6rem, 6.6vw, 5.1rem) !important;
}
@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) {
  body.home header.wp-block-template-part {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10vh auto 0 !important;
    box-sizing: border-box;
  }
  body.home header.wp-block-template-part > .wp-block-group.alignwide {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title a {
    font-size: clamp(2.17rem, 4.48vw, 2.87rem) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  body:is(.home, .sopota-standard-page, .sopota-article-page) header .wp-block-site-title a {
    font-size: clamp(2.4rem, 10vw, 2.8rem) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

body .sopota-accueil-liens,
body .sopota-language-switcher,
body header .wp-block-search,
body header .wp-block-navigation,
body .sopota-navigation-basse a[href="/nous-contacter/"],
body .sopota-navigation-basse a[href="/suivre-les-nouvelles/"] {
  display: none !important;
}

body nav.sopota-navigation-basse {
  position: fixed !important;
  inset: auto 24px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 45;
}

body nav.sopota-navigation-basse a {
  position: static !important;
  transform: none !important;
  max-width: 100% !important;
}

body.home nav.sopota-navigation-basse a.sopota-information-link {
  position: fixed !important;
  left: 50% !important;
  top: auto !important;
  right: auto !important;
  bottom: 12px !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  max-width: calc(100vw - 40px) !important;
  text-align: center !important;
  white-space: normal !important;
  text-transform: uppercase;
  text-shadow: none !important;
}

@keyframes sopota-information-attention {
  0%, 15%, 100% { filter: brightness(0); }
  50%, 65% { filter: brightness(1); }
}
.sopota-information-question-phone { display: none; }
@keyframes sopota-information-attention-inverse {
  0%, 15%, 100% { filter: brightness(1); }
  50%, 65% { filter: brightness(0); }
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  body.home nav.sopota-navigation-basse a.sopota-information-link {
    color: #fff !important;
  }
  .sopota-information-question, .sopota-information-action { display: inline-block; }
  .sopota-information-question {
    animation: sopota-information-attention 5s ease-in-out infinite;
  }
  .sopota-information-action {
    animation: sopota-information-attention-inverse 5s ease-in-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home nav.sopota-navigation-basse a.sopota-information-link { color: #111 !important; }
}

@media (max-width: 600px) {
  body nav.sopota-navigation-basse { inset: auto 12px 12px !important; }
}

.sopota-contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sopota-contact-actions .sopota-contact-submit { margin: 0; font-size: 20px; }
@media (min-width: 1001px) {
  body.page-id-19 main.sopota-contact-panel { width: min(1100px, calc(100vw - 48px)) !important; padding: 16px 22px !important; margin-top: 8px !important; }
  .sopota-contact-title { font-size: 34px; padding-bottom: 8px; }
  .sopota-contact-scroll { font-size: 22px; line-height: 1.2; margin-top: 8px; padding-right: 0; }
  .sopota-contact-scroll p { margin-bottom: 8px; }
  .sopota-contact-fields { gap: 8px 20px; }
  .sopota-contact-fields label { margin-bottom: 4px; }
  .sopota-contact-fields label span { font-size: 20px; font-weight: 600; }
  .sopota-contact-fields input, .sopota-contact-fields textarea { min-height: 40px; padding: 5px 10px; }
  .sopota-contact-scroll { display: flex; flex-direction: column; }
  #sopota-contact-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .sopota-contact-fields { flex: 1; min-height: 0; grid-template-rows: auto auto minmax(150px, 1fr); }
  .sopota-contact-message { display: flex; flex-direction: column; min-height: 0; }
  .sopota-contact-fields textarea { flex: 1; min-height: 120px; height: 0; }
  #sopota-contact-status:empty { display: none; }
  .sopota-contact-scroll .sopota-contact-help { font-size: 20px; margin: 8px 0; }
  .sopota-contact-preview { font-size: 20px; padding: 6px 10px; }
  .sopota-contact-actions { margin-top: 8px; padding-top: 8px; }
  .sopota-contact-actions a, .sopota-contact-actions .sopota-contact-submit { font-size: 22px; line-height: 1.2; padding: 10px 16px; }
}
@media (max-width: 600px) {
  .sopota-contact-actions { flex-direction: column-reverse; }
}

@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) {
  body.home nav.sopota-navigation-basse a:first-child {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }
  body.home nav.sopota-navigation-basse a.sopota-information-link {
    top: calc(62% + 1.35em) !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    font-size: 32px !important;
    line-height: 1.35 !important;
  }
  body.home .sopota-information-link .sopota-information-question,
  body.home .sopota-information-link .sopota-information-action {
    display: block;
    text-align: center;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  body.home header.wp-block-template-part {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10vh auto 0 !important;
    box-sizing: border-box;
  }
  body.home header.wp-block-template-part > .wp-block-group.alignwide {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }
  body.home header .wp-block-site-title a {
    font-size: clamp(1.38rem, 5.75vw, 1.61rem) !important;
    white-space: nowrap !important;
  }
  body.home nav.sopota-navigation-basse a.sopota-information-link {
    top: calc(62% + 1.35em) !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    font-size: clamp(16px, 4.7vw, 24px) !important;
    line-height: 1.35 !important;
  }
  body.home .sopota-information-link .sopota-information-question,
  body.home .sopota-information-link .sopota-information-action {
    display: block;
    text-align: center;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .sopota-information-question-full { display: none; }
  .sopota-information-question-phone { display: inline; }
  body.home .sopota-information-question { color: #0077cc; }
}

.sopota-home-logos { display: none; }
@media (min-width: 1001px) {
  body.home .sopota-home-logos {
    display: contents;
    margin: 0;
    padding: 0;
    z-index: 20;
  }
  body.home .sopota-home-logos img {
    position: fixed;
    display: block;
    width: auto;
    height: calc(100dvh / 7);
    max-width: 100%;
    object-fit: contain;
    z-index: 20;
  }
  body.home .sopota-home-logos img[alt="IONUI"] {
    left: 34%;
    top: 59%;
    height: 23dvh;
    transform: translate(-50%, -50%);
  }
  body.home .sopota-home-logos img[alt="ILONOME"] {
    left: 54%;
    top: 55.5%;
    width: 24vw;
    height: auto;
    transform: translate(-50%, -50%);
  }
  body.home .sopota-home-logos img[alt="SOPOTA"] {
    left: 2.5vw;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translateY(-25%);
    height: 22dvh;
  }
  body.home .sopota-journal {
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) {
  body.home .sopota-home-logos { display: contents; }
  body.home .sopota-home-logos img {
    position: fixed;
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    z-index: 20;
  }
  body.home .sopota-home-logos img[alt="IONUI"] {
    left: 50%;
    top: 52.25%;
    height: 16.5dvh;
  }
  body.home .sopota-home-logos img[alt="ILONOME"] {
    left: 50%;
    top: calc(32.5% + 30px);
    width: 39.9vw;
    height: auto;
  }
  body.home .sopota-home-logos img[alt="SOPOTA"] {
    left: 50%;
    top: calc(75% + 28.2px);
    height: clamp(48px, calc(31.2dvh - 195.6px), 132px);
  }
  body.home .sopota-journal {
    top: calc(88vh - 40px) !important;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  body.home .sopota-home-logos { display: contents; }
  body.home .sopota-home-logos img {
    position: fixed;
    display: block;
    width: auto;
    max-width: calc(100vw - 32px);
    object-fit: contain;
    left: 23%;
    transform: translate(-50%, -50%);
    z-index: 20;
  }
  body.home .sopota-home-logos img[alt="ILONOME"] {
    left: 9.77%;
    transform: translateY(-50%);
    top: 32%;
    width: 82.8vw;
    height: auto;
  }
  body.home .sopota-home-logos img[alt="IONUI"] {
    top: 50.5%;
    height: 17dvh;
  }
  body.home .sopota-home-logos img[alt="SOPOTA"] {
    top: 75%;
    height: 12dvh;
  }
}

body.page-id-20 header .wp-block-site-title a {
  font-size: clamp(2.52rem, 4.62vw, 3.57rem) !important;
}
@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) {
  body.page-id-20 header .wp-block-site-title a {
    font-size: clamp(3.038rem, 6.272vw, 4.018rem) !important;
    color: #fff !important;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  body.page-id-20 header .wp-block-site-title a {
    font-size: clamp(1.68rem, 7vw, 1.96rem) !important;
  }
}

@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  body.page-id-20 header .wp-block-site-title a {
    animation: sopota-information-attention-inverse 5s ease-in-out infinite;
    text-shadow: none !important;
  }
}
@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) and (prefers-reduced-motion: reduce) {
  body.page-id-20 header .wp-block-site-title a { color: #111 !important; }
}
@media (max-width: 600px) and (orientation: portrait) {
  body.page-id-19 header .wp-block-site-title a {
    font-size: clamp(1.38rem, 5.75vw, 1.61rem) !important;
    white-space: nowrap !important;
  }
  body.page-id-19 header.wp-block-template-part,
  body.page-id-19 header.wp-block-template-part > .wp-block-group.alignwide {
    box-sizing: border-box;
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
}
@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) {
  body.page-id-19 .sopota-contact-message > label,
  body.page-id-19 .sopota-contact-help {
    text-align: center;
  }
}
@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) {
  body.page-id-19 header .wp-block-site-title a {
    font-size: clamp(3.038rem, 6.272vw, 4.018rem) !important;
    color: #fff !important;
    text-shadow: none !important;
  }
}
@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  body.page-id-19 header .wp-block-site-title a {
    animation: sopota-information-attention-inverse 5s ease-in-out infinite;
  }
}
@media (min-width: 601px) and (max-width: 1000px) and (orientation: portrait) and (prefers-reduced-motion: reduce) {
  body.page-id-19 header .wp-block-site-title a { color: #111 !important; }
}
