/*
Theme Name: Hope2Oasis
Theme URI: https://hope2oasis.fr
Description: Thème officiel de l'association HOPE2OASIS - Ensemble contre l'illettrisme, pour l'engagement citoyen
Version: 1.0.0
Author: HOPE2OASIS
Text Domain: hope2oasis
*/

/* =============================================
   CSS VARIABLES (Design System)
   ============================================= */
:root {
  --primary:          hsl(35, 70%, 55%);
  --primary-dark:     hsl(35, 70%, 47%);
  --primary-light:    hsl(35, 70%, 90%);
  --secondary:        hsl(200, 75%, 65%);
  --secondary-light:  hsl(200, 75%, 90%);
  --accent:           hsl(150, 55%, 50%);
  --accent-light:     hsl(150, 55%, 88%);
  --background:       hsl(38, 30%, 97%);
  --foreground:       hsl(25, 25%, 15%);
  --card:             #ffffff;
  --muted:            hsl(38, 20%, 92%);
  --muted-foreground: hsl(25, 15%, 45%);
  --border:           hsl(38, 20%, 88%);
  --radius:           0.75rem;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   LAYOUT
   ============================================= */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .section-padding { padding: 80px 48px; }
}
@media (min-width: 1024px) {
  .section-padding { padding: 80px 96px; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: scale(1.05);
}

.btn-outline-white {
  background-color: transparent;
  color: #000;
  border-color: white;
}
.btn-outline-white:hover {
  background-color: white;
  color: var(--foreground);
  transform: scale(1.05);
}

.btn-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-card:hover {
  background-color: var(--primary-dark);
  color: white;
}

/* =============================================
   SECTION HEADING PATTERN
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 24px;
}
.section-header p {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 768px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-header.light h2 { color: white; }
.section-header.light p  { color: rgba(255,255,255,0.88); }

/* =============================================
   ICON WRAP UTILITY
   ============================================= */
.icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-wrap svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-wrap.color-primary   { background-color: var(--primary-light); }
.icon-wrap.color-primary svg { stroke: var(--primary); }
.icon-wrap.color-secondary { background-color: var(--secondary-light); }
.icon-wrap.color-secondary svg { stroke: var(--secondary); }
.icon-wrap.color-accent    { background-color: var(--accent-light); }
.icon-wrap.color-accent svg { stroke: var(--accent); }

/* =============================================
   SECTION 1 — HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center 40%;
  background-color: hsl(25, 25%, 25%); /* fallback si l'image n'est pas encore chargée */
}
/* Overlay dégradé via pseudo-élément — toujours semi-transparent */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(43, 33, 24, 0.58) 0%,
    rgba(43, 33, 24, 0.48) 50%,
    rgba(249, 246, 242, 0.93) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 128px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero-content h1 .highlight { color: var(--primary); }
.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.90);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
}
.hero-scroll-indicator {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
}
.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 0;
}
.scroll-dot {
  width: 5px;
  height: 12px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 3px;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}

/* =============================================
   SECTION 2 — MISSION
   ============================================= */
