/* Palette Procaryote — fond clair ; pied de page primary teal (Physia green) */
:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #1a1f24;
  --muted: #5c6670;
  --accent: #3d9a7a;
  --accent-dim: #2d7a62;
  --border: #e2e6ea;
  --footer-bg: #3d9a7a;
  --footer-bg-deep: #2d7a62;
  --footer-text: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.88);
  --footer-link: #ffffff;
  --footer-rule: rgba(255, 255, 255, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header .brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Navigation + sélecteur de langue (comme l’app Flutter) */
.site-header-tools {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-header nav a { color: var(--muted); font-size: 0.95rem; }
.site-header nav a:hover { color: var(--text); }

.lang-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-select-wrap label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sélecteur langue : sans fond (intégré à la barre claire) */
.site-header .lang-select {
  appearance: none;
  background-color: transparent;
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 0.4rem 1.75rem 0.4rem 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6670' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
}

.site-header .lang-select:hover,
.site-header .lang-select:focus {
  outline: none;
  color: var(--muted);
}

.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;
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

main.wide { max-width: 840px; }

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); text-decoration: none; color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--muted);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.content-block h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; color: var(--text); }
.content-block p, .content-block li { color: var(--muted); }
.content-block ul { padding-left: 1.25rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.card h2 { font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--text); }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Cartes cliquables (page Physia) */
a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(61, 154, 122, 0.12);
  text-decoration: none;
  color: inherit;
}

a.card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.simple-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.simple-footer a { color: var(--accent); }

/* Pied de page large type Rosa */
.site-footer {
  background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-deep) 100%);
  color: var(--footer-text);
  margin-top: auto;
  padding: 3rem 1.5rem 1.5rem;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
  opacity: 0.92;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer .footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .footer-col h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--footer-text);
}

.site-footer .footer-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  color: var(--footer-text);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--footer-muted);
}

.site-footer li a { color: var(--footer-text); }

.site-footer .app-cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer .app-cta .store-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--footer-rule);
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer .app-cta .store-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* Rangée type menu tiroir Flutter : suggestions, à propos, services, etc. */
.site-footer .footer-bottom-nav {
  max-width: 1100px;
  margin: 2rem auto 0;
}

.site-footer .footer-bottom-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  justify-content: center;
  align-items: center;
  font-size: 0.88rem;
}

.site-footer .footer-bottom-nav li {
  margin: 0;
}

.site-footer .footer-bottom-nav a {
  color: var(--footer-text);
  opacity: 0.94;
  white-space: nowrap;
}

.site-footer .footer-bottom-nav a:hover {
  opacity: 1;
}

.site-footer .footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--footer-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.78rem;
  color: var(--footer-muted);
}

.site-footer .footer-legal a {
  color: var(--footer-muted);
  white-space: nowrap;
}

.site-footer .footer-legal a:hover { color: var(--footer-text); }

.site-footer .footer-social {
  display: flex;
  gap: 0.75rem;
}

.site-footer .footer-social a.footer-mail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--footer-text);
  line-height: 0;
  opacity: 1;
}

.site-footer .footer-social a.footer-mail-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.site-footer .footer-social a.footer-mail-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  color: var(--footer-text);
}

/* Page « suggestion » — fond très clair, formulaire centré */
body.page-suggestion {
  background: #eef5f8;
}

body.page-suggestion .site-header {
  background: #eef5f8;
  border-bottom-color: #d0dde5;
}

main.suggestion-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.suggestion-form-wrap {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.suggestion-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 2rem;
  color: var(--text);
}

.suggestion-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.suggestion-form textarea {
  width: 100%;
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid #6b7280;
  border-radius: 8px;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
}

.suggestion-form textarea::placeholder {
  color: #9ca3af;
}

.suggestion-form textarea:focus {
  outline: 2px solid rgba(61, 154, 122, 0.35);
  outline-offset: 2px;
  border-color: var(--accent);
}

.suggestion-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 28rem;
}

/* Documents Procaryote Standards (privacy, CGU, sécurité, PdS) */
main.legal-main {
  max-width: 44rem;
}

.legal-standards-link {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.legal-standards-link a {
  font-weight: 600;
}

.legal-doc {
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-doc .consulting-hero-primary {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.legal-doc .consulting-hero-secondary {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.legal-doc h1 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.legal-doc h1.legal-doc-title {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.legal-doc h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-doc h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

.legal-doc p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--muted);
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc a {
  word-break: break-word;
}
