/*
Theme Name: ASFM - Alliance pour la Santé de la Femme Ménopausée
Theme URI: https://asfm-tunisie.com
Author: ASFM
Description: Thème personnalisé pour l'Alliance pour la Santé de la Femme Ménopausée. Site vitrine avec gestion d'événements, galerie et livret téléchargeable.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: asfm
*/

/* ========== VARIABLES ========== */
:root {
  --magenta: #C4248F;
  --magenta-dark: #9E1D73;
  --magenta-deep: #7A1659;
  --fuchsia: #D946A8;
  --pink: #E8A5C8;
  --pink-light: #F5D5E6;
  --pink-pale: #FDF2F8;
  --plum: #6B2D5B;
  --cream: #FFFBF9;
  --warm-white: #FFFFFF;
  --text: #3A1A30;
  --text-light: #8C6B7E;
  --sage: #7A9E7E;
  --sage-light: #E8F0E9;
}

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

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ========== NAV ========== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 16px rgba(107,45,91,0.06);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 24px rgba(107,45,91,0.12); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 56px; width: auto; }
.nav-logo-separator { width: 1.5px; height: 36px; background: var(--pink); margin: 0 4px; opacity: 0.5; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--magenta-dark); line-height: 1.25;
}
.nav-logo-text span {
  display: block; font-family: 'Nunito Sans', sans-serif;
  font-size: 0.72rem; font-weight: 400; color: var(--text-light);
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: 0.9rem; font-weight: 600; transition: color 0.25s;
}
.nav-links a:hover { color: var(--magenta); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--magenta-dark); border-radius: 2px; }

/* ========== HERO ========== */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 32px 80px;
  background: linear-gradient(155deg, var(--magenta) 0%, var(--fuchsia) 40%, #E06CC0 70%, var(--pink) 100%);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: -15%; right: -8%;
  width: 550px; height: 550px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}
.hero-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; line-height: 1.15; font-weight: 700;
  color: #fff; margin-bottom: 10px;
}
.hero-tagline {
  font-size: 1.3rem; color: var(--pink-light);
  font-weight: 300; font-style: italic; margin-bottom: 28px;
}
.hero-desc {
  font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,0.85);
  max-width: 700px; margin-bottom: 36px; font-weight: 300;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--magenta);
  padding: 14px 32px; border-radius: 32px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: all 0.3s;
}
.hero-cta:hover { background: var(--pink-pale); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ========== SECTIONS ========== */
.site-section { padding: 80px 32px; }
.site-section:nth-child(odd) { background: var(--warm-white); }
.site-section:nth-child(even) { background: var(--cream); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 600; color: var(--plum);
  margin-bottom: 20px; line-height: 1.2;
}
.section-text {
  font-size: 1.05rem; color: var(--text-light); line-height: 1.8;
  max-width: 800px; margin-bottom: 32px; white-space: pre-line;
}

/* ========== CARDS ========== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.card {
  padding: 32px 24px; border-radius: 16px;
  background: var(--pink-pale); border: 1px solid rgba(196,36,143,0.06);
  transition: all 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(196,36,143,0.1); }
.card-icon { font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--magenta-dark); margin-bottom: 8px; }
.card p { font-size: 0.92rem; line-height: 1.65; color: var(--text-light); }

/* ========== EVENTS ========== */
.events-tabs { display: flex; gap: 8px; margin-bottom: 36px; }
.events-tab {
  padding: 10px 24px; border-radius: 24px;
  border: 1.5px solid var(--pink); background: transparent;
  color: var(--magenta-dark); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.events-tab.active, .events-tab:hover { background: var(--magenta); color: #fff; border-color: var(--magenta); }

.event-card {
  display: flex; flex-direction: column; gap: 0;
  padding: 28px; background: var(--warm-white); border-radius: 16px;
  border: 1px solid rgba(196,36,143,0.06);
  transition: all 0.3s; margin-bottom: 20px; position: relative;
}
.event-card:hover { box-shadow: 0 8px 32px rgba(196,36,143,0.08); border-color: var(--pink); }
.event-card.next-event { border: 2px solid var(--magenta); box-shadow: 0 8px 32px rgba(196,36,143,0.15); }
.event-card .prochain-badge {
  background: var(--magenta); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px;
  border-radius: 0 0 8px 8px; position: absolute; top: 0; left: 24px;
}

.event-header { display: flex; justify-content: space-between; align-items: flex-start; }
.event-header-left { display: flex; gap: 16px; align-items: center; flex: 1; }

.event-date-box {
  text-align: center; padding: 14px 10px;
  background: linear-gradient(135deg, var(--pink-pale), rgba(196,36,143,0.08));
  border-radius: 12px; flex-shrink: 0;
}
.event-date-box .day {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--magenta-dark); line-height: 1;
}
.event-date-box .month {
  font-size: 0.78rem; font-weight: 700; color: var(--magenta);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px;
}

.event-info h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--plum); margin-bottom: 6px; }
.event-info p { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; }
.event-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 0.8rem; color: var(--text-light); }

