/* ============================================================
   Arsõlya — Global Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  margin: 0; padding: 0;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #ecece8;
}

body {
  margin: 0; padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #111;
  background: #ecece8;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main#MainContent { flex: 1; background: #faf8f5; }
.arsolya-legal-footer { margin-top: auto; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ── Google Translate bar suppression ── */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.skiptranslate > iframe { display: none !important; }
.goog-te-gadget { display: none !important; }
body { top: 0px !important; }

/* ============================================================
   HEADER
   ============================================================ */

:root {
  --ars-header-height: 90px;
  --ars-text: #111111;
  --ars-menu-bg: #faf8f5;
  --ars-header-solid: #faf8f5;
}

.ars-header {
  position: fixed; top: 0; left: 0;
  width: 100%; height: var(--ars-header-height);
  z-index: 10000; background: transparent;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(0);
  transition: transform .35s ease, background-color .35s ease;
}
.ars-header.ars-header-hidden { transform: translateY(-100%); }
.ars-header.ars-header-solid { background: var(--ars-header-solid); }

.ars-header-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.ars-logo {
  font-family: "Times New Roman", serif;
  font-size: 36px; letter-spacing: 0.15em;
  text-decoration: none; color: var(--ars-text); line-height: 1;
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  padding-left: 0.15em;
}

/* Burger */
.ars-burger {
  position: absolute; left: 14px;
  width: 34px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10002;
}
.ars-burger-lines { position: relative; width: 28px; height: 20px; }
.ars-burger-lines span {
  position: absolute; left: 0; width: 100%; height: 1.8px;
  background: var(--ars-text); display: block;
  border-radius: 999px; transform-origin: center;
  transition: top .35s ease, opacity .25s ease;
}
.ars-burger-lines span:nth-child(1) { top: 0; }
.ars-burger-lines span:nth-child(2) { top: 9px; }
.ars-burger-lines span:nth-child(3) { top: 18px; }
.ars-burger.active .ars-burger-lines span:nth-child(1) { top: 9px; }
.ars-burger.active .ars-burger-lines span:nth-child(2) { top: 9px; }
.ars-burger.active .ars-burger-lines span:nth-child(3) { top: 9px; }

/* Lang switcher */
.ars-lang-switcher {
  position: absolute; right: 14px;
  display: flex;
  border: 1.5px solid var(--ars-text);
  border-radius: 3px; overflow: hidden; z-index: 10003;
}
.ars-lang-btn {
  background: transparent; border: none;
  color: var(--ars-text); font-family: "Times New Roman", serif;
  font-size: 12px; letter-spacing: 0.10em;
  padding: 5px 11px; cursor: pointer;
  transition: background 0.2s, color 0.2s; line-height: 1;
}
.ars-lang-btn + .ars-lang-btn { border-left: 1.5px solid var(--ars-text); }
.ars-lang-btn.ars-lang-active { background: var(--ars-text); color: #f7f5f2; }
.ars-lang-btn:not(.ars-lang-active):hover { opacity: 0.55; }

/* Overlay */
.ars-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9998;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: rgba(255,255,255,.10);
  transition: opacity .35s ease, visibility .35s ease;
}
.ars-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

