/**
 * "Mentions légales" page template (archery-legal-template.php).
 *
 * Loaded only on that template (see inc/enqueue.php). Header is the shared
 * inner-page header, footer is the shared site footer — this file only styles
 * the legal-notice content (.pc-* — hero, meta, sections, table). Ported from
 * the prototype (demo/Mentions Legales (autonome).html).
 */

/* The h1 uses the shared `serif` class, which normally ships in contact.css /
   voix.css — neither loads here, so define it too. */
.serif {
  font-family: Castoro, Georgia, serif;
  font-weight: 400;
  margin: 0;
}

.pc-wrap {
  padding: 15px 15px 70px;
  max-width: none;
  margin: 0;
}

/* Tablet + mobile: the inner banner is hidden and the fixed .ui-menu-mobile bar
   takes over (position:fixed, out of flow), so push the content down to clear
   it (same as the 404 template). */
@media (max-width: 1280px) {
  .pc-wrap {
    margin-top: 100px;
  }
}

.pc-up {
  animation: pcup 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pc-up.d1 { animation-delay: 0.08s; }
.pc-up.d2 { animation-delay: 0.16s; }

@keyframes pcup {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ---- Hero ---------------------------------------------------------------- */
.pc-hero {
  background: #d0eff2;
  border-radius: 15px;
  padding: 30px 32px 24px;
  position: relative;
  overflow: hidden;
}

.pc-hero .eyebrow { margin-bottom: 30px; }

.pc-htitle {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  text-align: left;
}

.pc-htitle span { display: inline; }
.pc-htitle .l1 { transform: none; }
.pc-htitle .l2 { transform: none; }
/* The italic part of the title (the "Titre — partie en italique" field) is
   wrapped in a bare <i> — the prototype's .l1 / .l2 spans have no equivalent in
   a title typed in the back office. */
.pc-htitle i,
.pc-htitle .l2 i { color: #e9511c; }

.pc-hmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  margin-top: 38px;
  padding-top: 20px;
}

.pc-hmeta .row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.pc-hmeta .tag-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(0, 0, 0, 0.6);
}

.pc-hmeta .tag-meta b { color: #000; font-weight: 700; }

.pc-hmeta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e9511c;
}

.pc-rgpd {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #000;
  border: 1px solid #000;
  border-radius: 15px;
  padding: 6px 14px;
  white-space: nowrap;
}

.pc-spin {
  position: absolute;
  top: 34px;
  right: 5%;
  font-size: clamp(60px, 7vw, 104px);
  color: #70cbd3;
  line-height: 1;
  animation: pcspin 16s linear infinite;
  display: inline-block;
  user-select: none;
  pointer-events: none;
}

@keyframes pcspin {
  to { transform: rotate(360deg); }
}

/* ---- Layout (optional TOC sidebar) -------------------------------------- */
.pc-main {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: start;
}

.pc-toc { position: sticky; top: 22px; }

.pc-toc-h {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.pc-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  transition: background-color 0.25s, color 0.25s;
}

.pc-toc a .n {
  font-family: Castoro, serif;
  font-size: 12px;
  color: #70cbd3;
  min-width: 22px;
}

.pc-toc a:hover { background: #d0eff2; color: #000; }
.pc-toc a.on { background: #70cbd3; color: #000; font-weight: 600; }
.pc-toc a.on .n { color: #000; }

/* ---- Document sections --------------------------------------------------- */
.pc-doc {
  max-width: none;
  margin-top: 48px;
  padding-inline: 15px;
}

/* Editor content: the WordPress editor emits plain h2 / h3 / p / ul / ol /
   table — not the prototype's .pc-sec / .pc-list / .pc-table wrappers — so style
   those elements directly under .pc-doc. Values mirror the prototype rules
   below, so a page written in the editor matches the original design. */
.pc-doc h2 {
  font-family: Castoro, serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
}

.pc-doc > h2:first-child { margin-top: 0; }

.pc-doc h3 {
  font-family: Castoro, serif;
  font-size: 22px;
  line-height: 1.2;
  margin: 34px 0 14px;
}

.pc-doc p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.66);
  margin: 0 0 15px;
}

.pc-doc p b,
.pc-doc p strong,
.pc-doc li b,
.pc-doc li strong { color: #000; font-weight: 600; }

.pc-doc a {
  color: #e9511c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pc-doc a:hover { color: #000; }

.pc-doc ul,
.pc-doc ol { margin: 14px 0 16px; padding-left: 26px; }
.pc-doc li { font-size: 15px; line-height: 1.7; color: rgba(0, 0, 0, 0.66); margin: 0 0 8px; }
.pc-doc ul { list-style: none; padding-left: 0; }
.pc-doc ul li { position: relative; padding-left: 26px; }
.pc-doc ul li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  top: 0;
  color: #e9511c;
  font-size: 16px;
  line-height: 1.7;
}
.pc-doc ol li::marker { color: #e9511c; font-weight: 700; }

/* Tables — plain <table> and the Gutenberg table block wrapper. */
.pc-doc table {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
.pc-doc th {
  text-align: left;
  font-family: Montserrat;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #e9511c;
  padding: 12px 16px;
  border-bottom: 2px solid #70cbd3;
}
.pc-doc td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.7);
  vertical-align: top;
  line-height: 1.5;
}
.pc-doc td:first-child { font-weight: 600; color: #000; }
.pc-doc .wp-block-table { margin: 20px 0; }
.pc-doc .wp-block-table table { margin: 0; }

.pc-sec {
  padding: 0 0 44px;
  margin-bottom: 44px;
}

.pc-sec:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.pc-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 20px;
}

.pc-sec-num {
  font-family: Castoro, serif;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.8;
  color: #70cbd3;
  flex-shrink: 0;
}

.pc-sec h2 {
  font-family: Castoro, serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  padding-top: 0;
}

.pc-sec p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.66);
  margin: 0 0 15px;
  max-width: none;
}

.pc-sec p:last-child { margin-bottom: 0; }
.pc-sec p b,
.pc-sec p strong { color: #000; font-weight: 600; }

.pc-sec a {
  color: #e9511c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pc-sec a:hover { color: #000; }

.pc-list {
  list-style: none;
  margin: 14px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: none;
}

.pc-list li {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.66);
  padding-left: 26px;
  position: relative;
}

.pc-list li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  top: 0;
  color: #e9511c;
  font-size: 16px;
  line-height: 1.7;
}

.pc-droits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 6px;
  max-width: 660px;
}

