/*
Theme Name: Zawaaj
Template: astra
Version: 3.0
Description: Thème Zawaaj — Design identique v1.6, sécurisé WordPress
Author: Zawaaj
Text Domain: zawaaj
*/

/* ===== RESET WORDPRESS - Neutraliser Astra ===== */
.ast-container { max-width: 100% !important; padding: 0 !important; }
.entry-content { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
.ast-article-single { padding: 0 !important; }
.site-content { padding: 0 !important; }
#content { padding: 0 !important; }
.ast-row { margin: 0 !important; }
.page .entry-title { display: none !important; }
.entry-header { display: none !important; }
.ast-breadcrumbs-wrapper { display: none !important; }
.page-header { display: none !important; }

/* Cacher la barre admin pour les membres non-admin */
body:not(.wp-admin) .ast-fixed-header-wrap { display: none; }


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

  :root {
    --green-dark:  #4a6741;
    --green-mid:   #6a9160;
    --green-light: #9dba8f;
    --green-pale:  #c8dbbf;
    --green-bg:    #e8f0e4;
    --white: #FFFFFF;
    --cream: #f5f8f3;
    --cream-dark: #e8f0e4;
    --text-dark: #1e2b1a;
    --text-mid: #3d5236;
    --text-light: #6a7f62;
    --shadow: 0 4px 30px rgba(74,103,65,0.10);
    --shadow-lg: 0 12px 50px rgba(74,103,65,0.16);
  }

  html { scroll-behavior: smooth; }
  body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(30,43,26,0.97);
    backdrop-filter: blur(14px);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    border-bottom: 1px solid rgba(157,186,143,0.2);
  }

  .nav-logo img {
    height: 42px;
    object-fit: contain;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--green-pale); }

  .nav-cta { display: flex; gap: 0.75rem; align-items: center; }

  .btn-nav {
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
  }

  .btn-nav-outline {
    border: 1px solid var(--green-light);
    color: var(--green-pale);
    background: transparent;
  }
  .btn-nav-outline:hover { background: rgba(157,186,143,0.12); }

  .btn-nav-fill {
    background: var(--green-mid);
    color: var(--white);
    border: 1px solid var(--green-mid);
  }
  .btn-nav-fill:hover { background: var(--green-dark); }

  /* ===== HERO ===== */
  .hero {
    min-height: 100vh;
    background: linear-gradient(145deg, #3a5535 0%, #5a8050 40%, #7fa870 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  }

  /* subtle dot pattern like logo bg */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
  }

  .hero-inner { position: relative; z-index: 1; }

  .hero-logo {
    margin: 0 auto 2rem;
    max-width: 380px;
    width: 90%;
  }

  .hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.25));
  }

  .hero-arabic {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.65);
    display: block;
    direction: rtl;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }

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

  .hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.85;
  }

  .hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
  }

  .btn-hero {
    padding: 0.85rem 2.3rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.25s;
    display: inline-block;
  }

  .btn-soeur {
    background: var(--white);
    color: var(--green-dark);
    border: 2px solid var(--white);
  }
  .btn-soeur:hover {
    background: var(--green-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .btn-frere {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
  }
  .btn-frere:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--white);
    display: block;
    font-weight: 700;
  }

  .hero-stat-label {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
  }

  /* ===== SECTIONS ===== */
  section { padding: 5rem 1.5rem; }
  .container { max-width: 1080px; margin: 0 auto; }

  .section-badge {
    display: inline-block;
    background: rgba(106,145,96,0.12);
    color: var(--green-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(74,103,65,0.2);
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 1rem;
  }

  .section-title em { font-style: italic; color: var(--green-mid); }

  .ornament {
    color: var(--green-light);
    letter-spacing: 6px;
    font-size: 1rem;
    display: block;
    margin: 0.5rem 0 1.5rem;
    opacity: 0.6;
  }

  /* ===== ABOUT ===== */
  .about { background: var(--white); }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .about-visual {
    display: flex;
    justify-content: center;
    position: relative;
  }

  .about-icon-wrap {
    width: 300px;
    height: 300px;
    border-radius: 50% 35% 50% 35%;
    background: linear-gradient(145deg, #4a6741, #7fa870);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
  }

  .about-icon-wrap img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(10);
  }

  .about-badge-card {
    position: absolute;
    bottom: -1rem;
    right: 0;
    background: var(--green-dark);
    color: var(--white);
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 160px;
    text-align: center;
    box-shadow: var(--shadow);
    line-height: 1.5;
  }

  .section-body {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.9;
    max-width: 640px;
  }

  /* ===== ENGAGEMENTS ===== */
  .engagements { background: var(--cream); }

  .engagements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .eng-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(106,145,96,0.18);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }

  .eng-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-dark), var(--green-mid));
  }

  .eng-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(106,145,96,0.4);
  }

  .eng-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--green-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }

  .eng-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
    color: var(--text-dark);
  }

  .eng-card p { font-size: 0.86rem; color: var(--text-light); line-height: 1.7; }

  /* ===== PROCESS ===== */
  .process {
    background: linear-gradient(145deg, #3a5535 0%, #5a8050 60%, #7fa870 100%);
    color: var(--white);
  }

  .process .section-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.2);
  }

  .process .section-title { color: var(--white); }
  .process .section-title em { color: var(--green-pale); }
  .process .ornament { color: rgba(255,255,255,0.25); }

  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .process-step {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.25s;
  }

  .process-step:hover { background: rgba(255,255,255,0.12); }

  .process-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: rgba(255,255,255,0.2);
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
  }

  .process-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--green-pale);
    margin-bottom: 0.7rem;
  }

  .process-step p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.75; }

  /* ===== TEMOIGNAGES ===== */
  .temoignages { background: var(--cream-dark); }

  .temo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .temo-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(106,145,96,0.12);
    box-shadow: var(--shadow);
    position: relative;
  }

  .temo-card::before {
    content: '\275D';
    font-size: 3.5rem;
    color: var(--green-light);
    opacity: 0.3;
    position: absolute;
    top: 0.25rem;
    left: 1.25rem;
    font-family: serif;
    line-height: 1;
  }

  .temo-text {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    font-style: italic;
  }

  .temo-author { display: flex; align-items: center; gap: 0.75rem; }

  .temo-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.72rem; font-weight: 700;
  }

  .temo-name { font-weight: 700; font-size: 0.87rem; color: var(--text-dark); }

  .temo-badge {
    font-size: 0.7rem;
    color: var(--green-dark);
    background: var(--green-bg);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 2px;
  }

  /* ===== FAQ ===== */
  .faq { background: var(--white); }

  .faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.85rem; }

  .faq-item {
    border: 1px solid rgba(106,145,96,0.2);
    border-radius: 12px;
    overflow: hidden;
  }

  .faq-q {
    background: none; border: none; width: 100%;
    text-align: left;
    padding: 1.1rem 1.4rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.97rem; font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    transition: background 0.2s;
  }

  .faq-q:hover { background: var(--cream); }

  .faq-arr {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--green-bg); color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
    transition: transform 0.25s, background 0.2s;
    font-weight: 300;
  }

  .faq-item.open .faq-arr {
    transform: rotate(45deg);
    background: var(--green-mid);
    color: var(--white);
  }

  .faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1.4rem;
    font-size: 0.89rem; color: var(--text-mid); line-height: 1.8;
  }

  .faq-a.open { max-height: 300px; padding: 0 1.4rem 1.2rem; }

  /* ===== CTA FINAL ===== */
  .cta-final {
    background: linear-gradient(145deg, #2e4429 0%, #4a6741 50%, #6a9160 100%);
    text-align: center;
    padding: 7rem 1.5rem;
    position: relative;
    overflow: hidden;
  }

  .cta-final::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
  }

  .cta-logo-wrap {
    margin: 0 auto 2.5rem;
    max-width: 260px;
    position: relative; z-index: 1;
  }

  .cta-logo-wrap img { width: 100%; height: auto; }

  .cta-arabic {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.5);
    display: block;
    direction: rtl;
    margin-bottom: 1rem;
    position: relative; z-index: 1;
  }

  .cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--white);
    margin-bottom: 1rem;
    position: relative; z-index: 1;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
  }

  .cta-title em { color: var(--green-pale); font-style: italic; }

  .cta-sub {
    color: rgba(255,255,255,0.55);
    max-width: 460px;
    margin: 0 auto 2.5rem;
    font-size: 0.97rem;
    position: relative; z-index: 1;
  }

  .cta-btns {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    position: relative; z-index: 1;
  }

  .btn-cta-f {
    background: var(--white); color: var(--green-dark);
    padding: 0.9rem 2.4rem; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    transition: all 0.25s; border: 2px solid var(--white);
  }

  .btn-cta-f:hover {
    background: var(--green-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  }

  .btn-cta-h {
    background: transparent; color: var(--white);
    padding: 0.9rem 2.4rem; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    transition: all 0.25s; border: 2px solid rgba(255,255,255,0.5);
  }

  .btn-cta-h:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
  }

  /* ===== FOOTER ===== */
  footer {
    background: #1e2b1a;
    color: rgba(255,255,255,0.4);
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.82rem;
  }

  .footer-logo-img {
    height: 36px;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.85;
  }

  .footer-links {
    display: flex; gap: 1.5rem; justify-content: center;
    flex-wrap: wrap; margin-bottom: 1rem; list-style: none;
  }

  .footer-links a {
    color: rgba(255,255,255,0.4); text-decoration: none;
    font-size: 0.8rem; transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--green-pale); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { display: none; }
    .nav-links { display: none; }
    .hero-stats { gap: 1.5rem; }
  }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-inner > * { animation: fadeUp 0.75s ease both; }
  .hero-inner > *:nth-child(1) { animation-delay: 0s; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
  .hero-inner > *:nth-child(5) { animation-delay: 0.4s; }
  .hero-inner > *:nth-child(6) { animation-delay: 0.5s; }

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  nav { padding: 0 1rem; height: 60px; }
  .nav-links { display: none; }
  .nav-logo { font-size: 1.3rem; }
  .btn-nav { padding: 0.4rem 0.9rem; font-size: 0.75rem; }

  .hero { padding: 5rem 1rem 3rem; }
  .hero-arabic { font-size: 1.3rem; }
  .hero-btns { flex-direction: column; align-items: center; gap: 0.75rem; }
  .btn-hero { width: 100%; max-width: 280px; text-align: center; }
  .hero-stats { gap: 1.25rem; padding-top: 1.5rem; }
  .hero-stat-num { font-size: 1.8rem; }
  .hero-stat-label { font-size: 0.68rem; }

  section { padding: 3rem 1rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }

  .engagements-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .engagement-card { padding: 1.25rem 1rem; }

  .process-steps { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .process-step { padding: 1.25rem 1rem; }
  .process-num { font-size: 2rem; }

  .temo-grid { grid-template-columns: 1fr; }

  .faq-q { font-size: 0.88rem; padding: 1rem; }
  .faq-a { font-size: 0.83rem; }

  .inscription-btns { flex-direction: column; align-items: center; }
  .btn-inscr-f, .btn-inscr-h { width: 100%; max-width: 280px; text-align: center; }

  .footer-links { gap: 0.75rem; }
}

@media (max-width: 480px) {
  .engagements-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