/* Menu latéral */
.ars-menu {
  position: fixed; top: 0; left: 0;
  width: 300px; max-width: 80vw; height: 100vh; height: 100dvh;
  background: var(--ars-menu-bg);
  padding: 115px 40px 40px;
  transform: translateX(-100%);
  transition: .45s cubic-bezier(.22,.61,.36,1);
  z-index: 9999;
  display: flex; flex-direction: column; overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
.ars-menu.active { transform: translateX(0); }
.ars-menu nav { display: flex; flex-direction: column; gap: 34px; margin-top: 10px; min-height: 100%; height: 100%; }
.ars-menu a { text-decoration: none; color: var(--ars-text); font-size: 22px; font-family: "Times New Roman", serif; transition: .25s; }
.ars-menu a:hover { transform: translateX(6px); opacity: .75; }

.ars-menu-close {
  display: none;
  position: absolute; top: 0; left: 0;
  width: 70px; height: 90px;
  align-items: center; justify-content: center;
  cursor: pointer; z-index: 10002;
  background: none; border: none; padding: 0;
}

@keyframes ars-lines-in {
  0% { opacity: 0; transform: translateX(-6px); }
  100% { opacity: 1; transform: translateX(0); }
}
.ars-menu.active .ars-menu-close .ars-burger-lines span:nth-child(1) { animation: ars-lines-in .3s ease both; animation-delay: .05s; }
.ars-menu.active .ars-menu-close .ars-burger-lines span:nth-child(2) { animation: ars-lines-in .3s ease both; animation-delay: .12s; }
.ars-menu.active .ars-menu-close .ars-burger-lines span:nth-child(3) { animation: ars-lines-in .3s ease both; animation-delay: .19s; }

.ars-menu-logo {
  font-family: "Times New Roman", serif;
  font-size: 28px; letter-spacing: 0.15em; color: var(--ars-text);
  position: absolute; top: 0; left: 0; right: 0; height: 90px;
  display: none; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(17,17,17,.08);
}

.ars-menu-bottom-wrap { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.ars-menu-bottom-label { font-family: Arial, Helvetica, sans-serif; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(17,17,17,.48); line-height: 1.4; }
.ars-menu-bottom-link { text-decoration: none; color: var(--ars-text); font-size: 22px; font-family: "Times New Roman", serif; transition: .25s; }
.ars-menu-bottom-link:hover { transform: translateX(6px); opacity: .75; }

.ars-lang-menu-row { display: none; align-items: center; gap: 14px; margin-top: 4px; }
.ars-lang-menu-label { font-family: "Times New Roman", serif; font-size: 22px; color: var(--ars-text); }
.ars-lang-switcher--menu { display: flex; margin-top: 0; position: static; }

/* Blur main on menu open */
main.ars-blur-target { transition: filter .35s ease; will-change: filter; }
body.ars-menu-open main.ars-blur-target { -webkit-filter: blur(16px); filter: blur(16px); pointer-events: none; -webkit-user-select: none; user-select: none; }

/* ============================================================
   FOOTER
   ============================================================ */

.arsolya-legal-footer {
  width: 100%;
  padding: 40px 38px 0;
  background: #ecece8;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #111;
  flex-shrink: 0;
}
body { margin-bottom: 0 !important; }
.arsolya-legal-footer-inner {
  max-width: 1400px; margin: auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 60px; align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.arsolya-legal-left { max-width: 560px; }
.arsolya-legal-eyebrow { margin: 0 0 10px; font-size: 12px; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(0,0,0,0.45); }
.arsolya-legal-brand { display: none; }
.arsolya-legal-line { width: 70px; height: 1px; margin: 0 0 18px; background: rgba(0,0,0,0.18); }
.arsolya-legal-text { margin: 0; font-size: 15px; line-height: 1.85; color: rgba(0,0,0,0.64); max-width: 520px; }
.arsolya-legal-right { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.arsolya-legal-title { margin: 0 0 16px; font-size: 12px; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(0,0,0,0.45); }
.arsolya-legal-nav { display: flex; flex-direction: column; gap: 12px; }
.arsolya-legal-nav a {
  position: relative; display: inline-block; width: fit-content;
  text-decoration: none; color: #111; font-size: 14px; line-height: 1.5;
  transition: opacity 0.25s ease;
}
.arsolya-legal-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: rgba(0,0,0,0.55);
  transition: width 0.28s ease;
}
.arsolya-legal-nav a:hover { opacity: 0.72; }
.arsolya-legal-nav a:hover::after { width: 100%; }
.arsolya-legal-infos p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; color: rgba(0,0,0,0.60); }

/* Nom de marque centré en bas du footer */
.arsolya-legal-bottom {
  display: block;
  text-align: center;
  width: calc(100% + 76px);
  margin: 0 -38px;
  padding: 28px 0 34px;
  background: #ecece8;
  font-family: "Times New Roman", serif;
  font-size: clamp(22px, 2.8vw, 38px);
  letter-spacing: 0.20em;
  color: rgba(0,0,0,0.68);
  font-weight: 400;
  line-height: 1;
  box-sizing: border-box;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

/* ── Grands écrans (24" → 27"+) ── */
@media (min-width: 1440px) {
  :root { --ars-header-height: 100px; }
  .ars-logo { font-size: 42px; }
  .ars-burger { left: 36px; width: 42px; height: 28px; }
  .ars-burger-lines { width: 32px; height: 22px; }
  .ars-burger-lines span:nth-child(2) { top: 10px; }
  .ars-burger-lines span:nth-child(3) { top: 20px; }
  .ars-lang-switcher:not(.ars-lang-switcher--menu) { right: 36px; }
  .ars-lang-btn { font-size: 13px; padding: 7px 15px; }
  .ars-account-icon { right: 36px; }
  .ars-header-inner.has-account-icon .ars-lang-switcher:not(.ars-lang-switcher--menu) { right: 114px; }
  .ars-account-link { width: 38px; height: 38px; }
  .ars-account-avatar { width: 38px; height: 38px; font-size: 16px; }
  .ars-menu { width: 340px; padding: 128px 48px 48px; }
  .ars-menu a { font-size: 26px; }
  .ars-menu nav { gap: 36px; }
  .ars-menu-bottom-link { font-size: 26px; }
  .ars-menu-bottom-label { font-size: 10px; }
}

@media (min-width: 1920px) {
  :root { --ars-header-height: 112px; }
  .ars-logo { font-size: 48px; }
  .ars-burger { left: 56px; }
  .ars-lang-switcher:not(.ars-lang-switcher--menu) { right: 56px; }
  .ars-lang-btn { font-size: 14px; padding: 8px 17px; }
  .ars-account-icon { right: 56px; }
  .ars-header-inner.has-account-icon .ars-lang-switcher:not(.ars-lang-switcher--menu) { right: 128px; }
  .ars-account-link { width: 42px; height: 42px; }
  .ars-account-avatar { width: 42px; height: 42px; font-size: 17px; }
  .ars-menu { width: 380px; padding: 144px 56px 56px; }
  .ars-menu a { font-size: 28px; }
  .ars-menu nav { gap: 42px; }
  .ars-menu-bottom-link { font-size: 28px; }
  .ars-menu-bottom-label { font-size: 11px; }
}

@media (max-width: 700px) {
  :root { --ars-header-height: 72px; }
  .ars-menu { z-index: 10001; width: 250px; max-width: 85vw; padding: 90px 28px 30px; }
  .ars-menu nav { gap: 22px; margin-top: 10px; }
  .ars-menu a { font-size: 18px; }
  .ars-menu-bottom-wrap { padding-top: 16px; gap: 7px; }
  .ars-menu-bottom-label { font-size: 9px; letter-spacing: .22em; }
  .ars-menu-bottom-link { font-size: 18px; }
  .ars-menu-close { display: flex; }
  .ars-menu-logo { display: none; }
  .ars-lang-switcher:not(.ars-lang-switcher--menu) { display: none; }
  .ars-lang-menu-row { display: flex; }
  .ars-logo { font-size: 18px; }
  .ars-burger { left: 12px; }
}

@media (max-width: 380px) {
  :root { --ars-header-height: 62px; }
  .ars-logo { font-size: 18px !important; }
  .ars-burger { left: 10px; }
  .ars-menu { width: 230px; max-width: 82vw; padding: 80px 20px 24px; }
  .ars-menu a { font-size: 17px; }
  .ars-menu-bottom-link { font-size: 17px; }
  .ars-account-icon { right: 12px; }
  .ars-account-dropdown { min-width: 180px; max-width: calc(100vw - 16px); }
}

@media (max-width: 900px) {
  .arsolya-legal-footer { padding: 28px 20px 0; }
  .arsolya-legal-footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .arsolya-legal-right { grid-template-columns: 1fr; gap: 28px; }
  .arsolya-legal-brand { font-size: 32px; }
  .arsolya-legal-text,
  .arsolya-legal-nav a,
  .arsolya-legal-infos p { font-size: 14px; }
  .arsolya-legal-bottom { width: calc(100% + 40px); margin: 0 -20px; }
}

/* ============================================================
   LEGAL PAGES (mentions-legales, cgv)
   ============================================================ */

.arsolya-legal-page { background: #ecece8; margin: 0; padding: 0; }
body.arsolya-legal-page main#MainContent { background: #f3f3f1; }
.arsolya-legal-wrap { max-width: 980px; margin: 0 auto; padding: 24px 28px 90px; color: #111111; font-family: "Helvetica Neue", Arial, sans-serif; }
.arsolya-legal-head { margin: 0 0 36px; }
.arsolya-legal-kicker { font-family: Georgia, "Times New Roman", serif; font-size: 54px; line-height: 1; letter-spacing: .02em; margin: 0 0 34px; }
.arsolya-legal-head h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; line-height: 1.2; }
.arsolya-legal-body h2 { margin: 34px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; line-height: 1.35; }
.arsolya-legal-body p { margin: 0 0 16px; font-size: 15px; line-height: 1.95; color: #2c2c2c; }
.arsolya-legal-body em { font-style: italic; color: rgba(44,44,44,.72); font-size: 13px; line-height: 1.7; }
.arsolya-legal-body a { color: #111111; text-decoration: underline; text-underline-offset: 3px; }
.arsolya-legal-body a:hover { opacity: .65; }
.arsolya-legal-body strong { color: #111111; font-weight: 600; }
.arsolya-legal-alert { background: #fffbeb; border: 1px solid rgba(180,100,0,.18); border-radius: 10px; padding: 16px 20px; margin: 0 0 16px; }
.arsolya-legal-alert p { margin: 0; font-size: 14px; color: #7a4f00; }

@media (max-width: 768px) {
  .arsolya-legal-wrap { padding: 18px 18px 70px; }
  .arsolya-legal-kicker { font-size: 38px; margin-bottom: 26px; }
  .arsolya-legal-head h1 { font-size: 24px; }
  .arsolya-legal-body p { font-size: 14px; line-height: 1.85; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   ACCOUNT ICON — header
   ============================================================ */

.ars-header-inner.has-account-icon .ars-lang-switcher:not(.ars-lang-switcher--menu) {
  right: 96px;
}
.ars-account-icon {
  position: absolute; right: 14px; z-index: 10003;
  display: flex; align-items: center;
}
.ars-account-link {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--ars-text); background: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(17,17,17,.22);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.ars-account-link:hover,
.ars-account-icon.open .ars-account-link {
  border-color: rgba(17,17,17,.7);
  background: rgba(17,17,17,.05);
}
.ars-account-dot {
  position: absolute; top: -1px; right: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #3a8a5c; border: 1.5px solid #f7f5f2;
  pointer-events: none;
}
.ars-account-dropdown {
  display: block;
  position: absolute; top: calc(100% + 12px); right: 0;
  background: #faf8f5; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
  padding: 6px; min-width: 196px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 20000;
}
.ars-account-icon.open .ars-account-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ars-account-dropdown-name {
  padding: 10px 14px 6px;
  font-size: 12px; font-weight: 700; color: #0b0d10;
  letter-spacing: .04em; border-bottom: 1px solid rgba(11,13,16,.07);
  margin-bottom: 4px;
}
.ars-account-dropdown a,
.ars-account-dropdown button {
  display: block; width: 100%;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; color: #0b0d10;
  text-decoration: none; cursor: pointer;
  text-align: left; background: none; border: none;
  font-family: inherit; line-height: 1.3;
  transition: background .12s;
}
.ars-account-dropdown a:hover,
.ars-account-dropdown button:hover { background: rgba(11,13,16,.055); }
.ars-account-dropdown .ars-dropdown-main-link {
  font-weight: 600; background: rgba(11,13,16,.04);
}
.ars-account-dropdown .ars-logout-btn { color: #b00; margin-top: 2px; }
.ars-account-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(11,13,16,.92); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
.ars-account-avatar:hover { opacity: .82; transform: scale(1.06); }
@media (max-width: 380px) {
  .ars-account-icon { right: 12px; }
  .ars-header-inner.has-account-icon .ars-lang-switcher:not(.ars-lang-switcher--menu) { right: 82px; }
}
