/*
 ═══════════════════════════════════════════════════════
  PAGES INTERNES — pages.css
  Contact · Mentions légales · Confidentialité · 404
 ═══════════════════════════════════════════════════════
*/

/* ══════════════════════
   PAGE CONTACT
══════════════════════ */

#contact-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background: var(--brun3);
  padding-top: var(--nav-h);
}

/* Déco background */
#contact-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-52deg, transparent, transparent 80px, rgba(201,162,39,.016) 80px, rgba(201,162,39,.016) 81px);
  pointer-events: none;
  z-index: 0;
}

.contact-page__deco-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.contact-page__deco-c {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,.05);
  pointer-events: none;
  z-index: 0;
}
.contact-page__deco-c--lg { right: -100px; top: 50%; transform: translateY(-50%); width: 700px; height: 700px; }
.contact-page__deco-c--sm { left: -80px; bottom: -80px; width: 360px; height: 360px; }
.contact-page__sep {
  position: absolute;
  left: 50%; top: 15%; bottom: 15%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,162,39,.1) 20%, rgba(201,162,39,.1) 80%, transparent);
  z-index: 1;
}

/* Colonnes */
.contact-page__left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 72px;
}
.contact-page__right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px 80px 80px;
}

/* Lettre décorative */
.contact-letter {
  position: absolute;
  bottom: -80px; left: 40px;
  font-family: var(--font-display);
  font-size: 480px;
  font-weight: 400;
  font-style: italic;
  color: rgba(247,241,228,.012);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* Titre */
.contact-page__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 400;
  color: var(--creme);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 28px 0 24px;
}
.contact-page__title em {
  font-style: italic;
  color: rgba(247,241,228,.22);
  display: block;
}

.m-or-line { margin: 28px 0 36px; }

.contact-page__text {
  font-size: 15px;
  color: var(--txt-secondary);
  line-height: 1.92;
  max-width: 400px;
  margin-bottom: 48px;
}

.contact-page__quote {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: rgba(247,241,228,.2);
  line-height: 1.55;
  max-width: 380px;
  border: none;
  padding: 0;
  margin: 0;
}

/* Items contact */
.contact-items { margin: 36px 0 52px; }

.contact-items__item {
  padding: 26px 0;
  border-bottom: 1px solid rgba(247,241,228,.07);
  transition: padding-left .3s ease;
}
.contact-items__item:first-child { border-top: 1px solid rgba(247,241,228,.07); }
.contact-items__item:hover { padding-left: 8px; }

.contact-items__label {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 8px;
}
.contact-items__value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  color: var(--creme);
  display: block;
}
.contact-items__value a {
  color: var(--creme);
  text-decoration: none;
  transition: color .2s;
}
.contact-items__value a:hover { color: var(--or); }
.contact-items__value--plain {
  font-style: normal;
  font-size: 17px;
}
.contact-items__value--dim {
  font-style: normal;
  font-size: 15px;
  color: rgba(247,241,228,.45);
}
.contact-items__note {
  font-size: 11px;
  color: var(--txt-muted);
  letter-spacing: .4px;
  margin-top: 4px;
  display: block;
}

.contact-page__conf {
  margin-top: 48px;
  padding: 20px 24px;
  border-left: 1px solid var(--or-border-md);
}
.contact-page__conf p {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: rgba(247,241,228,.3);
  line-height: 1.85;
}

/* ══════════════════════
   PAGES LÉGALES (mentions + confidentialité)
══════════════════════ */

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 48px 100px;
  background: var(--creme);
}

.l-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(28,15,10,.07);
}
.l-section:last-of-type { border-bottom: none; }

.l-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--brun);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -.01em;
}
.l-section h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--or);
  flex-shrink: 0;
  border-radius: 2px;
}

.l-section h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(28,15,10,.4);
  margin: 28px 0 14px;
}

.l-section p {
  font-size: 15px;
  color: var(--txt-dark-secondary);
  line-height: 1.92;
  margin-bottom: 14px;
}
.l-section p:last-child { margin-bottom: 0; }

.l-section a {
  color: var(--brun);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(28,15,10,.2);
  transition: color .2s, text-decoration-color .2s;
}
.l-section a:hover {
  color: var(--or2);
  text-decoration-color: var(--or2);
}

.l-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.l-section ul li {
  font-size: 15px;
  color: var(--txt-dark-secondary);
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
}
.l-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(201,162,39,.55);
  font-size: 11px;
  top: 2px;
}

/* Grille d'infos (dl) */
.l-info-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid rgba(28,15,10,.06);
}
.l-info-grid dt {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(28,15,10,.32);
  padding: 12px 0;
  border-bottom: 1px solid rgba(28,15,10,.06);
}
.l-info-grid dd {
  font-size: 15px;
  color: var(--brun);
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid rgba(28,15,10,.06);
  font-weight: 400;
}
.l-info-grid dt:last-of-type,
.l-info-grid dd:last-of-type { border-bottom: none; }

