/* ==========================================================================
   FONDATION FIDÉLIA MOMBAYARD - PAGE TEMPORAIRE / UNDER CONSTRUCTION
   Design System Lumineux : 100% Responsive, Mobile-First & Anti-Overflow
   ========================================================================== */

:root {
  --primary-navy: #0b2c4d;
  --primary-navy-dark: #071c32;
  --primary-navy-light: #164372;
  --primary-blue: #1b78d1;
  --primary-blue-hover: #1562ad;
  --primary-blue-subtle: rgba(27, 120, 209, 0.1);
  --primary-blue-glow: rgba(27, 120, 209, 0.2);

  --accent-orange: #f08a24;
  --accent-orange-hover: #d97514;
  --accent-orange-light: #fff7ed;
  --accent-orange-glow: rgba(240, 138, 36, 0.25);

  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;

  /* Palette Fond Blanc Grisé */
  --bg-page: #f8fafc;
  --bg-page-alt: #eef2f6;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-focus: #cbd5e1;

  --text-main: #0b2c4d;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-accent: #ea580c;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 20px 45px -12px rgba(11, 44, 77, 0.1), 0 4px 16px -2px rgba(11, 44, 77, 0.05);
  --shadow-hover: 0 25px 50px -10px rgba(11, 44, 77, 0.15);
  --shadow-sm: 0 2px 8px rgba(11, 44, 77, 0.06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Arrière-plan décoratif et lueurs ambiantes sécurisées */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  max-width: 100vw;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(27, 120, 209, 0.14) 0%, rgba(27, 120, 209, 0) 70%);
  top: -100px;
  left: -50px;
}

.orb-2 {
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(240, 138, 36, 0.12) 0%, rgba(240, 138, 36, 0) 70%);
  bottom: -100px;
  right: -50px;
  animation-duration: 18s;
  animation-delay: -4s;
}

.orb-3 {
  width: min(350px, 60vw);
  height: min(350px, 60vw);
  background: radial-gradient(circle, rgba(226, 232, 240, 0.8) 0%, rgba(226, 232, 240, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 44, 77, 0.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 12px) scale(1.05); }
  100% { transform: translate(-12px, 20px) scale(0.97); }
}

/* Header & Navigation supérieure */
.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--primary-navy);
  display: block;
  line-height: 1.2;
  word-break: break-word;
}

.brand-text-sub {
  font-size: clamp(0.725rem, 2.5vw, 0.825rem);
  color: var(--accent-orange);
  font-weight: 600;
  letter-spacing: 0.01em;
  display: block;
  line-height: 1.35;
  word-break: break-word;
}

/* Commutateur de langue (FR / EN) sans emoji */
.lang-switch {
  display: inline-flex;
  background: #ffffff;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  gap: 2px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn i {
  font-size: 0.8rem;
}

.lang-btn:hover {
  color: var(--primary-navy);
}

.lang-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(11, 44, 77, 0.2);
}

/* Zone principale de contenu */
.main-wrapper {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange), var(--accent-gold));
}

/* Badge Statut */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: clamp(0.725rem, 2.5vw, 0.825rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 6px rgba(240, 138, 36, 0.08);
  max-width: 100%;
  flex-wrap: wrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  animation: pulse 1.8s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Grille principale : Photo & Contenu */
.content-grid {
  display: grid;
  grid-template-columns: min(280px, 35%) 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  width: 100%;
  max-width: 100%;
}

/* Cadre photo de Fidélia */
.portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.portrait-frame {
  position: relative;
  width: clamp(170px, 32vw, 240px);
  height: clamp(170px, 32vw, 240px);
  border-radius: var(--radius-lg);
  padding: 5px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
  box-shadow: 0 14px 32px -8px rgba(11, 44, 77, 0.2);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.portrait-frame:hover {
  transform: translateY(-3px) scale(1.02);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 3px);
  display: block;
  background-color: #f1f5f9;
}

.portrait-caption {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3.5vw, 1.25rem);
  font-weight: 800;
  color: var(--primary-navy);
  word-break: break-word;
}

.portrait-subtitle {
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  color: var(--accent-orange);
  font-weight: 600;
  word-break: break-word;
  max-width: 260px;
}