.mission-section {
  background-color: var(--background);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .mission-grid { grid-template-columns: repeat(3, 1fr); }
}
.mission-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: calc(var(--radius) * 2);
  background-color: var(--card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mission-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
  transform: translateY(-8px);
}
.mission-card .icon-wrap { margin: 0 auto 24px; }
.mission-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--foreground);
}
.mission-card p {
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* =============================================
   SECTION 3 — ACTIONS
   ============================================= */
.actions-section {
  background-color: hsl(38, 20%, 94%);
}
.actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .actions-grid { grid-template-columns: repeat(3, 1fr); }
}
.action-card {
  background-color: var(--card);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transform: translateY(-8px);
}
.action-card-img {
  position: relative;
  height: 256px;
  overflow: hidden;
}
.action-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.action-card:hover .action-card-img img {
  transform: scale(1.10);
}
.action-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,33,24,0.60), transparent);
}
.action-card-body {
  padding: 32px;
}
.action-card-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--foreground);
}
.action-card-body p {
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* =============================================
   SECTION 4 — IMPACT
   ============================================= */
.impact-section {
  background: linear-gradient(
    135deg,
    hsl(35, 70%, 97%) 0%,
    hsl(200, 75%, 97%) 50%,
    hsl(150, 55%, 97%) 100%
  );
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 768px) {
  .impact-grid { grid-template-columns: repeat(4, 1fr); }
}
.impact-card {
  text-align: center;
  padding: 48px 24px;
  border-radius: calc(var(--radius) * 2);
  background-color: var(--card);
  transition: all 0.3s ease;
}
.impact-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
  transform: translateY(-8px);
}
.impact-card .icon-wrap { margin: 0 auto 16px; }
.impact-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
  margin-bottom: 8px;
}
.impact-label {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* =============================================
   SECTION 5 — TESTIMONIALS
   ============================================= */
.testimonials-section {
  background-color: var(--background);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  background-color: var(--card);
  padding: 40px 32px;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.quote-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  fill: hsl(35, 70%, 82%);
}
.testimonial-text {
  color: var(--foreground);
  margin-bottom: 24px;
  line-height: 1.8;
  font-style: italic;
  font-size: 0.98rem;
}
.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-name  { font-weight: 600; color: var(--foreground); font-size: 0.95rem; }
.author-role  { color: var(--muted-foreground); font-size: 0.85rem; }

/* =============================================
   SECTION 6 — SUPPORT
   ============================================= */
.support-section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: hsl(25, 25%, 20%); /* fallback */
}
/* Overlay semi-transparent via ::before */
.support-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(43, 33, 24, 0.50);
}
.support-content {
  position: relative;
  z-index: 2;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .support-grid { grid-template-columns: repeat(3, 1fr); }
}
.support-card {
  background-color: var(--card);
  padding: 40px 32px;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.support-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.20);
}
.support-card .icon-wrap { margin-bottom: 24px; }
.support-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--foreground);
}
.support-card p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* =============================================
   SECTION 7 — CONTACT
   ============================================= */
.contact-section {
  background-color: var(--background);
}
.contact-form-wrap {
  max-width: 672px;
  margin: 0 auto;
}
.contact-form {
  background-color: var(--card);
  padding: 48px 40px;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
@media (max-width: 640px) {
  .contact-form { padding: 32px 20px; }
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--foreground);
  background-color: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(35, 70%, 55%, 0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-submit {
  width: 100%;
  padding: 16px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}
.form-submit:hover {
  background-color: var(--primary-dark);
  transform: scale(1.02);
}
.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.form-notice {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}
.form-notice.success {
  background-color: hsl(150, 55%, 95%);
  border: 1px solid var(--accent);
  color: hsl(150, 55%, 28%);
}
.form-notice.error {
  background-color: hsl(0, 84%, 96%);
  border: 1px solid hsl(0, 84%, 70%);
  color: hsl(0, 84%, 40%);
}

/* =============================================
   SECTION 8 — FOOTER
   ============================================= */
.site-footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 48px 24px;
}
@media (min-width: 768px)  { .site-footer { padding: 48px 48px; } }
@media (min-width: 1024px) { .site-footer { padding: 48px 96px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-brand-name svg {
  width: 20px; height: 20px;
  stroke: var(--primary); fill: var(--primary);
}
.footer-brand-desc {
  color: rgba(249,246,242,0.80);
  line-height: 1.7;
  font-size: 0.95rem;
}
.footer-col h4 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--background);
}
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
  color: rgba(249,246,242,0.80);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--primary); }

.footer-socials { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s;
  color: var(--background);
}
.social-link svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.social-link:hover { background-color: var(--primary); }
.footer-location {
  margin-top: 20px;
  font-size: 0.875rem;
  color: rgba(249,246,242,0.75);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(249,246,242,0.65);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  color: rgba(249,246,242,0.65);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--primary); }

/* =============================================
   ANIMATION
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInUp 0.7s ease both;
}