/* ---- Table --------------------------------------------------------------- */
.pc-table {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin: 20px 0 6px;
  font-size: 14.5px;
}

.pc-table th {
  text-align: left;
  font-family: Montserrat;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #e9511c;
  padding: 12px 16px;
  border-bottom: 2px solid #70cbd3;
}

.pc-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.7);
  vertical-align: top;
  line-height: 1.5;
}

.pc-table td:first-child {
  font-weight: 600;
  color: #000;
  width: 34%;
}

.pc-table tbody tr:hover td { background: #f8feff; }

.pc-droit {
  background: #f8feff;
  border: 1px solid #70cbd3;
  border-radius: 15px;
  padding: 18px 20px;
  transition: background-color 0.3s, transform 0.3s;
}

.pc-droit:hover { background: #d0eff2; transform: translateY(-3px); }

.pc-droit .dl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #e9511c;
  margin-bottom: 7px;
}

.pc-droit .dt {
  font-size: 14.5px;
  font-weight: 500;
  color: #000;
  line-height: 1.4;
}

.pc-browsers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

/* Two selectors, one design: .pc-sec is the prototype's section wrapper, .pc-doc
   the container the editor content is printed in. Both have to out-specify the
   `.pc-doc a` link colour above, hence the tag in the middle. */
.pc-sec a.pc-browser,
.pc-doc a.pc-browser {
  border: 1px solid #70cbd3;
  border-radius: 15px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.pc-browser:hover { background: #70cbd3; color: #000; }

.pc-cnil {
  background: #f8feff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 4px;
  max-width: 660px;
}

.pc-cnil b { color: #000; }

.pc-contact {
  background: #e9511c;
  border-radius: 15px;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 22px 0 8px;
  max-width: 660px;
}

.pc-contact .cl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 9px;
}

.pc-contact .cv {
  font-size: 16px;
  font-weight: 600;
  color: #f8feff;
  line-height: 1.55;
}

.pc-contact .cv a {
  color: #f8feff;
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 254, 255, 0.5);
}

.pc-contact .cv a:hover { color: #000; border-color: #000; }

@media (max-width: 960px) {
  .pc-main { grid-template-columns: 1fr; gap: 36px; }
  .pc-toc { position: static; display: none; }
  .pc-droits,
  .pc-contact { grid-template-columns: 1fr; }
  .pc-spin { display: none; }
  .pc-htitle .l2 { text-align: left; }
  .pc-doc { padding-inline: 0; margin-top: 32px; }
}

@media (max-width: 640px) {
  .pc-hero { padding: 32px 24px; }
  .pc-rgpd { white-space: normal; }

  /* The 48px floor of the base clamp() binds below ~686px, so on a phone the
     title stayed at 48px and its longest word ("confidentialité.") ran past the
     hero, which clips it (.pc-hero is overflow:hidden). Lowering the floor to
     38px lets 7vw keep shrinking down to a 543px viewport. */
  .pc-htitle { font-size: clamp(38px, 7vw, 104px); }
}

/* ==========================================================================
   Big screens (>=1700px) — mirrors css/big-screen.css for this page.

   Every fixed px length above is re-expressed in vw so the 1440px-reference
   design scales up proportionally instead of leaving the content marooned in
   whitespace. Conversion: 1px = 0.0694486429vw (100 / 1440). Percentages, fr
   units and ratio line-heights are left untouched.

   The clamp() display headings drop their px ceiling here: the cap started
   binding at ~1700px, which would freeze them while the rest of the page
   grew. @keyframes offsets stay in px — a media query cannot override an
   individual keyframe step.
   ========================================================================== */

@media (min-width: 1700px) {
  .pc-wrap {
    padding: 1.04173vw 1.04173vw 4.86141vw;
  }

  .pc-hero {
    border-radius: 1.04173vw;
    padding: 2.08346vw 2.22236vw 1.66677vw;
  }

  .pc-hero .eyebrow {
    margin-bottom: 2.08346vw;
  }

  .pc-htitle {
    font-size: 7vw;
  }

  .pc-hmeta {
    gap: 1.11118vw;
    border-top: 0.06945vw solid rgba(0, 0, 0, 0.25);
    margin-top: 2.63905vw;
    padding-top: 1.38897vw;
  }

  .pc-hmeta .row {
    gap: 1.80566vw;
  }

  .pc-hmeta .tag-meta {
    gap: 0.55559vw;
    font-size: 0.97228vw;
    letter-spacing: 0.08334vw;
  }

  .pc-hmeta .dot {
    width: 0.41669vw;
    height: 0.41669vw;
  }

  .pc-rgpd {
    font-size: 0.97228vw;
    letter-spacing: 0.08334vw;
    border: 0.06945vw solid #000;
    border-radius: 1.04173vw;
    padding: 0.41669vw 0.97228vw;
  }

  .pc-spin {
    top: 2.36125vw;
    font-size: 7vw;
  }

  .pc-main {
    grid-template-columns: 18.75113vw 1fr;
    gap: 4.44471vw;
    margin-top: 3.88912vw;
  }

  .pc-toc {
    top: 1.52787vw;
  }

  .pc-toc-h {
    font-size: 0.69449vw;
    letter-spacing: 0.11112vw;
    margin: 0 0 1.25008vw;
    padding-bottom: 0.97228vw;
    border-bottom: 0.06945vw solid rgba(0, 0, 0, 0.15);
  }

  .pc-toc a {
    gap: 0.83338vw;
    padding: 0.48614vw 0.69449vw;
    border-radius: 1.04173vw;
    font-size: 0.93756vw;
  }

  .pc-toc a .n {
    font-size: 0.83338vw;
    min-width: 1.52787vw;
  }

  .pc-doc {
    margin-top: 3.33353vw;
    padding-inline: 1.04173vw;
  }

  .pc-doc h2 {
    font-size: 3vw;
    margin: 3.33353vw 0 1.25008vw;
  }

  .pc-doc h3 {
    font-size: 1.52787vw;
    margin: 2.36125vw 0 0.97228vw;
  }

  .pc-doc p {
    font-size: 1.04173vw;
    margin: 0 0 1.04173vw;
  }

  .pc-doc a {
    text-underline-offset: 0.20835vw;
  }

  .pc-doc ul,
  .pc-doc ol {
    margin: 0.97228vw 0 1.11118vw;
    padding-left: 1.80566vw;
  }

  .pc-doc li {
    font-size: 1.04173vw;
    margin: 0 0 0.55559vw;
  }

  .pc-doc ul li {
    padding-left: 1.80566vw;
  }

  .pc-doc ul li::before {
    left: 0.27779vw;
    font-size: 1.11118vw;
  }

  .pc-doc table {
    max-width: 52.78097vw;
    margin: 1.38897vw 0;
    font-size: 1.00701vw;
  }

  .pc-doc th {
    font-size: 0.69449vw;
    letter-spacing: 0.08334vw;
    padding: 0.83338vw 1.11118vw;
    border-bottom: 0.1389vw solid #70cbd3;
  }

  .pc-doc td {
    padding: 0.90283vw 1.11118vw;
    border-bottom: 0.06945vw solid rgba(0, 0, 0, 0.12);
  }

  .pc-doc .wp-block-table {
    margin: 1.38897vw 0;
  }

  .pc-sec {
    padding: 0 0 3.05574vw;
    margin-bottom: 3.05574vw;
  }

  .pc-sec-head {
    gap: 1.52787vw;
    margin-bottom: 1.38897vw;
  }

  .pc-sec-num {
    font-size: 5vw;
  }

  .pc-sec h2 {
    font-size: 3vw;
    margin: 0 0 1.25008vw;
  }

  .pc-sec p {
    font-size: 1.04173vw;
    margin: 0 0 1.04173vw;
  }

  .pc-sec a {
    text-underline-offset: 0.20835vw;
  }

  .pc-list {
    margin: 0.97228vw 0 1.11118vw;
    gap: 0.55559vw;
  }

  .pc-list li {
    font-size: 1.04173vw;
    padding-left: 1.80566vw;
  }

  .pc-list li::before {
    left: 0.27779vw;
    font-size: 1.11118vw;
  }

  .pc-droits {
    gap: 0.83338vw;
    margin: 1.38897vw 0 0.41669vw;
    max-width: 45.8361vw;
  }

  .pc-table {
    max-width: 52.78097vw;
    margin: 1.38897vw 0 0.41669vw;
    font-size: 1.00701vw;
  }

  .pc-table th {
    font-size: 0.69449vw;
    letter-spacing: 0.08334vw;
    padding: 0.83338vw 1.11118vw;
    border-bottom: 0.1389vw solid #70cbd3;
  }

  .pc-table td {
    padding: 0.90283vw 1.11118vw;
    border-bottom: 0.06945vw solid rgba(0, 0, 0, 0.12);
  }

  .pc-droit {
    border: 0.06945vw solid #70cbd3;
    border-radius: 1.04173vw;
    padding: 1.25008vw 1.38897vw;
  }

  .pc-droit:hover {
    transform: translateY(-0.20835vw);
  }

  .pc-droit .dl {
    font-size: 0.69449vw;
    letter-spacing: 0.08334vw;
    margin-bottom: 0.48614vw;
  }

  .pc-droit .dt {
    font-size: 1.00701vw;
  }

  .pc-browsers {
    gap: 0.69449vw;
    margin: 1.25008vw 0 0.41669vw;
  }

  .pc-sec a.pc-browser,
  .pc-doc a.pc-browser {
    border: 0.06945vw solid #70cbd3;
    border-radius: 1.04173vw;
    padding: 0.55559vw 1.11118vw;
    font-size: 0.86811vw;
  }

  .pc-cnil {
    border: 0.06945vw solid rgba(0, 0, 0, 0.15);
    border-radius: 1.04173vw;
    padding: 1.11118vw 1.38897vw;
    font-size: 0.97228vw;
    margin-top: 0.27779vw;
    max-width: 45.8361vw;
  }

  .pc-contact {
    border-radius: 1.04173vw;
    padding: 2.08346vw 2.22236vw;
    gap: 1.94456vw;
    margin: 1.52787vw 0 0.55559vw;
    max-width: 45.8361vw;
  }

  .pc-contact .cl {
    font-size: 0.69449vw;
    letter-spacing: 0.09723vw;
    margin-bottom: 0.62504vw;
  }

  .pc-contact .cv {
    font-size: 1.11118vw;
  }

  .pc-contact .cv a {
    border-bottom: 0.06945vw solid rgba(248, 254, 255, 0.5);
  }
}