.event-badge {
  padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  white-space: nowrap; height: fit-content;
}
.event-badge.upcoming { background: var(--sage-light); color: var(--sage); }
.event-badge.past { background: #f0eceb; color: var(--text-light); }

.event-photos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px; margin-top: 16px;
}
.event-photos img { width: 100%; border-radius: 10px; object-fit: contain; max-height: 400px; background: var(--pink-pale); }
.event-photos.single img { max-width: 100%; }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-item {
  aspect-ratio: 16/10; border-radius: 14px; overflow: hidden;
  position: relative; cursor: pointer;
  background: linear-gradient(135deg, var(--pink-pale), rgba(196,36,143,0.08));
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-video { position: relative; }
.gallery-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(196,36,143,0.85); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; padding-left: 4px;
  transition: all 0.3s; pointer-events: none;
}
.gallery-video:hover .gallery-play-btn { background: var(--magenta); transform: translate(-50%, -50%) scale(1.1); }

/* ========== LIVRET ========== */
.livret-download {
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(135deg, var(--pink-pale), rgba(196,36,143,0.06));
  border: 2px solid rgba(196,36,143,0.12); border-radius: 20px;
  padding: 32px; margin-top: 24px; transition: all 0.3s;
}
.livret-download:hover { border-color: var(--pink); box-shadow: 0 8px 32px rgba(196,36,143,0.08); }
.livret-cover img {
  width: 160px; height: auto; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(196,36,143,0.2);
}
.livret-info h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--plum); margin-bottom: 6px; }
.livret-info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.livret-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--magenta); color: #fff;
  padding: 12px 28px; border-radius: 28px;
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  transition: all 0.25s;
}
.livret-btn:hover { background: var(--fuchsia); transform: translateY(-2px); }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--magenta-dark); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid rgba(196,36,143,0.15);
  background: var(--warm-white); font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem; color: var(--text); transition: border-color 0.25s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--magenta); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--magenta); color: #fff;
  padding: 14px 32px; border-radius: 28px; border: none;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s; align-self: flex-start;
}
.form-submit:hover { background: var(--fuchsia); transform: translateY(-2px); }

.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--plum); margin-bottom: 20px; }
.contact-info p { color: var(--text-light); line-height: 1.8; font-size: 0.95rem; margin-bottom: 28px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.92rem; }
.contact-detail-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--pink-pale); display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem;
}
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform 0.2s;
}
.social-icon:hover { transform: scale(1.1); }
.social-icon.instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-icon.facebook { background: #1877F2; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--plum); color: rgba(255,255,255,0.6);
  padding: 48px 32px; text-align: center; font-size: 0.88rem;
}
.site-footer a { color: var(--pink-light); text-decoration: none; }
.footer-social { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform 0.2s; opacity: 0.9;
}
.footer-social a:hover { transform: scale(1.1); opacity: 1; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-section h1 { font-size: 2.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .section-with-image { flex-direction: column; }
}
@media (max-width: 600px) {
  .site-section { padding: 60px 20px; }
  .section-title { font-size: 1.8rem; }
  .hero-section { padding: 100px 20px 60px; }
  .hero-section h1 { font-size: 2rem; }
  .livret-download { flex-direction: column; text-align: center; }
  .event-photos { grid-template-columns: 1fr; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: none; position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
  background: #fff; z-index: 10000; box-shadow: -4px 0 24px rgba(107,45,91,0.15);
  transition: right 0.35s ease; flex-direction: column;
}
.mobile-menu.open { display: flex; right: 0; }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--pink-light);
}
.mobile-menu-title {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--magenta-dark);
}
.mobile-menu-close {
  background: none; border: none; font-size: 1.5rem;
  color: var(--text-light); cursor: pointer; padding: 4px 8px;
}
.mobile-menu-close:hover { color: var(--magenta); }
.mobile-menu-links {
  list-style: none; padding: 12px 0; margin: 0; overflow-y: auto; flex: 1;
}
.mobile-menu-links li { border-bottom: 1px solid rgba(196,36,143,0.06); }
.mobile-menu-links a {
  display: block; padding: 16px 24px; text-decoration: none;
  color: var(--text); font-size: 1rem; font-weight: 500;
  transition: all 0.2s;
}
.mobile-menu-links a:hover { background: var(--pink-pale); color: var(--magenta); padding-left: 32px; }
.mobile-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 9999;
}
.mobile-overlay.open { display: block; }

/* ========== SECTION WITH IMAGE ========== */
.section-with-image {
  display: flex; gap: 40px; align-items: flex-start;
}
.section-with-image .section-content {
  flex: 1; font-size: 1.05rem; color: var(--text-light); line-height: 1.8;
}
.section-with-image .section-content p { margin-bottom: 16px; }
.section-with-image .section-content ul,
.section-with-image .section-content ol { margin-left: 20px; margin-bottom: 16px; }
.section-with-image .section-image {
  flex: 0 0 380px;
}
.section-with-image .section-image img {
  width: 100%; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(196,36,143,0.1);
}

/* ========== ANIMATIONS ========== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========== WORDPRESS SPECIFIC ========== */
.wp-block-image img { max-width: 100%; height: auto; border-radius: 14px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
