/* Pages publiques secondaires · DA GoDesign (alignée landing / auth)
   Blog, À propos, Contact, FAQ, Mentions, CGV, Confidentialité */

:root {
  --gd-bg: #f4f4f4;
  --gd-surface: #ffffff;
  --gd-ink: #111111;
  --gd-muted: #5c5c5c;
  --gd-dark: #1a1a1a;
  --gd-line: #e6e6e6;
  --gd-accent: #6b1b2b;
  --gd-radius: 28px;
  --gd-radius-sm: 22px;
  --gd-max: 1180px;
  --gd-font: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gd-font-ui: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gd-font-editorial: Lancelot, Georgia, "Times New Roman", serif;

  /* Alias anciens tokens (pages inline) */
  --font-ui: var(--gd-font-ui);
  --font-editorial: var(--gd-font-editorial);
  --font-display: var(--gd-font-ui);
  --font-condensed: var(--gd-font-ui);
  --burgundy-ink: var(--gd-ink);
  --text-on-cream: var(--gd-ink);
  --text-muted: var(--gd-muted);
  --text-body: var(--gd-ink);
  --text-strong: var(--gd-ink);
  --ink: var(--gd-ink);
  --cherry: var(--gd-accent);
  --cherry-dark: var(--gd-accent);
  --cream: #ffffff;
  --cream-deep: #f4f4f4;
  --cream-paper: #ffffff;
  --surface-white: #ffffff;
  --surface-cream: #fafafa;
  --line-soft: var(--gd-line);
  --line-strong: rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 10px 24px rgba(0, 0, 0, 0.08);
  --mt-accent: var(--gd-accent);
  --site-layout-max: 1180px;
  --site-layout-pad: calc(100% - 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body.gd-body--site {
  margin: 0;
  min-height: 100vh;
  background: var(--gd-bg);
  color: var(--gd-ink);
  font-family: var(--gd-font);
  /* Aligné landing : graisses type Chromium / Cursor, pas allégées Safari. */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

body.gd-body--site a {
  color: inherit;
  text-decoration: none;
}

body.gd-body--site img {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  color: #ffffff;
  background: var(--gd-dark);
}

/* --- Header ------------------------------------------------------ */
.gd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 244, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gd-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.5rem;
  box-sizing: border-box;
}

.gd-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

/* Spécificité > `body.gd-body--site img` (sinon height:auto → logo 300px flou) */
body.gd-body--site .gd-logo__img {
  display: block;
  height: 1.45rem !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  filter: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gd-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--gd-font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.gd-btn:hover {
  opacity: 0.88;
}

/* Spécificité > `body.gd-body--site a` (sinon texte noir sur fond noir) */
body.gd-body--site a.gd-btn--ghost,
body.gd-body--site a.gd-btn--ghost:visited {
  background: transparent;
  color: var(--gd-ink) !important;
  -webkit-text-fill-color: var(--gd-ink);
  padding: 0.65rem 0.85rem;
}

body.gd-body--site a.gd-btn--dark,
body.gd-body--site a.gd-btn--dark:visited {
  background: #1a1a1a;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  padding: 0.72rem 1.15rem 0.72rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.14);
}

body.gd-body--site a.gd-btn--dark:hover,
body.gd-body--site a.gd-btn--dark:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 0.92;
}

body.gd-body--site a.gd-btn--ghost:hover,
body.gd-body--site a.gd-btn--ghost:focus-visible {
  color: var(--gd-ink) !important;
  -webkit-text-fill-color: var(--gd-ink);
  opacity: 0.72;
}

body.gd-body--site a.gd-btn--dark .gd-btn__arrow,
body.gd-body--site a.gd-btn--dark svg,
body.gd-body--site a.gd-btn--dark svg path {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.gd-btn__arrow {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  fill: currentColor;
  color: inherit;
}

/* --- Contenu ----------------------------------------------------- */
.page-shell {
  width: min(var(--site-layout-max), var(--site-layout-pad));
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 1 0 auto;
}

body.gd-body--site > main {
  flex: 1 0 auto;
}

/* --- Footer ------------------------------------------------------ */
.gd-auth-footer {
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
}

.gd-auth-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.65rem;
}

.gd-auth-footer__nav a {
  font-family: var(--gd-font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gd-muted);
  text-decoration: none;
}

.gd-auth-footer__nav a:hover,
.gd-auth-footer__nav a[aria-current="page"] {
  color: var(--gd-ink);
}

.gd-auth-footer__meta {
  margin: 0;
  font-family: var(--gd-font);
  font-size: 0.75rem;
  color: rgba(17, 17, 17, 0.4);
}

/* --- Contact form (ex styles.css, retouché DA) ------------------- */
.auth-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.forum-room__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.forum-room__label {
  font-family: var(--gd-font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gd-muted);
}

.forum-room__input,
.forum-room__textarea {
  font-family: var(--gd-font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gd-ink);
  background: #ffffff;
  border: 1px solid var(--gd-line);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
}

.forum-room__textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

.forum-room__input:focus,
.forum-room__textarea:focus {
  outline: none;
  border-color: var(--gd-ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.auth-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
}

.auth-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--gd-font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--gd-dark);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.auth-form__submit:hover {
  opacity: 0.9;
}

.auth-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-form__error {
  min-height: 1.25rem;
  margin: 0;
  font-family: var(--gd-font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: #8b1e1e;
}

.auth-form__success {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 106, 79, 0.35);
  background: rgba(45, 106, 79, 0.1);
  font-family: var(--gd-font-ui);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--gd-ink);
}

.auth-form__success[hidden] {
  display: none !important;
}

.contact-form__honeypot[hidden] {
  display: none !important;
}

/* --- FAQ accordion ----------------------------------------------- */
.landing-faq {
  margin: 0;
  padding: 0;
  color: var(--gd-ink);
}

.landing-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.landing-faq__item {
  background: #ffffff;
  border: 1px solid var(--gd-line);
  border-radius: 18px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-faq__item:hover {
  transform: translateY(-2px);
}

.landing-faq__item[open] {
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.landing-faq__question {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.35rem;
  font-family: var(--gd-font-ui);
  font-size: clamp(0.98rem, 1.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--gd-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  outline: none;
}

.landing-faq__question::-webkit-details-marker {
  display: none;
}

.landing-faq__question::after {
  content: "+";
  font-family: var(--gd-font-ui);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(17, 17, 17, 0.45);
  flex-shrink: 0;
}

.landing-faq__item[open] .landing-faq__question::after {
  content: "−";
  color: var(--gd-ink);
}

.landing-faq__question:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.28);
  border-radius: 18px;
}

.landing-faq__answer {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  font-family: var(--gd-font);
  font-size: 0.97rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.78);
}

.landing-faq__answer a {
  color: var(--gd-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visually-hidden {
  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: 560px) {
  .gd-header__inner {
    padding: 0.95rem 1rem;
  }

  body.gd-body--site a.gd-btn--dark {
    padding: 0.65rem 0.95rem 0.65rem 1.05rem;
    font-size: 0.82rem;
  }

  body.gd-body--site a.gd-btn--ghost {
    padding: 0.55rem 0.55rem;
    font-size: 0.85rem;
  }

  body.gd-body--site .gd-logo__img {
    height: 1.2rem !important;
  }
}