/* Colonne texte */
.info-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.tagline-slogan {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 2.8vw, 1.15rem);
  font-weight: 800;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tagline-slogan i {
  flex-shrink: 0;
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.main-title span.highlight {
  background: linear-gradient(135deg, var(--primary-navy) 20%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(0.925rem, 2.5vw, 1.05rem);
  color: #475569;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

.story-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-orange);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.5rem;
  font-size: clamp(0.85rem, 2.4vw, 0.95rem);
  color: var(--text-body);
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Label Types de Dons */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--primary-blue);
  opacity: 0.4;
}

/* Piliers de dons */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.pillar-chip {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.25s ease;
  min-width: 0;
  box-sizing: border-box;
}

.pillar-chip:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(11, 44, 77, 0.08);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.pillar-icon.blue {
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
}

.pillar-icon.orange {
  background: rgba(240, 138, 36, 0.12);
  color: var(--accent-orange);
}

.pillar-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.pillar-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.4vw, 0.95rem);
  color: var(--primary-navy);
  word-break: break-word;
}

.pillar-desc {
  font-size: clamp(0.75rem, 2.2vw, 0.825rem);
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Bannière de Remerciement */
.thankyou-box {
  background: linear-gradient(135deg, #fff7ed 0%, #f0f7ff 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.8rem, 2.3vw, 0.9rem);
  font-weight: 600;
  color: #9a3412;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.thankyou-box i {
  color: var(--accent-orange);
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Zone d'action & Contact rapide */
.action-banner {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: clamp(0.775rem, 2.2vw, 0.85rem);
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.contact-item:hover {
  background: #ffffff;
  color: var(--primary-navy);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(11, 44, 77, 0.08);
}

.contact-item i {
  color: var(--accent-orange);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #e07010 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.825rem, 2.4vw, 0.9rem);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(240, 138, 36, 0.32);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 138, 36, 0.42);
  background: linear-gradient(135deg, #f99535 0%, #ea580c 100%);
}

/* Footer discret */
.footer-bar {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: clamp(0.75rem, 2.2vw, 0.825rem);
  color: var(--text-muted);
}

/* ==========================================================================
   MEDIA QUERIES - OPTIMISATION RESPONSIVE
   ========================================================================== */

/* Écrans Moyens / Tablettes (< 860px) */
@media (max-width: 860px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .portrait-col {
    margin: 0 auto;
  }

  .portrait-subtitle {
    margin: 0 auto;
  }

  .tagline-slogan {
    justify-content: center;
    text-align: center;
  }

  .story-box {
    text-align: left;
  }

  .pillars-row {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.75rem;
  }

  .action-banner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .contact-pill-list {
    justify-content: center;
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Mobiles (< 600px) */
@media (max-width: 600px) {
  .top-nav {
    padding: 1rem 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .brand-container {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  .brand-logo {
    height: 42px;
  }

  .brand-text-name {
    font-size: 1.1rem;
  }

  .brand-text-sub {
    font-size: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .main-wrapper {
    padding: 0.5rem 0.65rem 2rem;
  }

  .hero-card {
    padding: 1.35rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .status-pill {
    margin-bottom: 1.25rem;
    padding: 6px 12px;
  }

  .portrait-frame {
    width: 175px;
    height: 175px;
  }

  .portrait-caption {
    font-size: 1.15rem;
    margin-top: 0.75rem;
  }

  .main-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 0.65rem;
  }

  .hero-lead {
    font-size: 0.925rem;
    margin-bottom: 1rem;
  }

  .story-box {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .thankyou-box {
    padding: 0.75rem 0.85rem;
    font-size: 0.825rem;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .contact-item {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
  }

  .btn-primary {
    width: 100%;
    max-width: 100%;
  }
}

/* Petits Mobiles (< 360px, ex. iPhone SE, Galaxy Z Flip plié) */
@media (max-width: 360px) {
  .hero-card {
    padding: 1.15rem 0.65rem;
  }

  .portrait-frame {
    width: 150px;
    height: 150px;
  }

  .main-title {
    font-size: 1.4rem;
  }

  .tagline-slogan {
    font-size: 0.8rem;
  }

  .lang-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
}
