/* ============================================
   GESIS — home.css
   Styles page d'accueil (FR + EN)
   ============================================ */

/* ---- HERO ---- */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Photo de fond hero
   ➜ Remplacer "hero-accueil.jpg" par le vrai nom de ta photo
   ➜ Photo idéale : paysage, min 1920×1080px, activité terrain GESIS */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-accueil.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Fallback si la photo n'est pas encore disponible */
  background-color: #0f2d52;
}

/* Overlay foncé sur la photo pour lisibilité du texte */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 28, 46, 0.80) 0%,
    rgba(15, 28, 46, 0.60) 50%,
    rgba(15, 45, 20, 0.55) 100%
  );
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  z-index: 1;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,125,50,0.5), transparent 70%);
  top: -100px; right: -100px;
  animation: orb-float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(230,146,10,0.3), transparent 70%);
  bottom: 50px; left: 10%;
  animation: orb-float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  top: 40%; right: 30%;
  animation: orb-float 12s ease-in-out infinite;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: 1;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(20px,-20px) scale(1.05); }
  66%       { transform: translate(-10px,15px) scale(0.95); }
}

.hero-home .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
}

/* Carte hero supprimée */
.hero-card { display: none; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 32px;
  width: fit-content;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--orange);
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Carte hero supprimée */
.hero-card, .hero-card-inner, .hero-card-icon,
.hero-card-title, .hero-card-sub { display: none !important; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ---- IMPACT ---- */
.impact-section {
  padding: 56px 0;
  background: var(--blue);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.impact-item {
  background: var(--blue);
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.impact-item + .impact-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.impact-number {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.impact-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- MISSION ---- */
.mission-section { background: var(--paper); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission-desc {
  color: var(--body);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.mission-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s var(--ease);
}

.value-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.value-icon  { font-size: 28px; margin-bottom: 12px; }
.value-name  { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.value-desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---- ACTIONS — CARROUSEL ---- */
.actions-section {
  background: var(--white);
  overflow: hidden;
}

/* Wrap masque le débordement horizontal */
.carousel-track-wrap {
  overflow: hidden;
  width: 100%;
  /* Dégradés sur les bords pour fondu */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

/* Ligne 1 → vers la gauche */
.carousel-left {
  animation: scroll-left 30s linear infinite;
}

/* Ligne 2 → vers la droite */
.carousel-right {
  animation: scroll-right 25s linear infinite;
}

/* Pause au survol */
.carousel-track-wrap:hover .carousel-left,
.carousel-track-wrap:hover .carousel-right {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Carte carrousel */
.action-card-c {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 24px;
  width: 280px;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.action-card-c::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
}

.action-card-c:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.action-card-c:hover::after { transform: scaleX(1); }

.action-icon-c {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.action-card-c h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.action-card-c p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.actions-cta { text-align: center; margin-top: 48px; }

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, #0f2d52 0%, var(--blue) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(46,125,50,0.2), transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(230,146,10,0.15), transparent 55%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

.cta-block {
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
}

.cta-don { border-right: 1px solid rgba(255,255,255,0.1); }

.cta-block-icon  { font-size: 48px; margin-bottom: 20px; display: block; }
.cta-block-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.cta-block-desc  { font-size: 15px; color: rgba(255,255,255,0.62); line-height: 1.75; margin-bottom: 32px; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ---- PRINCIPES ---- */
.principes-section { background: var(--paper); }

.principes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.principe-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  transition: all 0.3s var(--ease);
}

.principe-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green);
}

.principe-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--orange); margin-bottom: 16px; }

.principe-item h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.principe-item p  { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-home .container { flex-direction: column; }
  .hero-card { display: none; }
  .impact-grid { grid-template-columns: repeat(2,1fr); }
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .principes-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .hero-home { padding: 90px 0 56px; min-height: auto; }
  .hero-title { font-size: clamp(28px, 8vw, 42px); }
  .hero-desc  { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .mission-values { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-don { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .action-card-c { width: 240px; }
  .equipe-home-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .membre-home-photo-wrap { aspect-ratio: 4/5; }
}

@media (max-width: 480px) {
  .impact-grid    { grid-template-columns: 1fr 1fr; }
  .principes-grid { grid-template-columns: 1fr 1fr; }
  .action-card-c  { width: 200px; padding: 20px 16px; }
  .equipe-home-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .membre-home-nom  { font-size: 13px; }
  .membre-home-poste { font-size: 9px; }
  .membre-home-desc  { font-size: 11px; }
  .mission-values { grid-template-columns: 1fr; }
}

/* ---- ÉQUIPE ACCUEIL ---- */
.equipe-home-section { background: var(--paper); }

.equipe-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

/* Carte membre accueil — verticale arrondie */
.membre-card-home {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.membre-card-home:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.membre-home-photo-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background: var(--blue-light);
  flex-shrink: 0;
}

.membre-home-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s var(--ease);
}

.membre-card-home:hover .membre-home-photo { transform: scale(1.04); }

.membre-home-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--blue);
  background: linear-gradient(160deg, var(--blue-light), #dce8f7);
}

.membre-home-info {
  padding: 18px 16px 20px;
}

.membre-home-nom {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.membre-home-poste {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 10px;
}

.membre-home-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .equipe-home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .equipe-home-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
