/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  /* Palette c'cité */
  --primary: #FF2E56;
  --primary-hover: #e6193d;
  --primary-light: #ffe5eb;
  
  --accent: #FFE200;
  --accent-dark: #e6cc00;
  --accent-light: #fff9cc;
  
  --success: #10b981;
  --success-light: #d1fae5;
  
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-700: #292D3D;
  --neutral-800: #292D3D;
  --neutral-900: #292D3D;
  
  --gradient-primary: linear-gradient(135deg, #FF2E56 0%, #ff5a7a 100%);
  --gradient-accent: linear-gradient(135deg, #FFE200 0%, #ffd700 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
  color: var(--neutral-800);
   font-size:17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.page > h1 {
  max-width:200px;
  text-align:center;
  margin:10px auto 40px auto;
}

.blocks {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ============================================
   BLOCS PRINCIPAUX
   ============================================ */
.block {
  position: relative;
}


.block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.block-title {
	font-family: "Outfit", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 8px;
}

.block-subtitle {
  font-size: 1rem;
  color: var(--neutral-700);
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--gradient-accent);
  color: var(--neutral-900);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
  position:absolute;
  right:20px;
  top:10px;
}

/* ============================================
   PANNEAU DE DONS
   ============================================ */
.don-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 32px;
}

.don-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 2px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.don-panel:hover {
  border-color: var(--neutral-300);
  box-shadow: var(--shadow-lg);
}

.don-panel-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.don-panel-title::before {
  content: '●';
  color: var(--accent);
  font-size: 1.2rem;
}

.don-panel-subtitle {
  font-size: 1rem;
  color: var(--neutral-700);
  line-height: 1.5;
}

/* ============================================
   BOUTON PRINCIPAL - STYLE OPTION
   ============================================ */
.don-main-action {
  margin: 8px 0;
}

.primary-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px;
  background: white;
  color: var(--neutral-900);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--neutral-200);
  cursor: pointer;
  position: relative;
}

.primary-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.primary-btn .icon {
  font-size: 1.5rem;
  order: -1;
}

.primary-btn::after {
  content: 'Je choisis';
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover::after {
  background: var(--primary-hover);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

/* ============================================
   OPTIONS DE DON
   ============================================ */
.don-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.don-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: white;
  border: 3px solid var(--neutral-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.don-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.don-option-main {
  flex: 1;
  width: 100%;
}

.don-option-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.don-option-text {
  color: var(--neutral-700);
  line-height: 1.5;
}

.don-option-cta {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.don-option:hover .don-option-cta {
  background: var(--primary-hover);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

/* ============================================
   INFO PAIEMENT
   ============================================ */
.stripe-info,
.helloasso-info {
  color: var(--neutral-700);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.stripe-info .logo-partenaire{
	display: block;
	width:100px;
	margin: 10px auto;
}
.helloasso-info .logo-partenaire{
	display: block;
	width:200px;
	margin:10px auto;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom:10px;
}

.payment-pill {
    padding: 5px 10px 5px 7px;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--neutral-700);
    display: flex;
    align-items: center;
}
.payment-icon {

}
.payment-pill svg {
	margin-right:10px;
	width: 32px;
	height: 32px;
	border-radius: 50%; /* Rend le SVG rond */
	overflow: hidden; /* Cache ce qui dépasse */
	display: block;
}


/* ============================================
   FORMULAIRES DE CONTACT
   ============================================ */
.contact-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.contact-form-card {
  background: white;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.partner-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-form-card:hover {
  border-color: var(--neutral-300);
  box-shadow: var(--shadow-lg);
}

.contact-form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 3px solid white;
  outline: 2px solid var(--accent);
}

.contact-form-title {
font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form-title::before {
  content: '●';
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-form-desc {
  font-size: 1rem;
  color: var(--neutral-700);
  margin-bottom: 20px;
  line-height: 1.6;
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--neutral-800);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
  background: white;
}

.field-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.helper {
  font-size:1rem;
  color: var(--neutral-700);
  margin: 12px 0 30px 0;
  line-height: 1.5;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin-top: auto;
}

.submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ============================================
   AMBASSADEUR
   ============================================ */
.ambassador-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ambassador-text {
  font-size: 1rem;
  color: var(--neutral-700);
  line-height: 1.7;
  padding: 28px;
  background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom:100px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.social-btn .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.1rem;
}

.social-linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.social-btn:active {
  transform: translateY(-1px);
}

.ambassador-actions {
  padding: 24px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--accent);
  font-size: 1rem;
  color: var(--neutral-800);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .page {
    padding: 40px 16px;
  }
  .page > h1 {
    margin-bottom: 10px;
   }
   .blocks {
	   gap:0px;
   }
  .block {
    padding: 28px 0px;
  }
  
  .block-header {
    flex-direction: column;
    align-items: center; /* déja proche de ce que tu as, mais important pour centrer */
    text-align: center;
	position: relative;
  }

  .tag {
    position: static;       /* on enlève le absolute */
    align-self: center;   /* bien centré dans le header */
	order: -1;	/* fait passer le tag AVANT le titre */
  }
  
  .don-panel {
    padding: 28px 20px;
  }
  .don-panel-title {
	font-size:1.3em;  
  }
  .don-option-amount {
	justify-content: space-around;
  }
  .contact-form-title {
	 font-size:1.15em;  
  }
  
  .don-option-text {
	text-align:center;
  }
  
  .primary-btn,
  .don-option {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .primary-btn::after,
  .don-option-cta {
    align-self: stretch;
    text-align: center;
  }
  
  .social-buttons {
    flex-direction: column;
  }
  
  .social-btn {
    width: 100%;
    justify-content: center;
	font-size:1rem;
  }
}


/* ============================================
   ACCESSIBILITÉ
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}


/* ============================================
   FORMULAIRES
   ============================================ */
.form-message {
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.form-message--error {
  color: #b00020;
}

.form-message--success {
  color: #0f7b3b;
}

.field-group--error input {
  border-color: #b00020;
}

.field-error {
  font-size: 0.9rem;
  color: #b00020;
  margin-top: 0.25rem;
}