/* Note en retrait */
.l-note {
  margin-top: 16px;
  padding: 18px 22px;
  border-left: 2px solid rgba(201,162,39,.3);
  background: rgba(201,162,39,.04);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: rgba(28,15,10,.48);
  line-height: 1.82;
}
.l-note a { font-style: normal; }

/* Tableau cookies */
.l-cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}
.l-cookie-table th {
  background: var(--brun);
  color: var(--or);
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 13px 15px;
  text-align: left;
}
.l-cookie-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(28,15,10,.06);
  color: rgba(28,15,10,.6);
  vertical-align: top;
  line-height: 1.65;
}
.l-cookie-table tr:nth-child(even) td { background: rgba(28,15,10,.02); }
.l-cookie-table code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(28,15,10,.06);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Sommaire navigation */
.legal-sommaire {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 48px;
  background: rgba(28,15,10,.025);
  border-bottom: 1px solid rgba(28,15,10,.06);
}
.legal-sommaire__title {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 16px;
}
.legal-sommaire ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: item;
}
.legal-sommaire li {
  counter-increment: item;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
}
.legal-sommaire li::before {
  content: counter(item) '.';
  color: rgba(201,162,39,.6);
  font-size: 11px;
  min-width: 20px;
}
.legal-sommaire a {
  color: var(--txt-dark-secondary);
  text-decoration: none;
  transition: color .2s;
}
.legal-sommaire a:hover { color: var(--brun); }

/* Note footer légal */
.legal-footer-note {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 48px 60px;
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: rgba(28,15,10,.3);
  line-height: 1.75;
  border-top: 1px solid rgba(28,15,10,.06);
  background: var(--creme);
}

/* ══════════════════════
   PAGE 404
══════════════════════ */

body.error404 {
  background: var(--brun3);
  color: var(--creme);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.e404__bg-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.e404__bg-lines svg { width: 100%; height: 100%; }

.e404__deco {
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,.05);
  pointer-events: none;
  z-index: 0;
}
.e404__deco--lg { right: -120px; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; }
.e404__deco--sm { left: -60px; bottom: -60px; width: 280px; height: 280px; }

.e404__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 72px;
  position: relative;
  z-index: 2;
}

.e404__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

/* Grand 404 */
.e404__left { position: relative; }
.e404__num {
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 280px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(135deg, rgba(201,162,39,.7) 0%, rgba(168,134,42,.3) 50%, rgba(201,162,39,.1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
}
.e404__sep {
  position: absolute;
  right: -50px; top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,162,39,.18) 30%, rgba(201,162,39,.18) 70%, transparent);
}

.e404__right .m-tag { margin-bottom: 32px; }

.e404__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--creme);
  margin: 0 0 28px;
  letter-spacing: -.02em;
}
.e404__title em {
  font-style: italic;
  color: rgba(247,241,228,.25);
  display: block;
}

.m-or-line { margin: 0 0 30px; }

.e404__msg {
  font-size: 15px;
  color: var(--txt-secondary);
  line-height: 1.92;
  max-width: 380px;
  margin-bottom: 44px;
}

.e404__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.e404__nav a {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--txt-muted);
  text-decoration: none;
  transition: color .2s;
  position: relative;
  padding-bottom: 4px;
}
.e404__nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s;
}
.e404__nav a:hover { color: var(--creme); }
.e404__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Citation déco */
.e404__editorial {
  position: fixed;
  bottom: 80px; left: 72px;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: rgba(247,241,228,.16);
  z-index: 2;
}

/* Footer 404 */
.e404__footer {
  padding: 18px 72px;
  border-top: 1px solid rgba(201,162,39,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.e404__copy {
  font-size: 9px;
  color: rgba(247,241,228,.14);
  letter-spacing: .5px;
}
.e404__email {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(247,241,228,.2);
  text-decoration: none;
  transition: color .2s;
}
.e404__email:hover { color: var(--or); }

/* ══════════════════════
   RESPONSIVE PAGES INTERNES
══════════════════════ */

@media (max-width: 1024px) {
  #contact-page {
    grid-template-columns: 1fr;
    padding-top: var(--nav-h);
  }
  .contact-page__sep { display: none; }
  .contact-page__left  { padding: 72px 32px 48px; }
  .contact-page__right { padding: 48px 32px 80px; }
  .contact-letter { display: none; }

  .e404__content { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .e404__num { text-align: center; }
  .e404__sep { display: none; }
  .e404__nav { justify-content: center; }
  .e404__main { padding: 0 32px; }
  .e404__editorial { display: none; }
  .e404__footer { padding: 18px 32px; }
  body.error404 { overflow: auto; }
}

@media (max-width: 768px) {
  .legal-body,
  .legal-sommaire,
  .legal-footer-note { padding-left: 24px; padding-right: 24px; }

  .l-info-grid { grid-template-columns: 1fr; }
  .l-info-grid dt { border-bottom: none; padding-bottom: 2px; padding-top: 14px; }
  .l-info-grid dd { padding-left: 0; }

  .l-cookie-table { font-size: 12px; }
  .l-cookie-table th,
  .l-cookie-table td { padding: 10px 10px; }
}
