/* V7 — étiquette horizontale, consentement et protection contre les styles anciens. */
.hero .hero-art,
.hero .hero-art:hover,
.hero .hero-art:focus-within,
.hero .hero-art .hero-art-label,
.hero .hero-art .hero-art-label:hover,
.hero .hero-art .hero-art-label:focus-within {
  transform: none !important;
  rotate: 0deg !important;
  translate: none !important;
  animation: none !important;
  transition: none !important;
}
.hero-art-label { max-width: calc(100% - 32px); text-align: left; }
.hero-art-label > div { min-width: 0; }
.hero-art-label strong { letter-spacing: 0; line-height: 1.5; }
.hero-art-label small { line-height: 1.65; }
.hero-art-label .orange-dot { flex-shrink: 0; }

/* Bandeau non modal : le site et ses boutons de contact restent utilisables. */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  z-index: 1000;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0,1fr) 194px;
  align-items: center;
  gap: 26px;
  padding: 24px 26px;
  background: #fff;
  color: #123643;
  border: 1px solid #d8e3df;
  border-top: 3px solid #f58a22;
  border-radius: 18px;
  box-shadow: 0 12px 60px #061e3b38;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cookie-banner .eyebrow { font-size: .61rem; letter-spacing: .14em; color: #9b4800; margin: 0 0 5px; line-height: 1.6; }
.cookie-banner h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 9px; }
.cookie-banner p { margin: 0 0 8px; font-size: .81rem; line-height: 1.65; }
.cookie-policy-link { font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .cookie-availability { margin: 8px 0 0; color: #52676f; font-size: .7rem; line-height: 1.5; }
.cookie-banner-actions { display: grid; gap: 8px; }
.cookie-banner .button, .consent-v7 .button { white-space: normal; width: 100%; line-height: 1.4; border-radius: 8px; }
.cookie-banner .cookie-decision, .consent-v7 .cookie-decision {
  background: #123643;
  color: #fff;
  border: 1px solid #123643;
  font-size: .81rem;
  font-weight: 700;
  min-height: 44px;
  padding: 12px 14px;
}
.cookie-banner .cookie-decision:hover, .consent-v7 .cookie-decision:hover { background: #204e5d; color: #fff; }
.cookie-customize { background: #fff; color: #123643; border: 1px solid #9cafb5; font-size: .8rem; font-weight: 700; min-height: 44px; padding: 12px 14px; }
.cookie-customize:hover { background: #edf3f0; color: #123643; }
.cookie-banner button:disabled, .consent-v7 button:disabled { cursor: wait; opacity: .6; }
.cookie-banner :focus-visible, .consent-v7 :focus-visible { outline: 3px solid #da6b05; outline-offset: 3px; }

/* Fenêtre de préférences : catégories distinctes et refus au même niveau. */
.consent-dialog.consent-v7 { width: min(590px,calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border-radius: 18px; }
.consent-v7 > div { padding: 28px; position: relative; }
.consent-v7 .eyebrow { padding-right: 42px; }
.consent-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: #edf3f0; color: #123643; border: 0; cursor: pointer; }
.consent-close .icon { width: 19px; height: 19px; }
.consent-v7 h2 { font-size: 1.65rem; line-height: 1.2; margin: 0 35px 12px 0; }
.consent-v7 .consent-options { gap: 0; margin: 18px 0 14px; border: 1px solid #dce6e2; border-radius: 12px; overflow: hidden; }
.consent-v7 .consent-options label, .consent-necessary { display: flex; gap: 12px; align-items: flex-start; padding: 15px; line-height: 1.5; margin: 0; background: #fff; }
.consent-v7 .consent-options label { border-top: 1px solid #dce6e2; cursor: pointer; }
.consent-v7 .consent-options label:has(input:disabled) { background: #f5f8f6; cursor: default; }
.consent-v7 .consent-options input { margin: 3px 0 0; accent-color: #123643; width: 19px; height: 19px; }
.consent-v7 .consent-options strong { font-size: .86rem; line-height: 1.5; }
.consent-v7 .consent-options small { font-size: .74rem; line-height: 1.65; color: #52676f; }
.necessary-check { width: 19px; height: 19px; margin-top: 3px; flex: 0 0 auto; display: grid; place-items: center; background: #123643; color: #fff; border-radius: 4px; }
.necessary-check .icon { width: 14px; height: 14px; }
.consent-badge { display: inline-block; font-size: .66rem; color: #506770; line-height: 1.4; margin-top: 6px; }
.consent-v7 p.consent-retention { font-size: .74rem; margin: 8px 0 10px; line-height: 1.65; }
.consent-v7 #consent-status { line-height: 1.6; margin: 0 0 10px; }
.consent-v7 .consent-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.consent-v7 .consent-save { grid-column: 1 / -1; }
.cookie-policy-list { padding-left: 22px; }
.cookie-policy-list li { padding-left: 4px; margin: 15px 0; line-height: 1.8; }
.cookie-policy-list code { font-size: .9em; overflow-wrap: anywhere; }
#cookies { scroll-margin-top: 105px; }
#cookie-feedback.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .cookie-banner { bottom: calc(77px + env(safe-area-inset-bottom,0px)); width: calc(100% - 24px); grid-template-columns: minmax(0,1fr); gap: 13px; padding: 18px; border-radius: 14px; max-height: calc(100dvh - 98px); }
  .cookie-banner h2 { font-size: 1.22rem; margin-bottom: 8px; }
  .cookie-banner p { font-size: .75rem; line-height: 1.55; }
  .cookie-banner .cookie-availability { font-size: .66rem; line-height: 1.45; }
  .cookie-policy-link { font-size: .71rem; }
  .cookie-banner-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .cookie-banner-actions .cookie-customize { grid-column: 1 / -1; }
  .cookie-banner .button { font-size: .74rem; padding: 10px 8px; }
  .consent-v7 > div { padding: 24px 18px 20px; }
  .consent-v7 .consent-options label, .consent-necessary { padding: 12px; }
  .consent-v7 h2 { font-size: 1.45rem; }
  .consent-v7 .consent-options small { font-size: .72rem; }
  .consent-v7 .consent-actions .button { font-size: .76rem; padding: 11px 9px; }
  .hero .hero-art-label { bottom: 32px; }
}
@media (max-width: 380px) {
  .cookie-banner { padding: 15px; }
  .cookie-banner h2 { font-size: 1.14rem; }
  .cookie-banner p { font-size: .73rem; }
  .hero-art-label strong { font-size: .74rem; }
}
@media print { .cookie-banner, .consent-dialog, #cookie-feedback { display: none !important; } }
