/* =============================================
   gueritte.com — Family Portal
   Dark theme, consistent with sub-sites
   ============================================= */

/* --- Design Tokens --- */
:root {
  --bg: #07070a;
  --bg-surface: #0e0e14;
  --bg-card: #12121a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e8e8ed;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --gradient-start: #6366f1;
  --gradient-mid: #10b981;
  --gradient-end: #16a34a;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s var(--ease), visibility .5s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  display: flex;
  gap: 2px;
}
.loader-letter {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* --- Custom Cursor --- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(139,92,246,0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background .25s;
  }
  .cursor-dot {
    display: block;
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
  }
  .cursor.hover {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
    background: rgba(139,92,246,0.08);
  }
  body { cursor: none; }
  a, button { cursor: none; }
}

/* --- Orbs --- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 500px; height: 500px; background: #6366f1; top: -10%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: #10b981; top: 40%; right: -10%; }
.orb-3 { width: 350px; height: 350px; background: #16a34a; bottom: -5%; left: 30%; }

/* --- Language System --- */
html[lang="fr"] .lang-en { display: none !important; }
html[lang="en"] .lang-fr { display: none !important; }

/* --- Language Switch --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  cursor: none;
  transition: color .25s;
}
.lang-btn.active { color: #fff; }
.lang-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--accent);
  border-radius: 4px;
  transition: transform .3s var(--ease);
}
.lang-switch[data-active="en"] .lang-slider {
  transform: translateX(100%);
}

@media (max-width: 768px) {
  .lang-switch { margin-left: auto; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(7,7,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.accent { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color .25s;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-link:hover::after { width: 100%; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 6rem 2rem 4rem;
}
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-cta { display: flex; justify-content: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.3);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Sections --- */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  z-index: 1;
}
.section--alt { background: var(--bg-surface); }
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
}

/* --- Member Cards --- */
.member-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: border-color .3s, box-shadow .3s;
}
.member-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.member-card--reverse { direction: rtl; }
.member-card--reverse > * { direction: ltr; }

.member-visual { position: relative; }
.member-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-accent-bar {
  position: absolute;
  bottom: -4px;
  left: 1rem;
  right: 1rem;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.member-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.member-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.member-name span { color: var(--text-secondary); }
.member-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.member-role {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.member-company {
  font-size: 0.9rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.member-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(139,92,246,0.1);
  color: var(--tag-color, var(--accent));
  border: 1px solid rgba(139,92,246,0.15);
}
.member-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.member-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--btn-color, var(--accent));
  border-radius: 8px;
  color: var(--btn-color, var(--accent));
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.member-btn:hover {
  background: var(--btn-color, var(--accent));
  color: #fff;
  transform: translateY(-1px);
}
.member-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .25s, border-color .25s, background .25s;
}
.member-social:hover {
  color: #0a66c2;
  border-color: #0a66c2;
  background: rgba(10,102,194,0.08);
}

/* --- About Cards --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color .3s, transform .3s var(--ease);
}
.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.about-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(139,92,246,0.08);
  color: var(--icon-color, var(--accent));
}
.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.about-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Contact Cards --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color .3s, transform .3s var(--ease);
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.contact-initials {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  background: rgba(139,92,246,0.1);
  color: var(--card-accent, var(--accent));
  flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; }
.contact-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}
.contact-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.contact-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .25s var(--ease), color .25s;
}
.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-nav { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-legal a {
  color: var(--text-muted);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--text); }

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .member-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .member-card--reverse { direction: ltr; }
  .member-photo { max-width: 280px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 5rem 1.5rem 3rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 2rem; }
  .container { padding: 0 1.5rem; }
  .member-card { padding: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-nav { gap: 2rem; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .member-name { font-size: 1.3rem; }
  .member-header { flex-direction: column; gap: 0.25rem; }
}

/* --- Legal Page --- */
.legal-content { max-width: 700px; }
.legal-block { margin-bottom: 2.5rem; }
.legal-block h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.legal-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* --- Inline Link --- */
.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.inline-link:hover { color: var(--accent-light); }

/* --- Btn Secondary --- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn-secondary:hover {
  background: rgba(139,92,246,0.1);
  transform: translateY(-2px);
}
.hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Inscription Form --- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 700px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color .25s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
